Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: process limit/su problem



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