Re: About permissions.
Jeff Layton <[email protected]> Sat, 15 May 2010 18:47:27 -0400
| Newsgroups | gmane.linux.file-systems.cifs |
|---|---|
| Message-ID | <[email protected]> |
On Sat, 15 May 2010 22:35:42 +0200 Stef Bon <[email protected]> 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 <[email protected]>