LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Background process (https://www.linuxquestions.org/questions/linux-newbie-8/background-process-41289/)

h8r 01-13-2003 05:15 AM

Background process
 
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)

P.S. my distro is Slackware 8.1.

Thanks again,
h8r

oulevon 01-13-2003 10:30 AM

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.

h8r 01-13-2003 02:21 PM

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

oulevon 01-13-2003 02:45 PM

okay,

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.

unSpawn 01-13-2003 03:19 PM

Maybe http://freshmeat.net/search/?q=background+process

h8r 01-13-2003 04:21 PM

10x, people!


All times are GMT -5. The time now is 11:07 AM.