Linux Tip: auto mount remote hdd via fstab

Posted by & filed under Linux.

To map a remote samba share in Linux with read-write access and a username and password, you will require samba. In debian based distros, this is easily obtained via sudo apt-get install samba. Create a secure credentials file: tim@ubuntu-server:~$ cd /root tim@ubuntu-server:/root$ su Password: root@ubuntu-server:~# echo username=username > .smbpasswd root@ubuntu-server:~# echo password=password >> .smbpasswd root@ubuntu-server:~#… Read more »