[Pkg-shadow-devel] Bug#310185: login: If I want to use "su" then I allways get "su: permission denied"

Nicolas François Nicolas François <nicolas.francois@centraliens.net>, 310185@bugs.debian.org
Tue, 24 May 2005 14:01:11 +0200


Hello Martin,

On Tue, May 24, 2005 at 12:36:10PM +0200, Martin Wodrich wrote:
> > You should have something like:
> > pam_limits[...]:setrlimit limit #... failed: Operation not permitted;...
> > in your vserver logs
> 
> Yes, I have that in my logs.
> 
> > On a vserver, you may not be able to set an unlimited limit (-1 value),
> > which may be the failure cause (looking on google, it seems that on a
> > vserver, you can limit NPROC and RSS; pam_limit may not be able to set
> > limits higher than these values).
> 
> Only NPROC sound limited. But on every test I get
> an error mesage with soft=-1 hard=-1 .
> But in the limits.conf I set something else.

I don't know what is your configuration, so, I assume you have root access
on your vserver. If you add an user (test), and add the following lines:

test hard nproc 10
test soft nproc 10

in /etc/security/limits.conf


Does it works?

What does ulimit -u display currently (I hope it shows the maximum number
of processes you can setup in limits.conf)

Kind regards,
-- 
Nekral