LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Accessing remote shares with encrypted Samba password at bootup (https://www.linuxquestions.org/questions/linux-software-2/accessing-remote-shares-with-encrypted-samba-password-at-bootup-275793/)

CyberGuy 01-09-2005 03:27 PM

Accessing remote shares with encrypted Samba password at bootup
 
I'm running Fedora Core 3 and I wanted to access a remote windows share using samba at bootup automatically without being prompted a username or password. I know by entering in username and password variables in /etc/fstab is the way to do it. The only thing is that I don't want my password to be plain text. So my question is that if there is a way to encrypt the password on my hard drive and have it sent encrypted. I don't know if this will matter or not, but I'm logging in to my linux machine with a username different from the one that will be used to access the remote share. Thanks a lot for the help.

Demonbane 01-09-2005 05:23 PM

The alternative way is to use a credentials file
In yout mount options add something like "credentials=/etc/samba/mypass" instead of username and password
Then put in your user/pass in /etc/samba/mypass using the following format:
Code:

username = yourusername
password = yourpass

This is a little bit safer then putting passwords directly in /etc/fstab which is usually publicly readable, and of course you'll need to properly protect /etc/samba/mypass file.


All times are GMT -5. The time now is 04:11 AM.