Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I do not like my password to be stored in plain text on linux server. Is there a way to use pptp without storing password to /etc/ppp ?

share|improve this question
    
Is the Linux server in this question serving as a PPTP server, with machines out in the field connecting back to get inside the local network on which the Linux server lives? Or, is the Linux server wanting to connect as a client of a PPTP server somewhere else? –  Brandon Rhodes Mar 22 '10 at 19:59
add comment

2 Answers

up vote 1 down vote accepted

An interesting question, although I may not have the perfect solution for you.

You see, pppd needs your peer password to be able to send it over the wire and while writing your password in a little masked box usually feels better than knowingly writing it an clear text file on your system, the results are usually the same.

With most programs, the passwords are either stored in clear text or backed behind some sort of key-ring.

What I recommend is that you use an encrypted file system for your "sensitive" configuration files and restrict access to the file on your system (with chmod) so that you're the only one able to read it.

share|improve this answer
add comment

You could upgrade your PPTP connection to EAP-TTLS, thus relocating the problem from storing a password to storing a certificate.

Nevertheless, encrypted file systems can only be recommended for such affairs.

share|improve this answer
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.