Find the answer to your Linux question:
Results 1 to 3 of 3
anybody help me to configure the telnet appication to accept customized number of user ???????????...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2005
    Posts
    2

    Telnet


    anybody help me to configure the telnet appication to accept
    customized number of user ???????????

  2. #2
    Linux Newbie
    Join Date
    Feb 2005
    Posts
    177

    Re: Telnet

    Quote Originally Posted by iPACTech
    anybody help me to configure the telnet appication to accept
    customized number of user ???????????
    I think it would be better if you use ssh

  3. #3
    Linux Guru Flatline's Avatar
    Join Date
    Feb 2005
    Posts
    2,204
    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
    /usr/lib/security.

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •