- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Cifsmount differences mounting from windows or sam...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2007 01:40 PM
09-25-2007 01:40 PM
Cifsmount differences mounting from windows or samba
I had a nice setup where I used CIFS to mount a windows share from a real window box. As root I used the command:
/sbin/mount -F cifs machine:/SHARE /mnt/share
To mount it, and to see it, as the general user (genuser) this:
cifslogin -U winuser .....
Then when I cd down to /mnt/share and do an ls -l I see all the files appear to be owned by genuser. The files are really owned by winuser on the windows box. All is good, no problems creating updating or deleting files.
Then, the 'other side' decides to move the share to an AIX server running samba. No problem I think, but they now use mapping to map winuser to *their* unix user samba.
Now when I mount it the files are owned by UIDs from the other system (and no, they do not map to my UIDs, no centralized UID control, sigh).
As well, if I mount and then try to create a file as genuser I see this:
# echo "foo" >zzz
ksh: zzz: cannot create
# ll
total 2048
-rwxrw---- 1 22222 10401 0 Sep 25 14:08 zzz
So it appears that it starts to create the file, then the remote samba forces the owner to the remote samba ID and then I don't have permission to wite to it and my commands fail.
This is their share info:
[share]
path = /xxx/yyy/zzz
write list = samba-wr
force user = samba
force group = sapsys
create mask = 0770
security mask = 0770
directory mask = 0770
directory security mask = 0770
and they have a usermap like
samba-wr = winuser
Now, I don't control the other side, and 'it works from windows'.
What is my best option to get this working again? I think it will be to try to get them to create a real user that I can map to.
Any ideas?
Thanks,
Doug
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2007 03:00 AM
09-26-2007 03:00 AM
Re: Cifsmount differences mounting from windows or samba
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2007 03:15 AM
09-26-2007 03:15 AM
Re: Cifsmount differences mounting from windows or samba
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2007 06:55 AM
09-26-2007 06:55 AM
Re: Cifsmount differences mounting from windows or samba
UNIX to UNIX use UNIX Network File System.. Why convert from unix to Windoze to unix ?
You will still have issue with all the non matching usernames from AIX but that is what happens..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2007 11:08 AM
09-26-2007 11:08 AM
Re: Cifsmount differences mounting from windows or samba
OldSchool and Tim, yep, NFS is the fall back position but will involve some code changes as well as the UID mapping issue, so I was looking to find the magic switch that made it work exactly as the windows server did.
The real solution is to get universal UID mapping across the machines/company, but thats not happening soon...
As well, the files we are transferring are very big, which is why we want to mount 'their' share and write to it. If there is no space it is their problem, not ours. This is why we cannot create a local file and use an ftp/scp type solution.
With unix extensions turned off, this happens, it is almost useable if I become a local user with UID:GID 22222:10401
The only glitch is the initial creation of a file 'fails', IE it creates but canot be written to immediatly, but a second write to it works, as do moves and deletes:
osrjde04:/mnt/MEDBID10/uploads # echo "abc" >z
ksh: z: cannot create
osrjde04:/mnt/MEDBID10/uploads # ll z
-rwxrw---- 1 22222 10401 0 Sep 27 08:48 z
osrjde04:/mnt/MEDBID10/uploads # echo "abc" >z
osrjde04:/mnt/MEDBID10/uploads # ll z
-rwxrw---- 1 22222 10401 4 Sep 27 08:48 z
But this is probably to quirky to put into production, especially as the stuff to produce the file is all legacy stuff that needs to run as a different user than the 22222 one I am being given acces to. sigh.
Thanks for the info anyway guys.....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2007 03:07 AM
09-27-2007 03:07 AM
Re: Cifsmount differences mounting from windows or samba
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2007 01:00 PM
09-30-2007 01:00 PM
Re: Cifsmount differences mounting from windows or samba
In any case, we are now going to move to NFS and change our code going forward.
Thanks for the responses anyway....
Doug
# /var/opt/cifsclient/cfgdb.ppl
#
# This file is automatically generated. Manual editing is
# discouraged--changes may be overwritten by the CIFS Client
# daemon.
#
# Last update: Wed Aug 8 12:06:43 2007
# @(#)HP CIFS Client - Version A.02.02.01
"main" = {
"automount" = (
);
};