<?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: sshd and chroot in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sshd-and-chroot/m-p/5176324#M459063</link>
    <description>Hello,&lt;BR /&gt;&lt;BR /&gt;theese permission are set by the script:&lt;BR /&gt;&lt;BR /&gt;# ll -a /newroot/home/&lt;BR /&gt;total 16&lt;BR /&gt;drwxr-xr-x   3 root       root            96 May 20 10:32 .&lt;BR /&gt;drwxr-xr-x  10 root       root          8192 May 20 10:32 ..&lt;BR /&gt;drwxr-xr-x   2 test03     users           96 May 20 10:32 test03&lt;BR /&gt;&lt;BR /&gt;I do not change anything.&lt;BR /&gt;&lt;BR /&gt;Ralph&lt;BR /&gt;</description>
    <pubDate>Wed, 20 May 2009 08:33:58 GMT</pubDate>
    <dc:creator>Ralph Weimann</dc:creator>
    <dc:date>2009-05-20T08:33:58Z</dc:date>
    <item>
      <title>sshd and chroot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sshd-and-chroot/m-p/5176321#M459060</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;i try to get chroot with HP-UX sec shell 05.10 to work.&lt;BR /&gt;I use the script ssh_chroot_setup.sh.&lt;BR /&gt;When i try to connect, i am still in "normal" userhome.&lt;BR /&gt;&lt;BR /&gt;So i make changes in sshd_config:&lt;BR /&gt;&lt;BR /&gt;Match User test03&lt;BR /&gt;        ChrootDirectory /newroot/home/test03&lt;BR /&gt;&lt;BR /&gt;like discripe here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1262739" target="_blank"&gt;http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1262739&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;But now, i can not connect:&lt;BR /&gt;&lt;BR /&gt;Connection to "IP address" closed by remote host.&lt;BR /&gt;Couldn't read packet: Connection reset by peer&lt;BR /&gt;&lt;BR /&gt;Syslog:&lt;BR /&gt;&lt;BR /&gt;fatal: bad ownership or modes for chroot directory&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;who can help?&lt;BR /&gt;&lt;BR /&gt;Ralph</description>
      <pubDate>Wed, 20 May 2009 07:55:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sshd-and-chroot/m-p/5176321#M459060</guid>
      <dc:creator>Ralph Weimann</dc:creator>
      <dc:date>2009-05-20T07:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: sshd and chroot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sshd-and-chroot/m-p/5176322#M459061</link>
      <description>hi&lt;BR /&gt;&lt;BR /&gt;user's home directories must be owned by root:root and its mode should be 755&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;Kamal</description>
      <pubDate>Wed, 20 May 2009 08:00:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sshd-and-chroot/m-p/5176322#M459061</guid>
      <dc:creator>kemo</dc:creator>
      <dc:date>2009-05-20T08:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: sshd and chroot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sshd-and-chroot/m-p/5176323#M459062</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;This message is spot on accurate.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;fatal: bad ownership or modes for chroot directory&lt;BR /&gt;&lt;BR /&gt;The most common problem I had when chrooting any ssh installation was the ownership and permissions were wrong.&lt;BR /&gt;&lt;BR /&gt;Please post the ownership of the users home directory.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 20 May 2009 08:10:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sshd-and-chroot/m-p/5176323#M459062</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2009-05-20T08:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: sshd and chroot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sshd-and-chroot/m-p/5176324#M459063</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;theese permission are set by the script:&lt;BR /&gt;&lt;BR /&gt;# ll -a /newroot/home/&lt;BR /&gt;total 16&lt;BR /&gt;drwxr-xr-x   3 root       root            96 May 20 10:32 .&lt;BR /&gt;drwxr-xr-x  10 root       root          8192 May 20 10:32 ..&lt;BR /&gt;drwxr-xr-x   2 test03     users           96 May 20 10:32 test03&lt;BR /&gt;&lt;BR /&gt;I do not change anything.&lt;BR /&gt;&lt;BR /&gt;Ralph&lt;BR /&gt;</description>
      <pubDate>Wed, 20 May 2009 08:33:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sshd-and-chroot/m-p/5176324#M459063</guid>
      <dc:creator>Ralph Weimann</dc:creator>
      <dc:date>2009-05-20T08:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: sshd and chroot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sshd-and-chroot/m-p/5176325#M459064</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;i change permissions to root:root.&lt;BR /&gt;Now i get with sftp :Request for subsystem 'sftp' failed on channel 0&lt;BR /&gt;&lt;BR /&gt;i check libs with #ldd /opt/ssh/libexec/sftp-server (see /opt/ssh/README.hp)&lt;BR /&gt;-- &amp;gt; Looks good!&lt;BR /&gt;&lt;BR /&gt;With ssh i get /bin/sh no such file...&lt;BR /&gt;but there is a /newroot/bin/sh&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Ralph</description>
      <pubDate>Wed, 20 May 2009 08:59:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sshd-and-chroot/m-p/5176325#M459064</guid>
      <dc:creator>Ralph Weimann</dc:creator>
      <dc:date>2009-05-20T08:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: sshd and chroot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sshd-and-chroot/m-p/5176326#M459065</link>
      <description>hello Ralph&lt;BR /&gt;&lt;BR /&gt;i think you are using a new version of openssh which doesn't require to create mini-operating system as your script did. &lt;BR /&gt;that means. just create an empty home directory for your user&lt;BR /&gt;&lt;BR /&gt;for example&lt;BR /&gt;&lt;BR /&gt;useradd -d test test&lt;BR /&gt;mkdir /home/test&lt;BR /&gt;chown root:root /home/test&lt;BR /&gt;chmod 766 /home/test&lt;BR /&gt;&lt;BR /&gt;then edit sshd_config with &lt;BR /&gt;&lt;BR /&gt;Match User test&lt;BR /&gt;ChrootDirectory /home/test&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;check also if these options are available with your ssh version&lt;BR /&gt;&lt;BR /&gt;Match User test&lt;BR /&gt;         AllowTcpForwarding no&lt;BR /&gt;         ForceCommand internal-sftp&lt;BR /&gt;ChrootDirectory /home/test&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Note: for more than one user e.g test,test1,test2 use the following&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Match User test,test1,test2&lt;BR /&gt;         AllowTcpForwarding no&lt;BR /&gt;         ForceCommand internal-sftp&lt;BR /&gt;ChrootDirectory /home/%u&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;where %u is taking the list of users u specified in Match User directive.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;thanks :)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 20 May 2009 11:22:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sshd-and-chroot/m-p/5176326#M459065</guid>
      <dc:creator>kemo</dc:creator>
      <dc:date>2009-05-20T11:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: sshd and chroot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sshd-and-chroot/m-p/5176327#M459066</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;if i try it like this i get /sbin/sh not such file...&lt;BR /&gt;So i think i need a mini system, like discriped in /opt/ssh/README.hp.&lt;BR /&gt;&lt;BR /&gt;Are you sure with chmod 766, only 755 works for me?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Ralph</description>
      <pubDate>Wed, 20 May 2009 11:46:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sshd-and-chroot/m-p/5176327#M459066</guid>
      <dc:creator>Ralph Weimann</dc:creator>
      <dc:date>2009-05-20T11:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: sshd and chroot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sshd-and-chroot/m-p/5176328#M459067</link>
      <description>sorry, my fault &lt;BR /&gt;permission should be 755&lt;BR /&gt;</description>
      <pubDate>Thu, 21 May 2009 04:18:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sshd-and-chroot/m-p/5176328#M459067</guid>
      <dc:creator>kemo</dc:creator>
      <dc:date>2009-05-21T04:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: sshd and chroot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sshd-and-chroot/m-p/5176329#M459068</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;now it works...&lt;BR /&gt;I use the script ssh_chroot_setup.sh.&lt;BR /&gt;I make changes in sshd_config:&lt;BR /&gt;&lt;BR /&gt;Match User test03&lt;BR /&gt;ChrootDirectory /newroot&lt;BR /&gt;&lt;BR /&gt;For ChrootDirectory i use the dir i choose for&lt;BR /&gt;my chroot environment, not a home dir!&lt;BR /&gt;&lt;BR /&gt;i am not using internal-sftp.&lt;BR /&gt;With that the connection closed after ls command!&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Ralph</description>
      <pubDate>Wed, 27 May 2009 14:36:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sshd-and-chroot/m-p/5176329#M459068</guid>
      <dc:creator>Ralph Weimann</dc:creator>
      <dc:date>2009-05-27T14:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: sshd and chroot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sshd-and-chroot/m-p/5176330#M459069</link>
      <description>Close...</description>
      <pubDate>Thu, 28 May 2009 06:36:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sshd-and-chroot/m-p/5176330#M459069</guid>
      <dc:creator>Ralph Weimann</dc:creator>
      <dc:date>2009-05-28T06:36:59Z</dc:date>
    </item>
  </channel>
</rss>

