Welcome

Welcome to the trumpton blog. I use this blog to record interesting things, but mainly use it to provide an extension to my failing memory. In the blog, you will find lessons I have learned, in areas from paragliding to washing machine repair, internet radios and linux installations.

Please use the menu bar at the top of the screen or the search and navigation menu to the right.

Or follow the sign to Trumpton ...

Saturday, 12 June 2010

Mounting CIFS Directories in Linux

As Root, create /root/smbcredentials, with the lines:
username=...username..
password=..password..
and set the permissions: chmod 700 /root/smbcredentials

Edit /etc/fstab, and append the line:
//netbiosname/sharename /media/sharename cifs credentials=/root/smbcredentials,iocharset=utf8,file_mode=0775,dir_mode=0775 0 0
Mount the new drive with: mount -a

Blog Archive