LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 08-02-2002, 02:06 PM   #1
Serena
Member
 
Registered: Apr 2002
Location: Moon Kingdom
Distribution: Debian 4.0
Posts: 94

Rep: Reputation: 15
Question ulimit


I compiled a server whose startup script calls ulimit twice, and both times I get an operation not permitted error. In RH 7.2, how can I make a list of users (or a group) that can use ulimit so that I don't have to run as root?
 
Old 08-03-2002, 10:50 AM   #2
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 55
You can set up sudo and /etc/sudoers file to give certain users certain rights; another way is setup a group admins with
groupaddb -r admins
it creates system account group (with gid <= 499)
and then add users to this group with
usermod -G gid_of_admins user_name
gid_of_admins can be found in /etc/group file (three-digit number)
and change perms on ulimit with
chown root:admins /path/to/ulimit; chmod 750 /path/to/ulimit
in this case only root and admins group would be able to execute ulimit

Last edited by neo77777; 08-03-2002 at 10:53 AM.
 
Old 08-03-2002, 05:10 PM   #3
Serena
Member
 
Registered: Apr 2002
Location: Moon Kingdom
Distribution: Debian 4.0
Posts: 94

Original Poster
Rep: Reputation: 15
I wanted to use the new group approach, but I discovered ulimit is a built-in command without an executable file. Can I still do it this way?
 
Old 08-04-2002, 12:22 AM   #4
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 55
Then probably sudo is the best solution
 
  


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
ulimit comman is for what xshashiy Linux - Software 2 10-05-2005 06:52 AM
ulimit problems robeadam Linux - General 1 06-22-2005 08:41 AM
ulimit -t juanbobo Linux - Security 3 06-10-2005 09:43 AM
Ulimit -v Help !!!!!!!!!!!!!!!!!!!!!! raees Linux - Software 1 07-04-2004 10:01 AM
ulimit -n evilrico Linux - Distributions 0 03-14-2003 04:23 PM


All times are GMT -5. The time now is 03:02 PM.

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