[CentOS] pam_access.so restrictions not working - syntax errors?

2009-03-20 Thread Dirk H . Schulz
Hi folks, I want to restrict root access via ssh to certain (internal) hosts. That is what pam_access.so is for, I thought, so I configured: in /etc/security/access.conf I added (nothing in there before): + : root : 192.168.123.0/24 10.72.0.0/16 - : root : ALL in /etc/pam.d/ssh I added at the

Re: [CentOS] pam_access.so restrictions not working - syntax errors?

2009-03-20 Thread Filipe Brandenburger
Hi, I have it working with SSH here for a similar setup. On Fri, Mar 20, 2009 at 09:49, Dirk H. Schulz dirk.sch...@kinzesberg.de wrote: in /etc/pam.d/ssh I added at the end: account required pam_access.so I believe you have to add this line *before* the account include system-auth line.