[mdlug] Mounting a samba share
Mathew Enders
mathew.enders at prodigy.net
Sun Aug 3 23:04:28 EDT 2008
I am having a bit of difficulty mounting a samba share. The share is on
a linux server running samba. It needs to be a samba share as local
windows clients connect to it.
Here is my /etc/fstab
/dev/md1 / ext3 defaults 1 1
/dev/md2 /var ext3 defaults 1 2
/dev/md0 /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
LABEL=SWAP-hda2 swap swap defaults 0 0
LABEL=SWAP-hdb4 swap swap defaults 0 0
//192.168.1.101/staff /rmt-mnt/gaud-it cifs credentials=/home/ruser/.smbpasswd,uid=ruser,gid=ruser 0 0
//192.168.1.101/staff /rmt-mnt/level-2 cifs credentials=/home/lvl-two/.smbpasswd,uid=lvl-two,gid=lvl-two 0 0
The bottom 2 are the samba share the first one mounts fine and readable
and writable by ruser. The second one does not mount the reason given
during boot is error 13 opening credentials /home/lvl-two/.smbpasswd
Hers is /etc/mtab after boot.
/dev/md1 / ext3 rw 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
/dev/md2 /var ext3 rw 0 0
/dev/md0 /boot ext3 rw 0 0
tmpfs /dev/shm tmpfs rw 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw 0 0
//192.168.1.101/staff /rmt-mnt/gaud-it cifs rw,mand 0 0
Notice the mounted samba share at the bottom.
Here is an ls -AL of ruser home directory showing the credentiels
file .smbpasswd.
drwxr-xr-x 3 ruser ruser 4096 Aug 3 21:31 .nautilus
-rw------- 1 ruser ruser 30 Aug 2 22:10 .smbpasswd
drwx------ 2 ruser ruser 4096 Aug 3 18:58 .ssh
Here is an ls -Al of lvl-two home directory showing the creden tials
file .smbpasswd.
-rw-r--r-- 1 lvl-two lvl-two 876 Aug 3 21:27 .recently-used.xbel
-rw------- 1 lvl-two lvl-two 32 Aug 3 22:04 .smbpasswd
drwx------ 2 lvl-two lvl-two 4096 Aug 3 21:26 .Trash
Thanks for any help in this matter
More information about the mdlug
mailing list