On Sat, Oct 08, 2005 at 07:14:22AM +0200, Jacobo221 wrote:
> autofs has always refused to mount smbfs correctly at boot time. I thought
> it was some weird problem, since right after starting the system, i could
> do an /etc/init.d/autofs restart and smbfs partition would be mounted
> correctly (using "sudo"). But today I just came up to think that maybe it
> was because it was trying to access samba as root. And hey, I was right! I
> suggest the /etc/init.d/autofs was run as a special "samba" user.

What's the problem about mounting smbfs shares as root? autofs does in
general run as root, since the kernel doesn't tell it what user tried to
access the file.

autofs should definitely not run as “samba”, since using it to mount smbfs
shares is rather uncommon, and would require lots of rewriting of scripts
everywhere to use sudo (and autofs would depend on sudo). I'm not really
clear either on why starting /etc/init.d/autofs with SUDO_USER=samba as root
should really change _anything_ -- what would the difference be?

/* Steinar */
-- 
Homepage: http://www.sesse.net/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to