LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-10-2008, 07:19 PM   #1
spivy66
LQ Newbie
 
Registered: Nov 2004
Posts: 29

Rep: Reputation: 15
ulimit


Hey All

I have a problem with a user other then root. I'm trying to set ulimit -n 20000 in my .bashrc or even my .bash_profile for that user but everytime i log off it tells me I don't have permission. How can I have this save on boot?...

-bash: ulimit: open files: cannot modify limit: Operation not permitted
 
Old 01-10-2008, 10:01 PM   #2
sydney-troz
Member
 
Registered: Feb 2007
Distribution: Kubuntu, it's obese barely-usable sibling, Ubuntu
Posts: 142

Rep: Reputation: 15
are you modifying the file as root? you probably won't have write access as a normal user to another user's home directory, so you'll need to use sudo or log in as root and modify the file from there.
 
Old 01-11-2008, 06:08 AM   #3
spivy66
LQ Newbie
 
Registered: Nov 2004
Posts: 29

Original Poster
Rep: Reputation: 15
suoders

Thank you for your reply,and yes i tried using sudo but haveing issues setting it up in the the suoders file.I a tried to add

notes ALL=(ALL) ALL

and then added ulimit -n 20000 in my .bash_profile but that didnt work, any help would be great.thanks
 
Old 01-11-2008, 06:13 AM   #4
spivy66
LQ Newbie
 
Registered: Nov 2004
Posts: 29

Original Poster
Rep: Reputation: 15
correction i added

sudo notes ALL=(ALL) ALL
 
Old 01-11-2008, 08:19 AM   #5
sydney-troz
Member
 
Registered: Feb 2007
Distribution: Kubuntu, it's obese barely-usable sibling, Ubuntu
Posts: 142

Rep: Reputation: 15
so you have the word "sudo" in your sudoers file? and we're assuming your user is "notes".

Quote:
notes ALL=(ALL) ALL
should be all you need.
 
Old 01-11-2008, 10:03 AM   #6
spivy66
LQ Newbie
 
Registered: Nov 2004
Posts: 29

Original Poster
Rep: Reputation: 15
That might be my problem and yes notes is the user..Here is my suoders file.. I don think I have sudo in there..where do i put it?thanks for your help


# Host alias specification
# User alias specification

# Cmnd alias specification

# Defaults specification

# User privilege specification
root ALL=(ALL) ALL
notes ALL=(ALL) ALL
# Uncomment to allow people in group wheel to run all commands
# %wheel ALL=(ALL) ALL

# Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL

# Samples
# %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users localhost=/sbin/shutdown -h now
 
Old 01-11-2008, 01:33 PM   #7
spivy66
LQ Newbie
 
Registered: Nov 2004
Posts: 29

Original Poster
Rep: Reputation: 15
I figured it out, thanks for your help. It turned out that i needed to make some changes to my limits.conf file
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ulimit Serena Linux - Software 6 12-17-2014 11:04 PM
What is ulimit and what it does? brazilian_user Linux - General 3 01-30-2007 01:39 PM
ulimit introuble Linux - Security 1 07-22-2006 03:33 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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:56 PM.

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