<?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 Restricted Shell in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/restricted-shell/m-p/3669575#M243533</link>
    <description>Hi&lt;BR /&gt;&lt;BR /&gt;I have setup a a restricted sheel for a user, but I want to allow him to mkdir's in his home directory an be able to 'CD' into them&lt;BR /&gt;&lt;BR /&gt;I know you can no cd out of your home directory - but can they not cd down ?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Mick</description>
    <pubDate>Fri, 11 Nov 2005 04:57:44 GMT</pubDate>
    <dc:creator>Michael Geraghty_1</dc:creator>
    <dc:date>2005-11-11T04:57:44Z</dc:date>
    <item>
      <title>Restricted Shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricted-shell/m-p/3669575#M243533</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;I have setup a a restricted sheel for a user, but I want to allow him to mkdir's in his home directory an be able to 'CD' into them&lt;BR /&gt;&lt;BR /&gt;I know you can no cd out of your home directory - but can they not cd down ?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Mick</description>
      <pubDate>Fri, 11 Nov 2005 04:57:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricted-shell/m-p/3669575#M243533</guid>
      <dc:creator>Michael Geraghty_1</dc:creator>
      <dc:date>2005-11-11T04:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: Restricted Shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricted-shell/m-p/3669576#M243534</link>
      <description>Are you set rksh to that specific user? He will not be able to execute cd command!&lt;BR /&gt;&lt;BR /&gt;man ksh says,&lt;BR /&gt;&lt;BR /&gt;The cd command cannot be executed by rksh.&lt;BR /&gt;&lt;BR /&gt;hth.</description>
      <pubDate>Fri, 11 Nov 2005 05:01:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricted-shell/m-p/3669576#M243534</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-11-11T05:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: Restricted Shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricted-shell/m-p/3669577#M243535</link>
      <description>How you have set restricted user??</description>
      <pubDate>Fri, 11 Nov 2005 05:01:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricted-shell/m-p/3669577#M243535</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2005-11-11T05:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Restricted Shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricted-shell/m-p/3669578#M243536</link>
      <description>yes - I have set rsh as there shell in /etc/passwd.  &lt;BR /&gt;&lt;BR /&gt;Basically I wanted to setup a scp server for users that can only copy in and out of there own directories and maybe subdirectories in there $HOME&lt;BR /&gt;&lt;BR /&gt;This cant be done with rsh then ?</description>
      <pubDate>Fri, 11 Nov 2005 05:04:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricted-shell/m-p/3669578#M243536</guid>
      <dc:creator>Michael Geraghty_1</dc:creator>
      <dc:date>2005-11-11T05:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: Restricted Shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricted-shell/m-p/3669579#M243537</link>
      <description>Then you can not give cd execution to that permission.&lt;BR /&gt;&lt;BR /&gt;I've tried out this:&lt;BR /&gt;&lt;BR /&gt;$ mkdir test&lt;BR /&gt;$ cd test&lt;BR /&gt;rksh: cd: restricted&lt;BR /&gt;$&lt;BR /&gt;$&lt;BR /&gt;$ echo "cd test" | ksh&lt;BR /&gt;ksh: cd: restricted&lt;BR /&gt;&lt;BR /&gt;So you can not achive with rksh setting in /etc/passwd.&lt;BR /&gt;&lt;BR /&gt;hth.</description>
      <pubDate>Fri, 11 Nov 2005 05:07:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricted-shell/m-p/3669579#M243537</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-11-11T05:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: Restricted Shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricted-shell/m-p/3669580#M243538</link>
      <description>Basically I wanted to setup a scp server for users that can only copy in and out of there own directories and maybe subdirectories in there $HOME&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;I hope scp will allow to access files under $HOME. Did you check with that? I am not having scp utility here.&lt;BR /&gt;&lt;BR /&gt;Test as,&lt;BR /&gt;# Machine2:&lt;BR /&gt;&lt;BR /&gt;touch /file1&lt;BR /&gt;&lt;BR /&gt;# Machine 1 ---&amp;gt; Machine 2&lt;BR /&gt;&lt;TEST&gt;$ scp test@Machine2:/file1 .&lt;BR /&gt;has to be failed&lt;BR /&gt;&lt;BR /&gt;# Machine 1 ---&amp;gt; Machine 2&lt;BR /&gt;&lt;TEST&gt;$ scp root@Machine2:/file1 .&lt;BR /&gt;has to be passed&lt;BR /&gt;&lt;BR /&gt;for your requirement. Check revert with results.&lt;BR /&gt;&lt;BR /&gt;hth.&lt;BR /&gt;&lt;/TEST&gt;&lt;/TEST&gt;</description>
      <pubDate>Fri, 11 Nov 2005 05:15:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricted-shell/m-p/3669580#M243538</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-11-11T05:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: Restricted Shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricted-shell/m-p/3669581#M243539</link>
      <description>I created a 'test' directory under the users home directoy&lt;BR /&gt;&lt;BR /&gt;I was able to scp a file over to the new directory, if I ssh to the server, I can list the new file under $HOME/test but cant cd into it&lt;BR /&gt;&lt;BR /&gt;This I could get away with if the user is using shell under unix - but if using something like WinSCP, it throws you out if you try to view the contents of ../test</description>
      <pubDate>Fri, 11 Nov 2005 05:38:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricted-shell/m-p/3669581#M243539</guid>
      <dc:creator>Michael Geraghty_1</dc:creator>
      <dc:date>2005-11-11T05:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: Restricted Shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricted-shell/m-p/3669582#M243540</link>
      <description>We use restricted shell. As said before, you cannot cd to any directories.&lt;BR /&gt;&lt;BR /&gt;Anyway, users does not need to cd to the directory to perform operations with the file. They just must specify the path to the file.&lt;BR /&gt;&lt;BR /&gt;Why do you need to cd to that directory?</description>
      <pubDate>Fri, 11 Nov 2005 07:21:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricted-shell/m-p/3669582#M243540</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2005-11-11T07:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: Restricted Shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricted-shell/m-p/3669583#M243541</link>
      <description>If they ssh to the server they can list what is in the directory no problem so copying to and from $HOME/test/test2 is no problem.&lt;BR /&gt;&lt;BR /&gt;But, if using WinSCP or some other tool, it throws you out because when you click on the folder to list the contents - it uses "cd" to get in and list ??</description>
      <pubDate>Fri, 11 Nov 2005 07:30:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricted-shell/m-p/3669583#M243541</guid>
      <dc:creator>Michael Geraghty_1</dc:creator>
      <dc:date>2005-11-11T07:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: Restricted Shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricted-shell/m-p/3669584#M243542</link>
      <description>With a restricted shell, you can limit what commands the user can execute - but not necessarily what he/she can do with those commands. The commands you allow to the restricted user must be able to perform similar restrictions internally, otherwise a tricky user might circumvent your restrictions.&lt;BR /&gt;&lt;BR /&gt;If your goal is to create an user account for SSH file transfer which can access files only in the account's home directory and subdirectories, chroot is the answer.&lt;BR /&gt;&lt;BR /&gt;The commercial SSH from ssh.com and newer versions of OpenSSH can be configured to chroot the session for certain users. When a session is chrooted, the user sees his/her home directory as a root directory. The subdirectories of the home directory are accessible normally, but the rest of the filesystem "does not exist" for him/her.&lt;BR /&gt;&lt;BR /&gt;The disadvantage of chroot is that if the user is going to execute normal (non-chroot-aware) commands inside the chroot jail, you must supply the entire environment inside the jail. The sshd handles SFTP internally, so it does not need any libraries. &lt;BR /&gt;&lt;BR /&gt;But if you need anything else, you must determine the correct libraries using "ldd" and "chatr" commands, and copy those libraries into the chroot environment. Symlinking does not help: the symlinks are interpreted within the context of the chroot environment.&lt;BR /&gt;</description>
      <pubDate>Fri, 11 Nov 2005 08:40:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricted-shell/m-p/3669584#M243542</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2005-11-11T08:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: Restricted Shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricted-shell/m-p/3669585#M243543</link>
      <description>I agree with the CHROOT solution ;).</description>
      <pubDate>Fri, 11 Nov 2005 08:42:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricted-shell/m-p/3669585#M243543</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2005-11-11T08:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: Restricted Shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricted-shell/m-p/3669586#M243544</link>
      <description>Another thing that came to my mind is:&lt;BR /&gt;&lt;BR /&gt;What if you in the /etc/profile verify if the users falls under the restricted category (by the name, group, etc) and if so, assign them the restricted shell.&lt;BR /&gt;&lt;BR /&gt;The profile is not read when you ftp/sftp. But, still the chroot environment is more secure.</description>
      <pubDate>Fri, 11 Nov 2005 09:35:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricted-shell/m-p/3669586#M243544</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2005-11-11T09:35:22Z</dc:date>
    </item>
  </channel>
</rss>

