On 10/13/2011 05:34 AM, lynn pecked at the keyboard and wrote:
Lynn, what does a user get if they type:
whoami
and
echo $HOME
in a terminal window?
Hi.
Some more info:
/etc/samba/smb.conf users share on the server
[users] comment = home folders inherit acls = Yes inherit permissions = Yes path = /home read only = No
mount command on client logged in as root:
mount -t cifs //192.168.1.2/users -o rw, gid=users,nosetuid
using this command sets the group OK but the user remains as root.
L x
From man mount.cifs: setuids If the CIFS Unix extensions are negotiated with the server the client will attempt to set the effective uid and gid of the local process on newly created files, directories, and devices (create, mkdir, mknod). If the CIFS Unix Extensions are not negotiated, for newly created files and directories instead of using the default uid and gid specified on the the mount, cache the new file´s uid and gid locally which means that the uid for the file can change when the inode is reloaded (or the user remounts the share). nosetuids The client will not attempt to set the uid and gid on on newly created files, directories, and devices (create, mkdir, mknod) which will result in the server setting the uid and gid to the default (usually the server uid of the user who mounted the share). Letting the server (rather than the client) set the uid and gid is the default.If the CIFS Unix Extensions are not negotiated then the uid and gid for new files will appear to be the uid (gid) of the mounter or the uid (gid) parameter specified on the mount. Perhaps you have the wrong option set. -- Ken Schneider SuSe since Version 5.2, June 1998 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org