[Samba] mounting a Samba volume on startup

Urban Widmark urban at teststation.com
Tue Aug 6 09:01:03 GMT 2002


On Thu, 18 Jul 2002, Mladen Gavrilovic wrote:

> <some nonsense number>: Tree connect failed. ERRDOS - ERRnoaccess 
> (Access denied.)  Samba connection failed.

The nonsense number is the process id, to separate messages if you had 
several smbmounts running.


> Make the smbmount and smbumount scripts root, or use sudo.  This won't 

Don't ever make smbmount setuid root. smbmnt yes (don't if you are 
paranoid :), but not smbmount.


> just put in "mount -t smbfs etc, etc" into rc.local.  Now, in RH 7.2 
> (with 2.4.18 kernel), it doesn't anymore.  Even Red Hat's own script 
> which was designed to mount SMB volumes specifically, doesn't work.  It 
> gives the same message.

That's odd... verify that smbmnt is in /usr/bin and copy it there if it 
isn't.

The other known problem with mounting like this is that when using the
'guest' option some versions of smbmount wouldn't connect without a
username (but smbclient would). The difference could be in the samba
version used.

After logging in you have a username in $USER, so try adding a username=foo
to that mount line. Or upgrade samba.

/Urban





More information about the samba mailing list