LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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
Distribution: Debian 11.0
Posts: 97

Rep: Reputation: 16
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: 56
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
Distribution: Debian 11.0
Posts: 97

Original Poster
Rep: Reputation: 16
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: 56
Then probably sudo is the best solution
 
Old 12-17-2014, 12:51 PM   #5
Cagebreinne01
LQ Newbie
 
Registered: Dec 2014
Location: PK
Posts: 9

Rep: Reputation: Disabled
Quote:
Originally Posted by neo77777 View Post
Then probably sudo is the best solution
Thanks guy, For helping here.what you say about "Sudo version 1.8.12b3" Okay for me?
 
Old 12-17-2014, 05:53 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Cagebreinne01
you are aware that rh7.2 is a VERY LONG DEAD version of redhat
and this 12 year old thread is well 12 years OLD , and for a OS that is DEAD
 
Old 12-17-2014, 11:04 PM   #7
Cagebreinne01
LQ Newbie
 
Registered: Dec 2014
Location: PK
Posts: 9

Rep: Reputation: Disabled
Quote:
Originally Posted by John VV View Post
Cagebreinne01
you are aware that rh7.2 is a VERY LONG DEAD version of redhat
and this 12 year old thread is well 12 years OLD , and for a OS that is DEAD
No I am just searching on net, I wasn't be see its date.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:23 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
Open Source Consulting | Domain Registration