sudo apt-get install smbfs
edit /etc/fstab and add,
//192.168.x.x/data /mnt/data smbfs credentials=/etc/cifspw 0 0
edit /etc/cifspw as root and add,
username = username
password = password
Change permissions so people (o)ther than those as root and in group root cannot (-) (r)ead,
sudo chmod o-r /etc/cifspw
Try to read it...... permission denied.
Mount:
sudo mount -a
There may be a desire to mount with ownership as non-root. Check the mounting usb drive post elsewhere for instructions.
It reads,
sudo mount -o uid=username /dev/sdb /media/tmp
so specify -o uid=username during mount.
No comments:
Post a Comment