LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 05-21-2007, 07:34 AM   #1
bin_asc
Member
 
Registered: Aug 2006
Distribution: CentOS
Posts: 35

Rep: Reputation: Disabled
Limit process per user account


I have installed a software that can create multiple daemons that users can use for script caching. But, I`m looking for a way to restrict user access for it`s own daemon. So, basically, x user won`t be able to access y user`s daemon. Also, I would need a way to be able to restrict a user to use multiple daemons. Is this possible ? I saw that grsec patched kernel has this ability and several other security enhancements, but I read some topics about it, and some said it really lacks performance. Is there any other viable solutions ?

PS. I`m using CentOS, so would appreciat some solution that works on it.

Regards,
Adrian
 
Old 05-22-2007, 01:33 AM   #2
slimm609
Member
 
Registered: May 2007
Location: Chas, SC
Distribution: slackware, gentoo, fedora, LFS, sidewinder G2, solaris, FreeBSD, RHEL, SUSE, Backtrack
Posts: 428

Rep: Reputation: 65
for the user x cannot access user y daemon if you can put it in there home dir and chmod 700 to all home dirs.

for the multiple user daemon create a group and add the users to it and chown rootnew group) daemonname
and chmod 770 daemonname


as far as grsec i would recommend staying away from it unless you are really paranoid about security. like me =)

grsecurity is very nice but it takes alot of time to get running exactly how you want it and if you add programs to the system you get to change your policy again and again.

if you want to try out grsec i have a my distro that is almost done and it has grsec built in.
 
Old 05-22-2007, 03:36 AM   #3
bin_asc
Member
 
Registered: Aug 2006
Distribution: CentOS
Posts: 35

Original Poster
Rep: Reputation: Disabled
How can one chown a process ? The soft can create multiple streams, a sort of local http server ( but on different ports ) that users can access. So I can`t just chown the file. Waiting for reply. Thanks
 
Old 05-22-2007, 03:58 AM   #4
slimm609
Member
 
Registered: May 2007
Location: Chas, SC
Distribution: slackware, gentoo, fedora, LFS, sidewinder G2, solaris, FreeBSD, RHEL, SUSE, Backtrack
Posts: 428

Rep: Reputation: 65
sorry bout that. i thought that the certain users just needed to stop/start the daemon. off the top of my head i can not think of a way beside grsecurity or selinux
 
Old 05-22-2007, 07:45 AM   #5
bin_asc
Member
 
Registered: Aug 2006
Distribution: CentOS
Posts: 35

Original Poster
Rep: Reputation: Disabled
Luckly, the daemon was made with a -u username command, so only those users can access the daemon, and it works No more need for grsec.

Thanks though for the suggestions
 
  


Reply

Tags
process, restrict, user


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
ip limit for a user in any process ysar68 Linux - Security 3 05-10-2007 08:56 AM
How to limit a user account even further Ashrack Linux - Security 5 04-15-2006 05:15 PM
is it legitimate and allowed and can be done to make another user account set uid and gid to null 0 to make another root account with different name and possibly not damage the debian system creating and using that new account BenJoBoy Linux - Newbie 12 01-29-2006 10:02 AM
Limit CPU by user, site or process apc1 Linux - General 0 01-22-2005 06:01 PM
increase the process limit of user ust Linux - General 3 10-20-2004 05:06 AM


All times are GMT -5. The time now is 04:19 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration