Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: process limit/su problem
- X-seq: zsh-users 3597
- From: Tarmo Järvi <tarmoj@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxxxxxx
- Subject: Re: process limit/su problem
- Date: Thu, 25 Jan 2001 13:42:48 +0000 (GMT+00:00)
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
Hello,
>> I have following lines in /etc/zshenv to prevent fork-bombing etc
>> by ordinary users :
>>
>> if [ `id -gn` = `id -un` -a `id -u` -gt 14 ]
>> then
>> ulimit -H -u 64 -c 65536 -f 2097152 -n 128
>> else
>> ulimit -u 2048 -c 65536 -f 4194394 -n 1024
>> fi
>
>another (less daunting :-) way to do the same
>
>while read line
>do
>if [[ ${line[(ws/:/)3]} = $GID ]]; then
> GNAME=${line[(ws/:/)1]}
> break
fi
>done < /etc/group
Yes, it works! Even with ypcat passwd | while ....
Thanks a lot!
Messages sorted by:
Reverse Date,
Date,
Thread,
Author