On Fri, 2003-01-10 at 14:38, David H wrote:
> Hi,
> 
> I would like to have "no login" for some users in ssh,
> how do I do it?
> 
> Thanks
> David

there are a couple ways, but the one i found worked best for me was to
configure pam to issue an "f-off" for users not in a "ssh_allowed" list
in /etc/ssh/:

edit /etc/pam.d/ssh and add this line:

  auth       required     pam_listfile.so item=user sense=allow
file=/etc/ssh/sshd_allow onerr=fail


then create a list in /etc/ssh/sshd_allow and list the users that you're
cool with allowing access.





-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to