Hello
I remember that some time ago I found a guide on the Ubuntu website about adding samba shares to mount at boot via /etc/fstab.
The guide also mentioned using a credentials file to store the username and password.
However, the password was encrypted (in md5 I think) and it could not be read directly, but it still worked with fstab mount.
If I remember correctly, the file contents were similar to this:
Code:
useraname = user
password = --md5 *************
where ********** was replaced by the encoded password. All was done in terminal.
Recently I changed computers, and re-installed Ubuntu, but I forgot to save that file so I am not sure about the contents.
I would like to know how to do this again, but I can't find the guide anymore.
Does anyone know how to do this?
Storing the password in plain text in file readable only by root is not acceptable because it can be read by someone mounting the drive from other operating system, and the share cannot be mounted/unmounted by regular users (which is possible with the md5 encrypted password).
Bookmarks