I use smbnetfs for access to my NAS shares. Unfortunately, this turns out to be slightly more difficult than it should be. In Back|Track 5 R3, the procedure is: - Install smbnetfs.
sudo apt-get install smbnetfs
- Create a user directory ~/.smb:
mkdir ~/.smb
- Copy /etc/smbnetfs.conf to ~/.smb:
cp /etc/smbnetfs.conf ~/.smb
- Create a file ~/.smb/smbnetfs.auth and put in it:
auth [workgroup] [domain_or_workgroup/]user password
- Change the permissions on ~/.smb/smbnetfs.auth:
chmod 600 ~/.smb/smbnetfs.auth
- Mount with the command:
smbnetfs -o uid=[user's uid],gid=[user's gid],umask=0022 [path/to/mountpoint]
Optionally, one might create a script containing the required smbnetfs command.
I'm still working on making the hosts visible by default. |