I don’t want let many users login to PPTP server of linux with single username and password.
is there any solution exists for this?
I don’t want let many users login to PPTP server of linux with single
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’ve never used pptpd myself, but its docs say that it just uses the underlying pppd.
pppd can be configured via pam, using
/etc/pam.d/ppp.One PAM module is
pam_listfile(8)(at least available on my Ubuntu 10.04 machine), which can be configured to deny users with usernames listed in a specific file:You may be able to amend this for your site; by appending names to a file after a successful login and removing the names on logout, you could make it very difficult to have two connections created for the same user account.
Of course, this would be pretty brittle — a dropped connection would need to have its line removed, and router reboots might annoy hundreds or thousands of users at once. I might suggest just truncating the whole file when users complain, and hope to avoid gross abuse of your system at best. (And the program to remove usernames would need to be carefully written to avoid races; you can use
lockfile(1)ordotlockfile(1)to help you.)Perhaps some periodic auditing would be another option: you could check the wutmp files (see
w(1),lastlog(8)) or process listings (ps auxwis nice) once in a while and see if people are abusing it, and handle it as a policy issue, rather than a software enforcement issue.Hope this helps.