Steve Lee wrote:
> how do i disable telnet for all users but only one.
> is there a file i can say disable all users and allow only one
> user.

echo "session    required     /lib/security/pam_access.so" >>
/etc/pam.d/login
echo -- "-:ALL except user1:ALL except console" >>
/etc/security/access.conf

I think the above will work.  The first command adds the access module
to login's pam authentication.  After that, login should take into
account the contents of /etc/security/access.conf. 

The second command should disallow all user's logins on non-console
tty's, except for "user1", who may still log in on non-console tty's.

MSG


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to