[Samba] Mounting smbfs as guest at boot time

Sue Spence suespence99 at yahoo.co.uk
Wed Feb 27 09:37:40 GMT 2002

I have searched for a solution to my problem, and have
only found one short discussion which mentioned it
and I didn't feel it contained a resolution I could
use.  In a nutshell, I want to mount an win2k share as
'guest' at boot time on a linux web server.[1]  It
just won't work any way that I've tried it.

I can quite easily mount a share as guest any time
after boot. I can put the following in /etc/fstab:

//2kserver/test  /opt/win2k   smbfs  auto,guest,ro 0 0

#mount -a (or mount -at smbfs) works great.

I can also use smbmount or whatever.  The only time it
doesn't work is if I put it in /etc/init.d/smbfs,
which is then called at the appropriate time in the
boot process. It produces an ERRnoaccess error (tree
connect failed: ERRDOS - ERRnoaccess (Access denied.)
, even though the exact same command works just great
from the command line immediately after boot.  I got
the impression from the one discussion I found that
'guest' mount won't work. Is there a patch for this?
Do I have to coordinate with the PC-ians and use some
other user and set up credentials & so on?  I'd rather
not use automount if I can help it.  The files will
need to be available whenever they are called for via
http, so I'd just rather they were mounted at boot up
(and I'll write a cron job to check the mount if need

Any pointers, suggestions will be gratefully received!


[1] I have a requirement to allow some windows
developers put files that they want served from a
linux web site onto a pc running win2000 server.
Simply put, I just want to be able to mount one or
more win2k shares from this pc, and I want to do it at
boot time if possible. I would like to do it as the
user 'guest' to avoid all passwords. I don't want to
learn about credentials or anything win-centric like
that if I can avoid it, and I also hope that 'guest'
is a restricted user who can't do much damage if the
unthinkable occurs (somebody r00ts the web server -
though this probably won't afford any real

Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts

More information about the samba mailing list