On Wed Mar 01 2000 at 18:37, r00t the LiNuXeRRR wrote:
> I want to deny user access from login with ssh. I use PAM to limit
> logins for an user/group but this works only with "login" (with telnet
> or console login). When i login with ssh it doesn't work. I want to set up
> expiry date for each user manualy (not at the creation time).
ssh is liked against libwrap.a, so you can use the tcp_wrappers
mechanisms (/etc/hosts.allow and /etc/hosts.deny) to locally control
who gets access.
man 5 hosts_access
man 5 hosts_options
(as well as relevant sections out of the sshd man page). It works
very well.
As for user account expirary times, check /etc/shadow and its man
page.
Cheers
Tony
-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-
Tony Nugent <[EMAIL PROTECTED]> Systems Administrator, RHCE
GrowZone OnLine (a project of) GrowZone Development Network
POBox 475 Toowoomba Oueensland Australia 4350 Ph: 07 4637 8322
-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-
-====---====---====---====---====---====---====---====---====---====---====-
to unsubscribe email "unsubscribe linux-admin" to [EMAIL PROTECTED]
See the linux-admin FAQ: http://www.kalug.lug.net/linux-admin-FAQ/