<?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 customized shell in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/customized-shell/m-p/4965869#M416752</link>
    <description>Hi there!&lt;BR /&gt;I need to create a particular shell and assigne it to a particular user (only one in the system) writing it in the /etc/passwd file.&lt;BR /&gt;This shell is allowed to execute only these commands:&lt;BR /&gt;ls -l&lt;BR /&gt;cd&lt;BR /&gt;cat&lt;BR /&gt;And nothing else. Is it possible?&lt;BR /&gt;Any idea?&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;BR /&gt;Vale et valete&lt;BR /&gt;ZAMPO</description>
    <pubDate>Thu, 09 Mar 2006 09:11:39 GMT</pubDate>
    <dc:creator>Zampo</dc:creator>
    <dc:date>2006-03-09T09:11:39Z</dc:date>
    <item>
      <title>customized shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/customized-shell/m-p/4965869#M416752</link>
      <description>Hi there!&lt;BR /&gt;I need to create a particular shell and assigne it to a particular user (only one in the system) writing it in the /etc/passwd file.&lt;BR /&gt;This shell is allowed to execute only these commands:&lt;BR /&gt;ls -l&lt;BR /&gt;cd&lt;BR /&gt;cat&lt;BR /&gt;And nothing else. Is it possible?&lt;BR /&gt;Any idea?&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;BR /&gt;Vale et valete&lt;BR /&gt;ZAMPO</description>
      <pubDate>Thu, 09 Mar 2006 09:11:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/customized-shell/m-p/4965869#M416752</guid>
      <dc:creator>Zampo</dc:creator>
      <dc:date>2006-03-09T09:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: customized shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/customized-shell/m-p/4965870#M416753</link>
      <description>Hi :&lt;BR /&gt;&lt;BR /&gt;What you need to do is setup the user with a "restricted" shell ('rsh').  See the 'sh-posix' manpages under the section headed "rsh Restrictions":&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/B2355-60127/sh-posix.1.html" target="_blank"&gt;http://docs.hp.com/en/B2355-60127/sh-posix.1.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Thu, 09 Mar 2006 09:18:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/customized-shell/m-p/4965870#M416753</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-03-09T09:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: customized shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/customized-shell/m-p/4965871#M416754</link>
      <description>You want to configure restricted shell (/usr/bin/rsh) for them. Been a long time since I played with it though and I see no man page for it in 11.11, unfortunately. I seem to recall it required copying whatever executables you wanted the restricted user to use into a location they could access.</description>
      <pubDate>Thu, 09 Mar 2006 09:21:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/customized-shell/m-p/4965871#M416754</guid>
      <dc:creator>Jeff_Traigle</dc:creator>
      <dc:date>2006-03-09T09:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: customized shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/customized-shell/m-p/4965872#M416755</link>
      <description>Ah... the man reference was somewhere obvious. :)</description>
      <pubDate>Thu, 09 Mar 2006 09:21:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/customized-shell/m-p/4965872#M416755</guid>
      <dc:creator>Jeff_Traigle</dc:creator>
      <dc:date>2006-03-09T09:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: customized shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/customized-shell/m-p/4965873#M416756</link>
      <description>rsh will not allow the cd command. I suppose my approach would be a small c program that parses stdin and exec()'s your 3 listed command.</description>
      <pubDate>Thu, 09 Mar 2006 09:31:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/customized-shell/m-p/4965873#M416756</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-03-09T09:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: customized shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/customized-shell/m-p/4965874#M416757</link>
      <description>There are only a few settings that force a restricted shell user to stay in their restricted shell.  If any of the steps to create a restricted user are in error or are later modified, the restricted user could gain access beyond what you are expecting.  Since you have placed this user in a restricted shell, common sense says this is not a user you want snooping around your system.  In order to understand the reason for these new settings, letâ  s review the required steps for a restricted shell user:&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;1). The login shell listed in /etc/passwd is /usr/bin/rsh&lt;BR /&gt;&lt;BR /&gt;2). The userâ  s home directory must have permissions of 555&lt;BR /&gt;&lt;BR /&gt;3). Create a bin directory in the userâ  s home directory, also with permissions of 555&lt;BR /&gt;&lt;BR /&gt;4). The userâ  s .profile will have only one entry:&lt;BR /&gt;&lt;BR /&gt;            export PATH=/home/guest/bin&lt;BR /&gt;&lt;BR /&gt;5). The permissions on the userâ  s .profile will be 444 and owned by root/sys&lt;BR /&gt;&lt;BR /&gt;6). Copy only the programs needed by the user to their bin directory&lt;BR /&gt;&lt;BR /&gt;7). Add the user to the /etc/ftpd/ftpusers file&lt;BR /&gt;&lt;BR /&gt;8). Restrict the user from other services using other configurable access control files</description>
      <pubDate>Thu, 09 Mar 2006 09:32:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/customized-shell/m-p/4965874#M416757</guid>
      <dc:creator>Enrico Rossin</dc:creator>
      <dc:date>2006-03-09T09:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: customized shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/customized-shell/m-p/4965875#M416758</link>
      <description>Actually, writing a small shell script with a simple menu will work. Your menu script will present the 3 (or more) commands in a list and if the command is not listed, the user has no access. Note that cd (unrestricted) may be too much of a privilege if this user is not well trained. Note that ls and cat can list any file from any directory where the user has permission. No need to cd. The restricted shell cannot cd outside the user's HOME directory.</description>
      <pubDate>Thu, 09 Mar 2006 18:35:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/customized-shell/m-p/4965875#M416758</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2006-03-09T18:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: customized shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/customized-shell/m-p/4965876#M416759</link>
      <description>Many thanks to everyone!!!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Vale et valete&lt;BR /&gt;ZAMPO</description>
      <pubDate>Tue, 14 Mar 2006 10:41:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/customized-shell/m-p/4965876#M416759</guid>
      <dc:creator>Zampo</dc:creator>
      <dc:date>2006-03-14T10:41:18Z</dc:date>
    </item>
  </channel>
</rss>

