Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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

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

Your Answer


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.