Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
The /etc/rc.d/rc.K handles the single user logon
well I use a bios password that way you need a password to boot the hardware.
I am sure some one has a script out there.
cough it up programmers
Check out your /etc/rc.d/rc.K script and then you can tweek what you need.
OP is not asking about booting to Single User mode, but how to restrict the access of a single user (i.e. one of many).
This may be available in a given distribution, but it isn't something that is directly supported at the operating system level of Linux, as such - so if it's not there already, it's going to be a job of actually writing something, I think.
You don't name the distribution you are running, nor whether this is a command-line login, or a login to a graphical desktop, or whatever... Comandline login process is handled by a program called 'tty' or 'getty' (stands for 'get teletype', from the dim and distant past of computing, for what it's worth). You may want to consider putting something in that intercepts the login process after getty has dealt with basic user-authentication - something that logs the user back out again, if they fail the additional criteria you have set for them, for instance.
Either way, its an additional layer of user management as far as I can see. For one thing, this is going to need some form of database, to keep count of number of logins per day and number of fluffed logins, et cetera.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.