<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: about telnet in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/about-telnet/m-p/3558422#M226044</link>
    <description>An easy way might be to add something to his .profile that would check for the existence of an SSH env variable that gets set by ssh. If the var doesn't exist, we can assume it's not ssh and exit...  SSH_CLIENT should be set w/ each user's ssh login.&lt;BR /&gt;&lt;BR /&gt;hope this helps,&lt;BR /&gt;-denver&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 06 Jun 2005 10:04:38 GMT</pubDate>
    <dc:creator>Denver Osborn</dc:creator>
    <dc:date>2005-06-06T10:04:38Z</dc:date>
    <item>
      <title>about telnet</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-telnet/m-p/3558419#M226041</link>
      <description>how to deny a special user login host from telnet.but allow login from ssh?&lt;BR /&gt;thanks!</description>
      <pubDate>Mon, 06 Jun 2005 08:20:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-telnet/m-p/3558419#M226041</guid>
      <dc:creator>wangmx</dc:creator>
      <dc:date>2005-06-06T08:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: about telnet</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-telnet/m-p/3558420#M226042</link>
      <description>You can set up the user ip address in /var/adm/inetd.sec with telnet set to deny and secure shell set to allow.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 06 Jun 2005 08:27:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-telnet/m-p/3558420#M226042</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-06-06T08:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: about telnet</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-telnet/m-p/3558421#M226043</link>
      <description>thank your reply so fast.&lt;BR /&gt;But I want to allow user,not his ip!</description>
      <pubDate>Mon, 06 Jun 2005 08:40:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-telnet/m-p/3558421#M226043</guid>
      <dc:creator>wangmx</dc:creator>
      <dc:date>2005-06-06T08:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: about telnet</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-telnet/m-p/3558422#M226044</link>
      <description>An easy way might be to add something to his .profile that would check for the existence of an SSH env variable that gets set by ssh. If the var doesn't exist, we can assume it's not ssh and exit...  SSH_CLIENT should be set w/ each user's ssh login.&lt;BR /&gt;&lt;BR /&gt;hope this helps,&lt;BR /&gt;-denver&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Jun 2005 10:04:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-telnet/m-p/3558422#M226044</guid>
      <dc:creator>Denver Osborn</dc:creator>
      <dc:date>2005-06-06T10:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: about telnet</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-telnet/m-p/3558423#M226045</link>
      <description>The funny thing is, I do not believe there is an "Allow User" for ssh on HP-UX.  You must create a list of all user logins for ssh to be Denied.  Create the Deny User list in the sshd config file.&lt;BR /&gt;&lt;BR /&gt;Simply, remove the user login that you would like to Allow in this Deny User list.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Jun 2005 22:04:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-telnet/m-p/3558423#M226045</guid>
      <dc:creator>D Block 2</dc:creator>
      <dc:date>2005-06-06T22:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: about telnet</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-telnet/m-p/3558424#M226046</link>
      <description>I did a similar thing some time back.&lt;BR /&gt;&lt;BR /&gt;Just write "exit" in the .profile of the user.&lt;BR /&gt;Now whenever he will telnet, he will be logged off.</description>
      <pubDate>Tue, 07 Jun 2005 03:13:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-telnet/m-p/3558424#M226046</guid>
      <dc:creator>Vibhor Kumar Agarwal</dc:creator>
      <dc:date>2005-06-07T03:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: about telnet</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-telnet/m-p/3558425#M226047</link>
      <description>You can deny a special user using /etc/profile as,&lt;BR /&gt;&lt;BR /&gt;if [[ "$LOGNAME" = "splusername" ]]&lt;BR /&gt;then&lt;BR /&gt;  ps | grep -q 'telnet'&lt;BR /&gt;  if [[ $? -eq 0 ]]&lt;BR /&gt;  then&lt;BR /&gt;    echo "$LOGNAME is denied with telnet login"&lt;BR /&gt;    sleep 2&lt;BR /&gt;  fi&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;If you want to control based on specific user from specific IP for using telnet then,&lt;BR /&gt;&lt;BR /&gt;if [[ "$LOGNAME" = "splusername" ]]&lt;BR /&gt;then&lt;BR /&gt;  if [[ $(who -mu | awk '{ print $8 }') = "ip-address" ]]&lt;BR /&gt;  then&lt;BR /&gt;    ps | grep -q 'telnet'&lt;BR /&gt;    if [[ $? -eq 0 ]]&lt;BR /&gt;    then&lt;BR /&gt;      echo "$LOGNAME is denied with telnet login"&lt;BR /&gt;      sleep 2&lt;BR /&gt;    fi&lt;BR /&gt;  fi&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;hth.&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Jun 2005 03:31:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-telnet/m-p/3558425#M226047</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-06-07T03:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: about telnet</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-telnet/m-p/3558426#M226048</link>
      <description>Try to put exit 1 after sleep 2 in above script. Then only it will deny users.&lt;BR /&gt;&lt;BR /&gt;You can deny a special user using /etc/profile as,&lt;BR /&gt;&lt;BR /&gt;if [[ "$LOGNAME" = "splusername" ]]&lt;BR /&gt;then&lt;BR /&gt;ps | grep -q 'telnet'&lt;BR /&gt;if [[ $? -eq 0 ]]&lt;BR /&gt;then&lt;BR /&gt;echo "$LOGNAME is denied with telnet login"&lt;BR /&gt;sleep 2&lt;BR /&gt;exit 1&lt;BR /&gt;fi&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;If you want to control based on specific user from specific IP for using telnet then,&lt;BR /&gt;&lt;BR /&gt;if [[ "$LOGNAME" = "splusername" ]]&lt;BR /&gt;then&lt;BR /&gt;if [[ $(who -mu | awk '{ print $8 }') = "ip-address" ]]&lt;BR /&gt;then&lt;BR /&gt;ps | grep -q 'telnet'&lt;BR /&gt;if [[ $? -eq 0 ]]&lt;BR /&gt;then&lt;BR /&gt;echo "$LOGNAME is denied with telnet login"&lt;BR /&gt;sleep 2&lt;BR /&gt;exit 1&lt;BR /&gt;fi&lt;BR /&gt;fi&lt;BR /&gt;fi&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Jun 2005 03:53:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-telnet/m-p/3558426#M226048</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-06-07T03:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: about telnet</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-telnet/m-p/3558427#M226049</link>
      <description>just thinking of logging herein.. you will want to log to syslog the telnet users and the ssh users.&lt;BR /&gt;&lt;BR /&gt;here's a "gem" to think about from Bill Hassell.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=697894" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=697894&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;HP-UX 11.11 uses PAM for all authentication. You can loggin options for ssh in /etc/opt/ssh/sshd_conf. For a normal login, you can add this to /etc/profile:&lt;BR /&gt;&lt;BR /&gt;TTY=$(tty)&lt;BR /&gt;RHOST=$(who -muR | awk '{print $NF}')&lt;BR /&gt;UID=$(id -ur)&lt;BR /&gt;EUID=$(id -u)&lt;BR /&gt;RUSER=$(id -un)&lt;BR /&gt;logger -t "login-info" -p auth.info "logname=$LOGNAME uid=$UID euid=$EUID tty=$TTY ruser=$RUSER &lt;BR /&gt;rhost=$RHOST"&lt;BR /&gt;&lt;BR /&gt;This only writes a syslog message when the user is successful in getting a login.</description>
      <pubDate>Tue, 07 Jun 2005 21:55:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-telnet/m-p/3558427#M226049</guid>
      <dc:creator>D Block 2</dc:creator>
      <dc:date>2005-06-07T21:55:47Z</dc:date>
    </item>
  </channel>
</rss>

