[linux-cifs-client] About permissions.

Jeff Layton jlayton at samba.org
Sat May 15 16:47:27 MDT 2010


On Sat, 15 May 2010 22:35:42 +0200
Stef Bon <stefbon at gmail.com> wrote:

> Hello,
> 
> I just found out that on my system another user than the username in
> the credentialsfile
> is not honoured over a cifs mount.
> 
> I just tried to change the permissions to root as root, in a cifs share mounted
> with a credentials file with username=sbon.
> 
> I've read the mount.cifs manpage:
> 
> 
> Because CIFS mounts are generally single-user, and the same
> credentials are used no matter what user accesses the mount, newly
> created files and directories will
> generally be given ownership corresponding to whatever credentials
> were used to mount the share.
> 
> 
> I thought that this hasn't been so. I'm not sure, but I can remember
> these mounts do honour the userid
> of the user accessing the mount.
> Am I wrong here?
> 

Yes. The credentials used to make calls against the server are
completely independent of the uid that accesses the mount.

This is the main impetus for the multisession mount work.
-- 
Jeff Layton <jlayton at samba.org>


More information about the linux-cifs-client mailing list