Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How do I auto-mount a samba share that is password protected, without storing the password in plain text? That just doesn't seem all that safe to me.

I'm on Ubuntu 10.04 right now.

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

Plaintext doesn't always mean absolutely insecure. (Some good points can be found from Pidgin IM client wiki.) Remember that only the user who has access to your credentials file is able to read the password - mine is only readable by root access.

However, if someone gains physical or root access, the password is of course compromised. If your really need to protect the password from that, one way could be store the credentials file in a TrueCrypt encrypted area, which would need to be mounted (using some other password) before mounting the samba share. But since you're talking about auto-mount, this is probably not a viable option. It's possible to set up a script to mount the TrueCrypt volume automatically, but then there's the problem of where the password used to access the TrueCrypt volume is stored... I guess you could encrypt the entire drive with TrueCrypt, but that seems a bit overkill.

It could be there is a way to store the password in the Gnome Keyring, but I'm not aware of it.

share|improve this answer
    
Thank you good sir! –  Znarkus Jul 23 '10 at 20:59
    
You're most welcome! –  Ilari Kajaste Jul 26 '10 at 8:57
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.