Samba, CIFS and mkfifo

Jeremy Allison jra at samba.org
Fri Jan 26 18:35:50 GMT 2007


On Fri, Jan 26, 2007 at 09:48:38AM +0000, Anders Karlsson wrote:
> 
> Okay, let me see if I understand this correctly. The 'connected user' in
> this instance is the user specified in the 'mount.cifs' command with the
> option 'user=xxxxx', or if left out, the user that issues the mount
> request, not the user that subsequently attempts to create the FIFO in
> the directory where the share is mounted - correct?

Yes, this is correct. Steve's code by default does only one
sessionsetupX call which gives only one vuid (virtual uid).
All accesses to that share will be done as that user.

> So mounting the share with 'setuids' will simply not have any effect at
> all when requesting the creation of a FIFO (and potentially other
> filetypes) as the Samba server will (in future) _only_ use the uid/gid
> supplied when initiating the session?

Not "in future" - currently and by design. Remember, we don't
allow arbitrary uid changes on a CIFS connection - we only
allow chown when a user is mapped to root on the server
(very dangerous).

Jeremy.


More information about the samba-technical mailing list