From: Herbert Poetzl (herbert_at_13thfloor.at)
Date: Sun 07 Dec 2003 - 15:24:19 GMT
On Sun, Dec 07, 2003 at 03:01:38PM +0000, Luís Miguel Silva wrote:
> Hello all,
>
> I have a question regarding the ulimit on the vserver.
> On vserver.conf i have
> ULIMIT="-HS -u 250"
>
> now i want to set some extra flags for each user that
> logs on to the server.
logs on how? ssh maybe?
from the sshd man page:
6. Reads $HOME/.ssh/environment if it exists.
7. Changes to user's home directory.
8. If $HOME/.ssh/rc exists, runs it; else if /etc/ssh/sshrc
exists, runs it; otherwise runs xauth.
> so i changed /etc/profile to have a:
> ulimit -S -c 0 -p 8
>
> This doesnt work.
how does it 'not work'?
> But i can set
> ulimit -S -c 0 -t 2048 for example.
in the same script (/etc/profile) or on the shell?
> Is there a patch or something i should do to only
> allow for X processes for EACH users that log on
> to my server using shell access?
if everything else fails, you could modify
the sshd to call setrlimit() ...
HTH,
Herbert
> Best,
> +-----------------------------------------
> | Luís Miguel Silva
> | Network Administrator@ ISPGaya.pt
> | Rua António Rodrigues da Rocha, 291/341
> | Sto. Ovídio • 4400-025 V. N. de Gaia
> | Portugal
> | T: +351 22 3745730/3/5 F: +351 22 3745738
> | G: +351 93 6371253 E: lms_at_ispgaya.pt
> | H: http://lms.ispgaya.pt/
> +-----------------------------------------
> ________________________________________________________________
> Este email foi enviado através do site http://webmail.ispgaya.pt/
> Instituto Superior Politécnico Gaya
>
>
>
> _______________________________________________
> Vserver mailing list
> Vserver_at_list.linux-vserver.org
> http://list.linux-vserver.org/mailman/listinfo/vserver
_______________________________________________
Vserver mailing list
Vserver_at_list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver