Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-09-2005, 03:27 PM   #1
LQ Newbie
Registered: Nov 2003
Posts: 1

Rep: Reputation: 0
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.
Old 01-09-2005, 05:23 PM   #2
LQ Guru
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
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:
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Difficulty accessing SAMBA shares Tsarok Slackware 1 08-30-2005 09:16 PM
Samba password doesn't work when accessing Linux shares from W2K soren625 Linux - Software 4 05-14-2004 05:55 AM
Accessing Samba Shares The_Q DamnSmallLinux 2 02-05-2004 04:36 AM
Encrypted Shares on Samba with LDAP on Intranet Server spurgeonb Linux - Security 6 12-17-2003 03:20 AM
accessing samba shares is slow! kudos Linux - Software 2 11-26-2003 02:48 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:42 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration