<?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: Restricted user access. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/restricted-user-access/m-p/4428270#M355434</link>
    <description>Hi Avizen,&lt;BR /&gt;Your quick response is highlreciated. The user cannot go inside the subdirctories. Please see the below outputs;&lt;BR /&gt;$ whoami&lt;BR /&gt;testuser&lt;BR /&gt;$ pwd&lt;BR /&gt;/home/testuser&lt;BR /&gt;$ mkdir hp-india&lt;BR /&gt;$ ll -d hp-india&lt;BR /&gt;drwxrwxrwx   2 testuser   users           96 May 28 07:39 hp-india&lt;BR /&gt;$ cd hp-india&lt;BR /&gt;rsh: cd: The operation is not allowed in a restricted shell.&lt;BR /&gt;</description>
    <pubDate>Thu, 28 May 2009 04:40:41 GMT</pubDate>
    <dc:creator>vinuhcl</dc:creator>
    <dc:date>2009-05-28T04:40:41Z</dc:date>
    <item>
      <title>Restricted user access.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricted-user-access/m-p/4428268#M355432</link>
      <description>Hi,&lt;BR /&gt;I have created a restricted user on my 11.11 server. Currently this user cannot wander around to any directory other than his home directory.Now, I need to set up the user rights in such a way that this user can go to the sub directories inside his home directory. Kinldy let me know if any one can help me out on this....&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;Vinu</description>
      <pubDate>Thu, 28 May 2009 04:17:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricted-user-access/m-p/4428268#M355432</guid>
      <dc:creator>vinuhcl</dc:creator>
      <dc:date>2009-05-28T04:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: Restricted user access.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricted-user-access/m-p/4428269#M355433</link>
      <description>"this user can go to sub directories inside his home directory"&lt;BR /&gt;&lt;BR /&gt;how about create sub directory and change owner to this user,&lt;BR /&gt;</description>
      <pubDate>Thu, 28 May 2009 04:32:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricted-user-access/m-p/4428269#M355433</guid>
      <dc:creator>avizen9</dc:creator>
      <dc:date>2009-05-28T04:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Restricted user access.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricted-user-access/m-p/4428270#M355434</link>
      <description>Hi Avizen,&lt;BR /&gt;Your quick response is highlreciated. The user cannot go inside the subdirctories. Please see the below outputs;&lt;BR /&gt;$ whoami&lt;BR /&gt;testuser&lt;BR /&gt;$ pwd&lt;BR /&gt;/home/testuser&lt;BR /&gt;$ mkdir hp-india&lt;BR /&gt;$ ll -d hp-india&lt;BR /&gt;drwxrwxrwx   2 testuser   users           96 May 28 07:39 hp-india&lt;BR /&gt;$ cd hp-india&lt;BR /&gt;rsh: cd: The operation is not allowed in a restricted shell.&lt;BR /&gt;</description>
      <pubDate>Thu, 28 May 2009 04:40:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricted-user-access/m-p/4428270#M355434</guid>
      <dc:creator>vinuhcl</dc:creator>
      <dc:date>2009-05-28T04:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: Restricted user access.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricted-user-access/m-p/4428271#M355435</link>
      <description>Hi Vinu,&lt;BR /&gt;&lt;BR /&gt;cd is not permitted in restricted shell ,&lt;BR /&gt;&lt;BR /&gt;but you can perform certain things from outside of that subdir like&lt;BR /&gt;&lt;BR /&gt;touch subdir/test&lt;BR /&gt;cat subdir/test&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;the followings are not possible in restricted shell&lt;BR /&gt;Redirecting output&lt;BR /&gt;Specifying pathnames or command names containing a slash (/). &lt;BR /&gt;&lt;BR /&gt;Setting the value of the PATH or the SHELL variables. &lt;BR /&gt;moving around directory using cd command&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks!!&lt;BR /&gt;Johnson&lt;BR /&gt;&lt;BR /&gt;  &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 28 May 2009 05:03:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricted-user-access/m-p/4428271#M355435</guid>
      <dc:creator>johnsonpk</dc:creator>
      <dc:date>2009-05-28T05:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: Restricted user access.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricted-user-access/m-p/4428272#M355436</link>
      <description>Hello,&lt;BR /&gt;what method you use to create this restriced user,&lt;BR /&gt;why dont you try with sudo? thanks,</description>
      <pubDate>Thu, 28 May 2009 05:03:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricted-user-access/m-p/4428272#M355436</guid>
      <dc:creator>avizen9</dc:creator>
      <dc:date>2009-05-28T05:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: Restricted user access.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricted-user-access/m-p/4428273#M355437</link>
      <description>Hi Avizen,&lt;BR /&gt;How I created the user is through SAM and set the shell as /usr/bin/rsh. Could you please tell me how can I limit the cd usage of a user such a way that he can do cd to his home directories and to the subditrectories inside his home directory ( I can change the shell to a normall shell other than rsh)</description>
      <pubDate>Thu, 28 May 2009 05:23:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricted-user-access/m-p/4428273#M355437</guid>
      <dc:creator>vinuhcl</dc:creator>
      <dc:date>2009-05-28T05:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: Restricted user access.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricted-user-access/m-p/4428274#M355438</link>
      <description>&amp;gt;rsh: cd: The operation is not allowed in a restricted shell.&lt;BR /&gt;&lt;BR /&gt;That's what the man page says:&lt;BR /&gt;The cd command cannot be executed by rksh.&lt;BR /&gt;Or: rsh Restrictions&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/B2355-60130/sh-posix.1.html#d0e220003" target="_blank"&gt;http://docs.hp.com/en/B2355-60130/sh-posix.1.html#d0e220003&lt;/A&gt;</description>
      <pubDate>Thu, 28 May 2009 05:27:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricted-user-access/m-p/4428274#M355438</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-05-28T05:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: Restricted user access.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricted-user-access/m-p/4428275#M355439</link>
      <description>Can we set a user's privilage in sudo such a way that he can do cd to only his home direcotory and to it's child directories??</description>
      <pubDate>Thu, 28 May 2009 06:53:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricted-user-access/m-p/4428275#M355439</guid>
      <dc:creator>vinuhcl</dc:creator>
      <dc:date>2009-05-28T06:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: Restricted user access.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricted-user-access/m-p/4428276#M355440</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;no, sudo can't cd to unprivileged directory.</description>
      <pubDate>Thu, 28 May 2009 07:01:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricted-user-access/m-p/4428276#M355440</guid>
      <dc:creator>Kenan Erdey</dc:creator>
      <dc:date>2009-05-28T07:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: Restricted user access.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricted-user-access/m-p/4428277#M355441</link>
      <description>Hi Vinu &lt;BR /&gt;Yes you can do that ..&lt;BR /&gt;#visudo&lt;BR /&gt;then create rule like below&lt;BR /&gt;&lt;BR /&gt;userabc  ALL=(ALL) NOPASSWD:/usr/bin/cd /home/userabc*&lt;BR /&gt;&lt;BR /&gt;if you know the subdirectory ..u can specify that in the sudoers file separated by " ,"&lt;BR /&gt;&lt;BR /&gt;eg:userabc  ALL=(ALL) NOPASSWD:/usr/bin/cd /home/userabc*,/usr/bin/cd childdir &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;save and exit&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;and for moving across his directories&lt;BR /&gt;&lt;BR /&gt;use sudo cd /home/userabc/&lt;BR /&gt;&lt;BR /&gt; Thanks!!&lt;BR /&gt;Johnson&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 28 May 2009 07:08:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricted-user-access/m-p/4428277#M355441</guid>
      <dc:creator>johnsonpk</dc:creator>
      <dc:date>2009-05-28T07:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: Restricted user access.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricted-user-access/m-p/4428278#M355442</link>
      <description>Hello Vinu,&lt;BR /&gt;first you should verify sudo is installed in your hpux box with below command,&lt;BR /&gt;&lt;BR /&gt;swlist -l product | grep -i sudo&lt;BR /&gt;&lt;BR /&gt;if dont have sudo installed you can install it through below,&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.sudo.ws/sudo/dist/binaries/" target="_blank"&gt;http://www.sudo.ws/sudo/dist/binaries/&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 28 May 2009 07:12:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricted-user-access/m-p/4428278#M355442</guid>
      <dc:creator>avizen9</dc:creator>
      <dc:date>2009-05-28T07:12:57Z</dc:date>
    </item>
  </channel>
</rss>

