Better yet, use the 'credentials file' option so that you don't have to put
usernames or passwords in your configuration files and scripts.
I also found that smbfs will apply a umask to the files and directories that
it has mounted, so if you mount smbfs filesystems at boot (ie.
/etc/init.d/smbfs or /etc/init.d/netfs) those filesystems will be mounted by
root and inherit root's umask, typically 022, so that everything will be
restricted to permissions of 755 or lower.  This means that normal users
can't write in those filesystems, at least this is the way it is working on
my  machines.  You can get around this by passing fmask and dmask options to
smbmount, like so:

smbmount //server/temp /mnt/tmp -o
credentials=/etc/smb.auth,fmask=777,dmask=777

This looks insecure but it really isn't, the permissions on the server will
still be enforced.  For example, if a file is set to permissions 444 on the
server no one on the client will be able to write to it.  Try mounting the
filesystem both ways to see the difference.

good luck,
aaron

> -----Original Message-----
> From: Christoph Bugel [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, March 04, 2002 3:31 AM
> To:   Steve Gensemer
> Cc:   [EMAIL PROTECTED]
> Subject:      Re: smbfs + autofs problem
> 
> On Sun 2002-03-03, Steve Gensemer wrote:
> > Hello,
> >     I'm new to autofs.  I have a cluster and would like to mount a
> > directory served up by a samba server on all of the clients on the
> > cluster.  However it doesn't seem to work yet.  I'm using the usual
> > debian/woody packages for autofs, smbfs.  Any help greatly appreciated.
> >     The samba server works with:
> > 
> > sgenseme@pc974:/$ smbmount "\\\\paris\\sgenseme" /home/sgenseme/paris
> > 
> > but autofs doesn't work with this line in my auto.paris file:
> > 
> > sgenseme        -fstype=smbfs,login=sgenseme,passwd=xxxx
> paris:sgenseme
> 
> 
> I think you should try /username/ instead of /login/
> (works, for me, and it appears like that in 'man smbmount')
> 
> Hope this helps ;-)
> 

Reply via email to