LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 01-13-2003, 05:15 AM   #1
h8r
Member
 
Registered: Jan 2003
Posts: 49

Rep: Reputation: 15
Talking 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
 
Old 01-13-2003, 10:30 AM   #2
oulevon
Member
 
Registered: Feb 2001
Location: Boston, USA
Distribution: Slackware
Posts: 437

Rep: Reputation: 30
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.
 
Old 01-13-2003, 02:21 PM   #3
h8r
Member
 
Registered: Jan 2003
Posts: 49

Original Poster
Rep: Reputation: 15
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..
 
Old 01-13-2003, 02:45 PM   #4
oulevon
Member
 
Registered: Feb 2001
Location: Boston, USA
Distribution: Slackware
Posts: 437

Rep: Reputation: 30
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.
 
Old 01-13-2003, 03:19 PM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,341
Blog Entries: 55

Rep: Reputation: 3538Reputation: 3538Reputation: 3538Reputation: 3538Reputation: 3538Reputation: 3538Reputation: 3538Reputation: 3538Reputation: 3538Reputation: 3538Reputation: 3538
Maybe http://freshmeat.net/search/?q=background+process
 
Old 01-13-2003, 04:21 PM   #6
h8r
Member
 
Registered: Jan 2003
Posts: 49

Original Poster
Rep: Reputation: 15
10x, people!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
really background a process Henster Linux - Newbie 1 07-01-2005 05:29 AM
how to run any binary in background - background process tej Linux - Newbie 1 08-16-2004 12:27 AM
Background Process mojozoox Linux - General 1 08-26-2003 02:16 PM
stdout for a background process GOLDF1NG3R Linux - General 3 11-14-2001 01:10 PM
background process gurra Programming 9 09-30-2001 01:31 PM


All times are GMT -5. The time now is 03:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration