First, bad Shawn for using smbfs.  It should be cifs (smbfs is going to
be depretiated soon).

Here is an example
//midwinter/files /opt/midwinter cifs auto,rw,credentials=/root/.smbpasswd

The .smbpasswd file looks like this:
username=
password=

and should not be readable by anyone other than root.

This share (and others) are automatically mounted at boot.

Also, if your UIDs match across systems, you can mount directories as
root, and have a credential pass through, so that you have NFS like
behaviour.

You will need to add the following to your smb.conf on the server:

unix extensions = yes
case sensitive = yes
delete readonly = yes
ea support = yes

Further reading:

http://samba.org/ftp/unpacked/cifsvfs/fs/cifs/README
http://samba.org/samba/docs/man/manpages-3/mount.cifs.8.html

Shawn wrote:
> I have the following in my /etc/fstab:
> 
> #network mounts
> //hive/share    /home/sgrover/share     smbfs
> password=,uid=sgrover,gid=sgrover,dmask=700,fmask=700
>           0       0
> 
> (everything below the comment is on one line... and there IS no password)
> 
> When I do mount -a, this share mounts fine.  But when I boot the
> computer it does not mount.  So I have to manually run the mount -a
> before it's available to me - which really defeats the purpose of
> putting it in fstab.
> 
> Any tips on where I can start looking to figure why this isn't mounting?
>  I'm not seeing anything useful in /var/log/messages, or dmesg.  In
> /var/log/samaba/log.smbmount, I can see where the mount happens, but
> only for the times when I do so manually.  No errors/messages saying why
> it can't mount the drive.
> 
> If it helps, this is on a Kubuntu Edgy box.  There has been no changes
> to the shared directory itself - it's been running fine for close to a year.
> 
> Thanks for any suggestions.
> 
> Shawn

_______________________________________________
clug-talk mailing list
[email protected]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca
Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
**Please remove these lines when replying

_______________________________________________
clug-talk mailing list
[email protected]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca
Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
**Please remove these lines when replying

Reply via email to