<?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: /usr/bin/rsh in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/usr-bin-rsh/m-p/3047933#M135876</link>
    <description>Not if the user runs "\su"...  it will ignore the alias.</description>
    <pubDate>Wed, 13 Aug 2003 20:38:14 GMT</pubDate>
    <dc:creator>Nat Guyton</dc:creator>
    <dc:date>2003-08-13T20:38:14Z</dc:date>
    <item>
      <title>/usr/bin/rsh</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/usr-bin-rsh/m-p/3047931#M135874</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I want to restrict one user in one shell. If I put the shell /usr/bin/rsh I cannot do the command "cd". I have prove to put de binary in the user's home but it doesn't work. Is there any way to have the command "cd" with a shell /usr/bin/rsh?&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;Carme.</description>
      <pubDate>Wed, 13 Aug 2003 10:29:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/usr-bin-rsh/m-p/3047931#M135874</guid>
      <dc:creator>Carme Torca</dc:creator>
      <dc:date>2003-08-13T10:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: /usr/bin/rsh</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/usr-bin-rsh/m-p/3047932#M135875</link>
      <description>The rsh/rksh shells do not support the use of the cd command.&lt;BR /&gt;&lt;BR /&gt;If you need to have some kind of restriction on your users to prevent them from using other commands, try the following;&lt;BR /&gt;&lt;BR /&gt;Set the user to use /usr/bin/sh (or other shell)&lt;BR /&gt;&lt;BR /&gt;add the line&lt;BR /&gt;&lt;BR /&gt;ENV=$HOME/.kshrc &lt;BR /&gt;&lt;BR /&gt;to /etc/profile.  This will allow you to set up (and disable) features for them in a controlled manner.&lt;BR /&gt;&lt;BR /&gt;Then in their home directory, add aliases to the .kshrc file, for example&lt;BR /&gt;&lt;BR /&gt;alias su=/usr/bin/true&lt;BR /&gt;&lt;BR /&gt;This will override the su command, making the user run /usr/bin/true instead, which will then just return immediately to the shell prompt.</description>
      <pubDate>Wed, 13 Aug 2003 10:38:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/usr-bin-rsh/m-p/3047932#M135875</guid>
      <dc:creator>Chris Wilshaw</dc:creator>
      <dc:date>2003-08-13T10:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: /usr/bin/rsh</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/usr-bin-rsh/m-p/3047933#M135876</link>
      <description>Not if the user runs "\su"...  it will ignore the alias.</description>
      <pubDate>Wed, 13 Aug 2003 20:38:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/usr-bin-rsh/m-p/3047933#M135876</guid>
      <dc:creator>Nat Guyton</dc:creator>
      <dc:date>2003-08-13T20:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: /usr/bin/rsh</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/usr-bin-rsh/m-p/3047934#M135877</link>
      <description>The rsh shell is designed to be extremely limited by design. If you want to provide certain commands (like /usr/bin/vi) then you have to copy them (plus their required libraries) to each user's $HOME directory in an expected manner. This can be quite a large task since the rsh shell has so little in it. You may be better off providing the problem users with a menu program and take away shell access completely.</description>
      <pubDate>Wed, 13 Aug 2003 23:54:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/usr-bin-rsh/m-p/3047934#M135877</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2003-08-13T23:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: /usr/bin/rsh</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/usr-bin-rsh/m-p/3047935#M135878</link>
      <description>I've seen cases where a directory /usr/local/rbin was set up, and links to any required binaries put here, then set /usr/local/rbin as the only directory in the user's path.&lt;BR /&gt;&lt;BR /&gt;You could then link /usr/bin/cd and whatever else.  Obviously don't put an editor in there, because then the user can change their setup scripts to get around many of the rsh and rksh restrictions...</description>
      <pubDate>Thu, 14 Aug 2003 14:55:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/usr-bin-rsh/m-p/3047935#M135878</guid>
      <dc:creator>Nat Guyton</dc:creator>
      <dc:date>2003-08-14T14:55:17Z</dc:date>
    </item>
  </channel>
</rss>

