Hi I'm trying to set custom number of open files with limits.conf for a
user with Debian 7 but it doesnt work (have rebooted etc.):
> debian7:/# cat /etc/issue
> Debian GNU/Linux 7 \n \l
>
> ii libpam-modules:amd64 1.1.3-7.1
> ii libpam-modules-bin 1.1.3-7.1
> ii libpam-runtime 1.1.3-7.1
> ii libpam0g:amd64 1.1.3-7.1
> ii sudo 1.8.5p2-1+nmu1
>
> debian7:/# cat /etc/security/limits.conf | grep test
> testing soft nofile 4096
> testing hard nofile 8000
>
> debian7:/etc/pam.d# egrep -r pam_limits /etc/pam.d/
> /etc/pam.d/cron:session required pam_limits.so
> /etc/pam.d/sshd:session required pam_limits.so
> /etc/pam.d/atd:session required pam_limits.so
> /etc/pam.d/su:session required pam_limits.so
> /etc/pam.d/login:session required pam_limits.so
>
> debian7:/# sudo -u testing -s ulimit -Sn
> 1024
on a side not, this works ok, but it doesnt help me as I need the sudo
command to see the correct limits aswell.
> debian7:/# sudo su - testing
> $ ulimit -Sn
> 4096
> $ ulimit -Hn
> 8000
> $
but on a Debian 6 system it works.
> debian6:/# cat /etc/issue
> Debian GNU/Linux 6.0 \n \l
>
> debian6:/# cat /etc/security/limits.conf | grep test
> testing soft nofile 4096
> testing hard nofile 8000
>
> debian6:/# egrep -r pam_limits /etc/pam.d/
> /etc/pam.d/sshd:session required pam_limits.so
> /etc/pam.d/cron:session required pam_limits.so
> /etc/pam.d/su:session required pam_limits.so
> /etc/pam.d/login:session required pam_limits.so
> /etc/pam.d/sudo:session required pam_limits.so
>
> debian6:/# sudo -u testing -s ulimit -Sn
> 4096
> debian6:/# sudo -u testing -s ulimit -Hn
> 8000
anyone seen this issue before or know if there is an added security
option one has to active in wheezy?
Thanks in advance.
Stefan
--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/52f0ca2b.40...@glesys.se