<?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: SSH chroot setup in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-chroot-setup/m-p/3639028#M238908</link>
    <description>When you chroot a user, they need access to all commands they would normally get from places like /usr/bin&lt;BR /&gt;&lt;BR /&gt;There is a command missing not the group file missing. Get rid of that copy of the group file and figure out what command has not been made acessible to this user.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
    <pubDate>Fri, 30 Sep 2005 08:15:59 GMT</pubDate>
    <dc:creator>Steven E. Protter</dc:creator>
    <dc:date>2005-09-30T08:15:59Z</dc:date>
    <item>
      <title>SSH chroot setup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-chroot-setup/m-p/3639027#M238907</link>
      <description>I am trying to setup SSH chroot environment on one of our HP-UX 11.11 server, with latest SSH v4.0.&lt;BR /&gt;I run its official script:&lt;BR /&gt;&lt;BR /&gt;&amp;lt;&amp;gt; swlist -l product | grep -i shell&lt;BR /&gt;  Secure_Shell          A.04.00.000    HP-UX Secure Shell&lt;BR /&gt;&lt;BR /&gt;&amp;lt;&amp;gt; ./ssh_chroot_setup.sh&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;         Pre check in progress  please wait...finished&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; Please wait. chroot setup checks for necessary files on the system ...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;         HP SECURE SHELL: CHROOT ENVIRONMENT SETUP - MAIN MENU&lt;BR /&gt;         -----------------------------------------------------&lt;BR /&gt;&lt;BR /&gt;         Select one of the option below&lt;BR /&gt;&lt;BR /&gt;         1.Configure a new user&lt;BR /&gt;&lt;BR /&gt;         2.Configure an existing user to a chroot-ed user&lt;BR /&gt;&lt;BR /&gt;         3.Remove chroot environment from a chroot-ed user&lt;BR /&gt;&lt;BR /&gt;         4.Exit&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;         Enter your choice : 2&lt;BR /&gt;&lt;BR /&gt;         Chroot setup&lt;BR /&gt;        ---------------&lt;BR /&gt;&lt;BR /&gt;         User name : transfr&lt;BR /&gt;&lt;BR /&gt;         chroot setup checks for user details ...completed&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;         Enter the new root directory for transfr with absolute path (or press return for default(/newroot)):&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;         ---------------------------------&lt;BR /&gt;         Select chroot secure shell option&lt;BR /&gt;         ----------------------------------&lt;BR /&gt;         1 sftp only&lt;BR /&gt;         2 ssh &amp;amp; sftp &amp;amp; scp&lt;BR /&gt;         press return key to skip this step&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;         Option : 2&lt;BR /&gt;&lt;BR /&gt;         configuring ssh &amp;amp; sftp &amp;amp; scp...finished&lt;BR /&gt;&lt;BR /&gt;         Summary&lt;BR /&gt;         --------&lt;BR /&gt;&lt;BR /&gt;         Chroot-ed user : transfr&lt;BR /&gt;&lt;BR /&gt;         Chroot-ed user's new root directory : /newroot&lt;BR /&gt;&lt;BR /&gt;         Secure Shell configuration : SSH &amp;amp; SFTP &amp;amp; SCP&lt;BR /&gt;&lt;BR /&gt;         press Return key&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;         HP SECURE SHELL: CHROOT ENVIRONMENT SETUP - MAIN MENU&lt;BR /&gt;         -----------------------------------------------------&lt;BR /&gt;&lt;BR /&gt;         Select one of the option below&lt;BR /&gt;&lt;BR /&gt;         1.Configure a new user&lt;BR /&gt;&lt;BR /&gt;         2.Configure an existing user to a chroot-ed user&lt;BR /&gt;&lt;BR /&gt;         3.Remove chroot environment from a chroot-ed user&lt;BR /&gt;&lt;BR /&gt;         4.Exit&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;         Enter your choice : 4&lt;BR /&gt;&lt;BR /&gt;After that, I restarted the "sshd".&lt;BR /&gt;&lt;BR /&gt;When I login as "transfr" via SFTP, it did prevent the user "transfr" to access directory other than /newroot, which is good. But I noticed that all files couldn't show group attribute:&lt;BR /&gt;&lt;BR /&gt;psftp&amp;gt; open srs057&lt;BR /&gt;login as: transfr&lt;BR /&gt;Using username "transfr".&lt;BR /&gt;Password:&lt;BR /&gt;Remote working directory is /home/transfr&lt;BR /&gt;psftp&amp;gt; cd /&lt;BR /&gt;Remote directory is now /&lt;BR /&gt;psftp&amp;gt; ls&lt;BR /&gt;Listing directory /&lt;BR /&gt;drwxrwxrwx   11 root     3            8192 Sep 30 08:32 .&lt;BR /&gt;drwxrwxrwx   11 root     3            8192 Sep 30 08:32 ..&lt;BR /&gt;drwxr-xr-x    2 root     3              96 Sep 30 08:32 bin&lt;BR /&gt;drwxr-xr-x    3 root     3              96 Sep 30 08:32 dev&lt;BR /&gt;drwxr-xr-x    2 root     3              96 Sep 30 08:43 etc&lt;BR /&gt;drwxrwxrwx    3 root     3              96 Sep 30 08:32 home&lt;BR /&gt;drwxrwxrwx    3 root     3              96 Sep 30 08:32 opt&lt;BR /&gt;drwxr-xr-x    2 root     3              96 Sep 30 08:32 sbin&lt;BR /&gt;drwxrwxrwx    2 root     3              96 Sep 30 08:32 tmp&lt;BR /&gt;drwxrwxrwx    4 root     3              96 Sep 30 08:32 usr&lt;BR /&gt;drwxrwxrwx    3 root     3              96 Sep 30 08:32 var&lt;BR /&gt;psftp&amp;gt; cd&lt;BR /&gt;Remote directory is now /home/transfr&lt;BR /&gt;psftp&amp;gt; ls&lt;BR /&gt;Listing directory /home/transfr&lt;BR /&gt;drwxr-xr-x    2 transfr  240            96 Sep 30 08:36 .&lt;BR /&gt;drwxrwxrwx    3 root     3              96 Sep 30 08:32 ..&lt;BR /&gt;-rw-------    1 transfr  240           168 Sep 30 08:47 .sh_history&lt;BR /&gt;&lt;BR /&gt;I tried to copy "/etc/group" to "/newroot/etc/group", restarted sshd, and login as "transfr", but it didn't help... What can I do?&lt;BR /&gt;&amp;lt;&amp;gt; cp /etc/group group&lt;BR /&gt;&amp;lt;&amp;gt; ll&lt;BR /&gt;total 64&lt;BR /&gt;-r--------   1 root       sys            352 Sep 30 08:43 group&lt;BR /&gt;-rw-r--r--   1 root       sys             28 Apr  5 08:42 nsswitch.conf&lt;BR /&gt;-r--r--r--   1 root       sys           1388 Jul 31  2003 pam.conf&lt;BR /&gt;-rw-r--r--   1 root       sys           1953 Sep 30 08:32 passwd&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Please help! Thanks a lot!</description>
      <pubDate>Fri, 30 Sep 2005 08:10:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-chroot-setup/m-p/3639027#M238907</guid>
      <dc:creator>yyghp</dc:creator>
      <dc:date>2005-09-30T08:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: SSH chroot setup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-chroot-setup/m-p/3639028#M238908</link>
      <description>When you chroot a user, they need access to all commands they would normally get from places like /usr/bin&lt;BR /&gt;&lt;BR /&gt;There is a command missing not the group file missing. Get rid of that copy of the group file and figure out what command has not been made acessible to this user.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Fri, 30 Sep 2005 08:15:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-chroot-setup/m-p/3639028#M238908</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-09-30T08:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: SSH chroot setup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-chroot-setup/m-p/3639029#M238909</link>
      <description>I think that is the what it is set to do .&lt;BR /&gt;&lt;BR /&gt;In my server for a user same &lt;BR /&gt;&lt;BR /&gt;drwxr-xr-x  11 root       3             1024 Sep 30 09:20 .&lt;BR /&gt;drwxr-xr-x  11 root       3             1024 Sep 30 09:20 ..&lt;BR /&gt;drwxr-xr-x   2 root       3               96 Sep 30 09:20 bin&lt;BR /&gt;drwxr-xr-x   3 root       3               96 Sep 30 09:21 dev&lt;BR /&gt;drwxr-xr-x   2 root       3               96 Sep 30 09:20 etc&lt;BR /&gt;drwxr-xr-x   3 root       3               96 Sep 30 09:20 home&lt;BR /&gt;drwxr-xr-x   3 root       3               96 Sep 30 09:20 opt&lt;BR /&gt;drwxr-xr-x   2 root       3               96 Sep 30 09:20 sbin&lt;BR /&gt;drw-rw-rw-   2 root       3               96 Sep 30 09:20 tmp&lt;BR /&gt;drwxr-xr-x   4 root       3               96 Sep 30 09:20 usr&lt;BR /&gt;drwxr-xr-x   3 root       3               96 Sep 30 09:20 var&lt;BR /&gt;$&lt;BR /&gt;&lt;BR /&gt;and access is restricted as it is supposed to do .&lt;BR /&gt;&lt;BR /&gt;thx,&lt;BR /&gt;bl.</description>
      <pubDate>Fri, 30 Sep 2005 08:28:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-chroot-setup/m-p/3639029#M238909</guid>
      <dc:creator>baiju_3</dc:creator>
      <dc:date>2005-09-30T08:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: SSH chroot setup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-chroot-setup/m-p/3639030#M238910</link>
      <description>Hi Steven,&lt;BR /&gt;&lt;BR /&gt;Now the problem is that no matter I login as "transfr" via SFTP or SSH, when I "ls" the directory, it couldn't show the "group name", but showed the "group ID" instead, I thought it needed "/etc/group" to do the translation ( there is /newroot/etc/passwd, that's why the UID can be translated to User name, right? )&lt;BR /&gt;The script I ran (/opt/ssh/ssh_chroot_setup.sh) is the official script provided by HP in their latest SSH (v4.0), it was supposed to copy all necessary files to "/newroot", but it seemed it didn't...&lt;BR /&gt;What command do you think it's missing?&lt;BR /&gt;Thanks!</description>
      <pubDate>Fri, 30 Sep 2005 08:32:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-chroot-setup/m-p/3639030#M238910</guid>
      <dc:creator>yyghp</dc:creator>
      <dc:date>2005-09-30T08:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: SSH chroot setup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-chroot-setup/m-p/3639031#M238911</link>
      <description>Hi lalb,&lt;BR /&gt;&lt;BR /&gt;So, you think such problem is normal, right?&lt;BR /&gt;Any way to improve it?&lt;BR /&gt;Thanks!</description>
      <pubDate>Fri, 30 Sep 2005 08:35:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-chroot-setup/m-p/3639031#M238911</guid>
      <dc:creator>yyghp</dc:creator>
      <dc:date>2005-09-30T08:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: SSH chroot setup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-chroot-setup/m-p/3639032#M238912</link>
      <description>up!&lt;BR /&gt;Thanks!</description>
      <pubDate>Fri, 30 Sep 2005 13:12:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-chroot-setup/m-p/3639032#M238912</guid>
      <dc:creator>yyghp</dc:creator>
      <dc:date>2005-09-30T13:12:09Z</dc:date>
    </item>
  </channel>
</rss>

