Results 21 to 21 of 21
Thread: Samba woes
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- May 2008
I just started using something like this in my scripts...
IPADDRESS=`nmblookup hostname | tail -n 1 | sed 's/\(.*\..*.\.*.\.*\) .*/\1/'`
sudo mount -t smbfs //$IPADDRESS/share /path/to/mount/target -o workgroup=WORKGROUP,username=username
this prompts for a password for protected shares but you can figure out how to put that on the command line (I like to be prompted as opposed to putting passwords in scripts).