This should work on most recentish Linux distro's. Simple stuff I know but when I've put a lot of people onto Linux, this was one of the simpler things they were unsure of.
Note: Replace the
Template:
//192.168.1.1/yoursharename /path/to/mount/directory cifs credentials=/path/to/credentials/file,uid=yourlinuxuid 0 0
Example:
//192.168.1.1/music /mnt/samba/music cifs credentials=/home/james/.cred/james.cred,uid=james 0 0
And if you don't want to worry about having a seperate credentials file, you can use this format
Template:
//192.168.1.1/yoursharename /path/to/mount/directory cifs username=yourusername,password=yourpassword,uid=yourlinuxuid 0 0
Example:
//192.168.1.1/music /mnt/samba/music cifs username=james,password=password123,uid=james 0 0
Further Reading:
http://www.samba.org/samba/docs/ - search for fstab unless you want some real in depth reading!
Link to this comment:
All Comments (0)