Jump to content

Increasing ulimit


Guest imtrobin
 Share

Recommended Posts

Guest imtrobin

Hi,

 

I'm trying to increase the ulimit for mandrake 10 system. It's working for root user only. When I login as another user, I'm getting a

 

ulimit: open files: cannot modify limit: Operation not permitted

 

My steps are

1. Add these to /etc/security/limits.conf

 

myuser hard nofile 4096

 

2. Add this to /etc/pam.d/login, /etc/pam.d/xdm, /etc/pam.d/sshd

 

session required pam_limits.so

 

When I do ulimit -n 4096 in root, it works. When I login as myuser, it gives the error above. What's wrong?

 

 

[moved from Installing Mandrake by spinynorman]

Link to comment
Share on other sites

?

I'm not sure what you are trying to do, but it looks like to me an adjustment that only root can do. My next guess is that whatever operation you are running, it is also a root required function. What are you doing, anyway?

Link to comment
Share on other sites

Guest imtrobin

Thanks for the reply. I have root acccess. I'm trying to increase file limit for all users.

 

The ulimit change I did works for root user, however, I'm trying to get it work for normal users.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...