Editing /etc/fstab to mount a Samba share
10 July 2009
No Comment
I operate host rbucky.com and many others at my home using a kick ass server box. I use to use sftp to access my server directories within my home network. For some reason, beginning three days ago, I would have to enter my login and password everytime I wanted to exit a file on my server. I really irritated me to enter my secure password EVERYTIME. Then I thought to myself, why in the hell don’t I make it a Samba share and mount it on my Ubuntu Desktop that I use everyday?
Automatically mount samba shares by opening up Terminal and executing the following commands on the machine that you want to mount the Samba shares.
cd /<br /> sudo mkdir /mount-point<br /> sudo vi /etc/fstab
Once you have your /etc/fstab open, enter the code below to the bottom of your file. Then restart your box. Make sure that your Samba share has the correct permissions and that you use the appropriate user. Remember that this directory will be automatically mounted, so be aware of who is using your box!
//server/name /mount-point smbfs username=your-username,password=your-password 0 0








Leave your response!