[Samba] How to auto mount a samba share

Pau Garcia i Quiles pgquiles at elpauer.org
Wed Aug 24 22:57:05 GMT 2005


Quoting Marie Gerenger <marie at issi.co.za>:

> When the samba server has a power failure the share must be mounted 
> manually once the power is restored.
> Is there a  auto mount option that can be added to the fstab file on 
> the client machine

What about something like this?

//altair/doc    /mnt/doc        smbfs  
defaults,users,username=pgquiles,password=mypassword     0       0

The bad side being you have to store your password in clear text in 
/etc/fstab.
You can also have your username and password stored in a file, then use
something like this:

//altair/doc    /mnt/doc        smbfs  
defaults,users,authentication-file=/home/pgquiles/sambaidentity  0      
  0

The format of the file is:
              username = <value>
              password = <value>
              domain   = <value>
(for more info, take a look at man smbmount)





More information about the samba mailing list