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.
Hi friends!
I'm newbie, but i'm real linux fan. I want to make my friends like linux too. I want to gave them shell to my computer. Here comes my questions. I search for information about background process but no result. I want to know how to gave mu users (friends) only one background process, and if they run second - the system to kill the bg. I have only one question: how to addusers from the console ( only know from KUser) and restrict their rights ( to have permission only to for example: BitchX, man, cp, mv, pico ) I know that this is security problem, but i pasted here, becouse i think it's for newbies. Thanks to all that reply! (excuse my english)
adduser is the command to add a new user from the shell. You have to su to run it though. I don't know how you would limit the cpu from a user to one process. I'm not sure if it's possible, could be, but I don't know. As to limiting which applications they can run, I'd create a new group for these users, and change the permissions so that group can only use the specified applications.
10x for the reply. I know there is way to limit the background process, becouse there a lot shell providers that do this. I still want to know how to do it..
any user logged into a shell is going to have one process, so you have to be careful not to kill that process. I suppose you could write a script where you'd constantly check to see how many processes that user has and if it is greater than some number than kill them. For starters, you can find out what processes a user is running by using the following command:
ps aux | grep username
obviously username would be the user you were checking. That's a start, but you might want to wait for a better reply.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.