Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Mar 2005
customized number of user ???????????
- Join Date
- Feb 2005
Re: TelnetOriginally Posted by iPACTech
I agree about using ssh being better...this is how I limit ssh users:
Most linux distro's ship with a PAM module called pam_succeed_if.so, in
You can use this to limit logins, by any number of characteristics, but
login name is the one I use.
so, in /etc/pam.d/sshd, in place of:
account required pam.stack.so service=system-auth
I add a line like:
account sufficient pam_succeed_if.so login = username
and comment out the system-auth line:
account sufficient pam_succeed_if.so login = gbush
account sufficient pam_succeed_if.so login = tblair
account sufficient pam_succeed_if.so login = jhoward
#account required pam.stack.so service=system-auth
This limits logins to only the small number of users allowed to SSH in,
and restricts other users, even if they have valid accounts. For
instance, perhaps a mail-only users, or something.There are two major products that come out of Berkeley: LSD and UNIX. We don't believe this to be a coincidence.
- Jeremy S. Anderson