<?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: Restrict specific user from telnet session with c shell in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/restrict-specific-user-from-telnet-session-with-c-shell/m-p/4074024#M308115</link>
    <description>You're welcome Alfredo, although the credit should go to "larsoncu" as he had suggested it in a post earlier in this thread.&lt;BR /&gt;&lt;BR /&gt;also, please award points and close thread if the issue has been resolved.&lt;BR /&gt;&lt;BR /&gt;see: &lt;A href="http://forums1.itrc.hp.com/service/forums/helptips.do?#33" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/helptips.do?#33&lt;/A&gt;</description>
    <pubDate>Thu, 27 Sep 2007 10:23:26 GMT</pubDate>
    <dc:creator>OldSchool</dc:creator>
    <dc:date>2007-09-27T10:23:26Z</dc:date>
    <item>
      <title>Restrict specific user from telnet session with c shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restrict-specific-user-from-telnet-session-with-c-shell/m-p/4074009#M308100</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I appreciate if someone has encountered to restrict particular user from telnet with c shell. This user must only be used by "su" from the normal users (switch only). I tried to create a script under .cshrc and even from .login but still bypassing it and user can still login directly. The requirements must only restrict this user to login directly by telnet and normal users must do su to this restricted user(telnet). My client is using telnet and they haven't ssh implemented, kinda weird =) as already suggested but still stick to telnet =). Thank you for the sharing of your comments!</description>
      <pubDate>Fri, 21 Sep 2007 04:27:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restrict-specific-user-from-telnet-session-with-c-shell/m-p/4074009#M308100</guid>
      <dc:creator>shardam</dc:creator>
      <dc:date>2007-09-21T04:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict specific user from telnet session with c shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restrict-specific-user-from-telnet-session-with-c-shell/m-p/4074010#M308101</link>
      <description>make his shell false&lt;BR /&gt;&lt;BR /&gt;Make the default-shell for the user  /usr/bin/false &lt;BR /&gt;be sure this is in the /etc/shells file. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 21 Sep 2007 08:40:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restrict-specific-user-from-telnet-session-with-c-shell/m-p/4074010#M308101</guid>
      <dc:creator>Aussan</dc:creator>
      <dc:date>2007-09-21T08:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict specific user from telnet session with c shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restrict-specific-user-from-telnet-session-with-c-shell/m-p/4074011#M308102</link>
      <description>/usr/bin/false for the shell will lock out the direct connection but it will also cause su with a "-" to fail.&lt;BR /&gt;&lt;BR /&gt;Another option mentioned many times in these forums is shutdown telnet and use ssh.  the ssh daemon can controll direct logins.&lt;BR /&gt;&lt;BR /&gt;If really adventurous you could play with writing a wrapper around the telnet daemon. i.e. check black list then fire off telnet&lt;BR /&gt;&lt;BR /&gt;Another option is to put the black list check in /etc/profile.  At least the users could not circumvent this profile in liue of their own.&lt;BR /&gt;&lt;BR /&gt;pssst....Don't lock yourself off the system while testing..</description>
      <pubDate>Fri, 21 Sep 2007 08:48:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restrict-specific-user-from-telnet-session-with-c-shell/m-p/4074011#M308102</guid>
      <dc:creator>Tim Nelson</dc:creator>
      <dc:date>2007-09-21T08:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict specific user from telnet session with c shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restrict-specific-user-from-telnet-session-with-c-shell/m-p/4074012#M308103</link>
      <description>One other note.  If you wrap the telnetd beware that it would most likely be overwritten with a patch load.</description>
      <pubDate>Fri, 21 Sep 2007 08:49:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restrict-specific-user-from-telnet-session-with-c-shell/m-p/4074012#M308103</guid>
      <dc:creator>Tim Nelson</dc:creator>
      <dc:date>2007-09-21T08:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict specific user from telnet session with c shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restrict-specific-user-from-telnet-session-with-c-shell/m-p/4074013#M308104</link>
      <description>Hi Alfredo,&lt;BR /&gt;&lt;BR /&gt;See KB doc  "HP-UX telnet - How to Restrict Telnet Access by User" - &lt;A href="http://www4.itrc.hp.com/service/cki/docDisplay.do?docLocale=en&amp;amp;docId=emr_na-c00843266-1" target="_blank"&gt;http://www4.itrc.hp.com/service/cki/docDisplay.do?docLocale=en&amp;amp;docId=emr_na-c00843266-1&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;There are many examples to restict users.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;ivan</description>
      <pubDate>Fri, 21 Sep 2007 08:50:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restrict-specific-user-from-telnet-session-with-c-shell/m-p/4074013#M308104</guid>
      <dc:creator>Ivan Krastev</dc:creator>
      <dc:date>2007-09-21T08:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict specific user from telnet session with c shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restrict-specific-user-from-telnet-session-with-c-shell/m-p/4074014#M308105</link>
      <description>Hi Alfredo,&lt;BR /&gt;&lt;BR /&gt;See KB doc  "HP-UX telnet - How to Restrict Telnet Access by User" - &lt;A href="http://www4.itrc.hp.com/service/cki/docDisplay.do?docLocale=en&amp;amp;docId=emr_na-c00843266-1" target="_blank"&gt;http://www4.itrc.hp.com/service/cki/docDisplay.do?docLocale=en&amp;amp;docId=emr_na-c00843266-1&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;There are many examples how to restrict users.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;ivan</description>
      <pubDate>Fri, 21 Sep 2007 08:50:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restrict-specific-user-from-telnet-session-with-c-shell/m-p/4074014#M308105</guid>
      <dc:creator>Ivan Krastev</dc:creator>
      <dc:date>2007-09-21T08:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict specific user from telnet session with c shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restrict-specific-user-from-telnet-session-with-c-shell/m-p/4074015#M308106</link>
      <description>don't know if this is the suggested doc being i can't read it.&lt;BR /&gt;&lt;BR /&gt;but if the user is su'ing, when you do a who -um it will display the user you login as.  therefore if you logged as a different user and su'ed then whoami and who -um will be different.  if whoami and who -um are the same you probably telneted in.  &lt;BR /&gt;&lt;BR /&gt;could put this in the /etc/login ? (whatever is used by csh) to test the values and don't allow access if they are the same.</description>
      <pubDate>Fri, 21 Sep 2007 09:18:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restrict-specific-user-from-telnet-session-with-c-shell/m-p/4074015#M308106</guid>
      <dc:creator>larsoncu</dc:creator>
      <dc:date>2007-09-21T09:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict specific user from telnet session with c shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restrict-specific-user-from-telnet-session-with-c-shell/m-p/4074016#M308107</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;Sorry for my delay reply, however:&lt;BR /&gt;&lt;BR /&gt;Aussan, modify shell with /usr/bin/false will disable the user totally even if you will do "su/su -"&lt;BR /&gt;&lt;BR /&gt;Tim, tcp wrapper based from my experience with this service tool, as far as i know it will restrict only the specific users from a certain services/daemons but this can work only to restrict certain hosts,ips/subnets from host.deny/allows files. Take note this user is using csh shell and i dont think it's using /etc/profile (applicable ony with posix/bourne shells) but it's /etc/csh.login, the requirement from this dba user is to restrict direct telnet, I made some script from this user's profile (.cshr/.login) but still bypasing my script.&lt;BR /&gt;Is it possible from tct wrapper to restrict certain user to access from daemon/services?&lt;BR /&gt;&lt;BR /&gt;Iva, sorry no access from HP Europe ITRC site but only ASIPAC =) but let me try to register there later. Would appreciate if you can attach from here.&lt;BR /&gt;&lt;BR /&gt;Thanks again for your support but our clients since from the start they already using this logins sevice and most of them implemented in the production systems and already suggested to use ssh instead =(</description>
      <pubDate>Mon, 24 Sep 2007 00:23:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restrict-specific-user-from-telnet-session-with-c-shell/m-p/4074016#M308107</guid>
      <dc:creator>shardam</dc:creator>
      <dc:date>2007-09-24T00:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict specific user from telnet session with c shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restrict-specific-user-from-telnet-session-with-c-shell/m-p/4074017#M308108</link>
      <description>Same doc as above, except America/Asia Pacific site:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en&amp;amp;docId=emr_na-c00843266-1" target="_blank"&gt;http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en&amp;amp;docId=emr_na-c00843266-1&lt;/A&gt;</description>
      <pubDate>Mon, 24 Sep 2007 09:26:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restrict-specific-user-from-telnet-session-with-c-shell/m-p/4074017#M308108</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2007-09-24T09:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict specific user from telnet session with c shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restrict-specific-user-from-telnet-session-with-c-shell/m-p/4074018#M308109</link>
      <description>Hello Alfredo,&lt;BR /&gt;&lt;BR /&gt;Workaround: /var/adm/inetd.sec&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 24 Sep 2007 21:39:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restrict-specific-user-from-telnet-session-with-c-shell/m-p/4074018#M308109</guid>
      <dc:creator>TY 007</dc:creator>
      <dc:date>2007-09-24T21:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict specific user from telnet session with c shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restrict-specific-user-from-telnet-session-with-c-shell/m-p/4074019#M308110</link>
      <description>Hi TY, /var/adm/inetd.sec can not restrict particular user to deny from telnet login sessions but can only work to allow/deny certain address/hosts from services.&lt;BR /&gt;&lt;BR /&gt;Has anyone encountered this same concern of mine, restricting user with c shell to deny direct login from telnet session but su is enable from it? Highest points will be rewarded =)</description>
      <pubDate>Tue, 25 Sep 2007 22:04:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restrict-specific-user-from-telnet-session-with-c-shell/m-p/4074019#M308110</guid>
      <dc:creator>shardam</dc:creator>
      <dc:date>2007-09-25T22:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict specific user from telnet session with c shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restrict-specific-user-from-telnet-session-with-c-shell/m-p/4074020#M308111</link>
      <description>Hi sorry to mention about tcp wrapper that this can able to deny specific user from service being use but this can only restrict certain hosts/ips based from host.allow/deny.</description>
      <pubDate>Wed, 26 Sep 2007 01:33:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restrict-specific-user-from-telnet-session-with-c-shell/m-p/4074020#M308111</guid>
      <dc:creator>shardam</dc:creator>
      <dc:date>2007-09-26T01:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict specific user from telnet session with c shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restrict-specific-user-from-telnet-session-with-c-shell/m-p/4074021#M308112</link>
      <description>&lt;A href="http://www.cites.uiuc.edu/wsg/resources/security/hpux.html#login" target="_blank"&gt;http://www.cites.uiuc.edu/wsg/resources/security/hpux.html#login&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.blacksheepnetworks.com/security/resources/sec_HPUX.html" target="_blank"&gt;http://www.blacksheepnetworks.com/security/resources/sec_HPUX.html&lt;/A&gt;&lt;BR /&gt;here is a good thing for you. try it it should work.&lt;BR /&gt;&lt;A href="http://www.brandonhutchinson.com/restricting_user_access.html" target="_blank"&gt;http://www.brandonhutchinson.com/restricting_user_access.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;cheers.</description>
      <pubDate>Wed, 26 Sep 2007 02:27:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restrict-specific-user-from-telnet-session-with-c-shell/m-p/4074021#M308112</guid>
      <dc:creator>AwadheshPandey</dc:creator>
      <dc:date>2007-09-26T02:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict specific user from telnet session with c shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restrict-specific-user-from-telnet-session-with-c-shell/m-p/4074022#M308113</link>
      <description>alfredo,&lt;BR /&gt;&lt;BR /&gt;as noted above, you will need to look at the difference between what "who am i" and "whoami" return.  "whoami" will return the id of the current effective user (the one you su'd to), while "who am i" will return the id you came from.&lt;BR /&gt;&lt;BR /&gt;if the result of "whoami" is a user that should not telnet directly, you then need to check if the user returned by "who am i" is different.  If not, block the login, if so they can proceed.  The logic itself should probably go in /etc/csh.login.  Note that you will then have to maintain the list of prohibitted users somewhere.&lt;BR /&gt;&lt;BR /&gt;As to the actual code to do that, you're on your own, as I haven't seen a csh script in years.  &lt;BR /&gt;&lt;BR /&gt;Unless there are overwhelming reasons not to, users of csh should consider moving to other shells like /bin/sh (posix), /usr/bin/ksh, bash or others.  You might look at:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.faqs.org/faqs/unix-faq/shell/csh-whynot" target="_blank"&gt;http://www.faqs.org/faqs/unix-faq/shell/csh-whynot&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;for more info.</description>
      <pubDate>Wed, 26 Sep 2007 12:06:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restrict-specific-user-from-telnet-session-with-c-shell/m-p/4074022#M308113</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2007-09-26T12:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict specific user from telnet session with c shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restrict-specific-user-from-telnet-session-with-c-shell/m-p/4074023#M308114</link>
      <description>Hi Oldschool,&lt;BR /&gt;&lt;BR /&gt;Thank you very much for the idea of difference between these whoami/who am i, as I finally created one simple script under c shell and appended this to .login of the profile of each restricted users and it was successfully work. The users are now restricted thru direct login of telnet/even ssh and can only login from su/su - from normal users. Again, thanks to all ;-)&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Alfred</description>
      <pubDate>Thu, 27 Sep 2007 01:18:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restrict-specific-user-from-telnet-session-with-c-shell/m-p/4074023#M308114</guid>
      <dc:creator>shardam</dc:creator>
      <dc:date>2007-09-27T01:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict specific user from telnet session with c shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restrict-specific-user-from-telnet-session-with-c-shell/m-p/4074024#M308115</link>
      <description>You're welcome Alfredo, although the credit should go to "larsoncu" as he had suggested it in a post earlier in this thread.&lt;BR /&gt;&lt;BR /&gt;also, please award points and close thread if the issue has been resolved.&lt;BR /&gt;&lt;BR /&gt;see: &lt;A href="http://forums1.itrc.hp.com/service/forums/helptips.do?#33" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/helptips.do?#33&lt;/A&gt;</description>
      <pubDate>Thu, 27 Sep 2007 10:23:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restrict-specific-user-from-telnet-session-with-c-shell/m-p/4074024#M308115</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2007-09-27T10:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict specific user from telnet session with c shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restrict-specific-user-from-telnet-session-with-c-shell/m-p/4074025#M308116</link>
      <description>Thanks again, guys!</description>
      <pubDate>Mon, 01 Oct 2007 04:23:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restrict-specific-user-from-telnet-session-with-c-shell/m-p/4074025#M308116</guid>
      <dc:creator>shardam</dc:creator>
      <dc:date>2007-10-01T04:23:23Z</dc:date>
    </item>
  </channel>
</rss>

