Linux - SoftwareThis 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.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hey guys I'm wondering if there is anything out there already written that will let me direct someone to login to ssh newuser@foobar.net and use the passwd "signup" and then make ssh pull some kind of script or program that will let a user register via a ssh login and let for example a admin actually review it before giving access to the user.
I don't know if software like that exists, but it would be simple enough to write up a script to do it.
Though if you are going to be manually reviewing and adding these accounts, couldn't the new user simply email the information to you? Or fill out some web form?
You can have the users account initially disabled. You can allow use "AllowUsers" in /etc/ssh/sshd to only allow access to a "white" list of users. Any user or group not in AllowUsers will be denied access.
You will need to also configure it so that the user needs to change their password after they first login, and to enforce a strong password policy in PAM. Shell accounts can be very dangerous. A weak password would be easily broken by a script kiddie running a brute force attack.
If you allow users shell accounts, also look at enforcing connection limits and quotas.
Any user account can use any program as its "shell." Your special registration-program could be defined as the shell of this account named newuser whose password is signup.
When the shell program ends, then (by definition...) the user session is over.
This technique is what is sometimes called a "kiosk account."
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.