<?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: SFTP chroot problem. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-chroot-problem/m-p/5527963#M478237</link>
    <description>&lt;P&gt;Have you configured sshd_config for&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for EX:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Subsystem sftp /usr/lib/openssh/sftp-server&lt;BR /&gt;&lt;BR /&gt;Subsystem sftp internal-sftp&lt;BR /&gt;Match group guests&lt;BR /&gt;ChrootDirectory /home/%u&lt;BR /&gt;X11Forwarding no&lt;BR /&gt;AllowTcpForwarding no&lt;BR /&gt;ForceCommand internal-sftp&lt;BR /&gt;Match&lt;/P&gt;</description>
    <pubDate>Fri, 03 Feb 2012 21:12:34 GMT</pubDate>
    <dc:creator>Uday_S_Ankolekar</dc:creator>
    <dc:date>2012-02-03T21:12:34Z</dc:date>
    <item>
      <title>SFTP chroot problem.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-chroot-problem/m-p/5526115#M478203</link>
      <description>&lt;P class="vspace"&gt;Hi,&lt;/P&gt;&lt;P class="vspace"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="vspace"&gt;I made a user1 on sftp&lt;/P&gt;&lt;P class="vspace"&gt;For example:--&lt;/P&gt;&lt;P class="vspace"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="vspace"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="vspace"&gt;02.Create a user called "user1" and setup password for that user&lt;/P&gt;&lt;P class="vspace"&gt;03. Make sure that user is able to login to the system using his password&lt;/P&gt;&lt;P class="vspace"&gt;04. Make the user to sftponly user by running the following command. Follow the instructions.&lt;/P&gt;&lt;PRE&gt;    # /opt/ssh/utils/ssh_chroot_setup.sh&lt;/PRE&gt;&lt;P&gt;05 . The&amp;nbsp;&amp;nbsp; /ftproot . directory was created on ? directory.&lt;BR /&gt;06. Copy /opt/ssh/utils/sftponly to /bin and /ftproot/bin directory&lt;/P&gt;&lt;PRE&gt;    # cp /opt/ssh/utils/sftponly
    # cp /opt/ssh/utils/sftponly /ftproot/bin/sftponly&lt;/PRE&gt;&lt;P class="vspace"&gt;07. Add /bin/sftponly entry to /etc/shells file&lt;/P&gt;&lt;PRE&gt;    # echo "/bin/sftponly" &amp;gt;&amp;gt; /etc/shells&lt;/PRE&gt;&lt;P class="vspace"&gt;08. Modify the user1's home directory and shell in /etc/password as follows.&lt;/P&gt;&lt;PRE&gt;    user1:x:1000:1000:chrooted user:/ftproot/./home/user1:/bin/sftponly  &lt;/PRE&gt;&lt;P class="vspace"&gt;09. Make sure the user1 home directory is created if not already created&lt;/P&gt;&lt;PRE&gt;    # mkdir -p /ftproot/home/user1
    # chown user1 ftproot/home/user1&lt;/PRE&gt;&lt;P class="vspace"&gt;09. Now, the user is jailed within /ftproot directory. Also, user1 can not login to the system using ssh since his shell is set as /bin/sftponly.&lt;/P&gt;&lt;P class="vspace"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="vspace"&gt;I made a user But its still change a directory and see the other directory.&lt;/P&gt;&lt;P class="vspace"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="vspace"&gt;How can chroot apply and user1&amp;nbsp;see its only its contents or filesystem.&lt;/P&gt;&lt;P class="vspace"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="vspace"&gt;Please see it.&lt;/P&gt;&lt;P class="vspace"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="vspace"&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P class="vspace"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="vspace"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2012 08:23:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sftp-chroot-problem/m-p/5526115#M478203</guid>
      <dc:creator>aamir4u</dc:creator>
      <dc:date>2012-02-02T08:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP chroot problem.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-chroot-problem/m-p/5527963#M478237</link>
      <description>&lt;P&gt;Have you configured sshd_config for&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for EX:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Subsystem sftp /usr/lib/openssh/sftp-server&lt;BR /&gt;&lt;BR /&gt;Subsystem sftp internal-sftp&lt;BR /&gt;Match group guests&lt;BR /&gt;ChrootDirectory /home/%u&lt;BR /&gt;X11Forwarding no&lt;BR /&gt;AllowTcpForwarding no&lt;BR /&gt;ForceCommand internal-sftp&lt;BR /&gt;Match&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2012 21:12:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sftp-chroot-problem/m-p/5527963#M478237</guid>
      <dc:creator>Uday_S_Ankolekar</dc:creator>
      <dc:date>2012-02-03T21:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP chroot problem.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-chroot-problem/m-p/5528307#M478240</link>
      <description>&lt;P&gt;Thanks for advice.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But i made changed configuration on sshd_config&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But still user see the othe file system on root .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 04 Feb 2012 12:36:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sftp-chroot-problem/m-p/5528307#M478240</guid>
      <dc:creator>aamir4u</dc:creator>
      <dc:date>2012-02-04T12:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP chroot problem.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-chroot-problem/m-p/5528313#M478241</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please see my sshd_config configuration.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;vi /opt/ssh/etc/sshd_config&lt;BR /&gt;"/opt/ssh/etc/sshd_config" [Read only] 182 lines, 4836 characters&lt;BR /&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $OpenBSD: sshd_config,v 1.73 2005/12/06 22:38:28 reyk Exp $&lt;/P&gt;&lt;P&gt;# This is the sshd server system-wide configuration file.&amp;nbsp; See&lt;BR /&gt;# sshd_config(5) for more information.&lt;/P&gt;&lt;P&gt;# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin:/opt/ssh/bin&lt;/P&gt;&lt;P&gt;# The strategy used for options in the default sshd_config shipped with&lt;BR /&gt;# OpenSSH is to specify options with their default value where&lt;BR /&gt;# possible, but leave them commented.&amp;nbsp; Uncommented options change a&lt;BR /&gt;# default value.&lt;/P&gt;&lt;P&gt;#Port 22&lt;BR /&gt;Protocol 2&lt;BR /&gt;#AddressFamily any&lt;BR /&gt;#ListenAddress 0.0.0.0&lt;BR /&gt;#ListenAddress ::&lt;/P&gt;&lt;P&gt;# HostKey for protocol version 1&lt;BR /&gt;#HostKey /opt/ssh/etc/ssh_host_key&lt;BR /&gt;# HostKeys for protocol version 2&lt;BR /&gt;#HostKey /opt/ssh/etc/ssh_host_rsa_key&lt;BR /&gt;#HostKey /opt/ssh/etc/ssh_host_dsa_key&lt;/P&gt;&lt;P&gt;# Lifetime and size of ephemeral version 1 server key&lt;BR /&gt;#KeyRegenerationInterval 1h&lt;BR /&gt;#ServerKeyBits 768&lt;/P&gt;&lt;P&gt;# Logging&lt;BR /&gt;# obsoletes QuietMode and FascistLogging&lt;BR /&gt;#SyslogFacility AUTH&lt;BR /&gt;#LogLevel INFO&lt;/P&gt;&lt;P&gt;# Authentication:&lt;/P&gt;&lt;P&gt;#LoginGraceTime 2m&lt;BR /&gt;#PermitRootLogin yes&lt;BR /&gt;#StrictModes yes&lt;BR /&gt;#MaxAuthTries 6&lt;BR /&gt;#CountKeyAuthBadLogins no&lt;/P&gt;&lt;P&gt;# Auth selection&lt;/P&gt;&lt;P&gt;#HostbasedAuthAllowUsers&lt;BR /&gt;#HostbasedAuthDenyUsers&lt;BR /&gt;#PubkeyAuthAllowUsers&lt;BR /&gt;#PubkeyAuthDenyUsers&lt;BR /&gt;#KerberosAuthAllowUsers&lt;BR /&gt;#KerberosAuthDenyUsers&lt;BR /&gt;#KerberosOrLocalPasswdAllowUsers&lt;BR /&gt;#KerberosOrLocalPasswdDenyUsers&lt;BR /&gt;#PasswordAuthAllowUsers&lt;BR /&gt;#PasswordAuthDenyUsers&lt;BR /&gt;#ChallRespAuthAllowUsers [pam] user1 user2 ...&lt;BR /&gt;#ChallRespAuthDenyUsers&amp;nbsp; [pam] user1 user2 ...&lt;BR /&gt;#ChallRespAuthAllowUsers [bsdauth] user1 user2 ...&lt;BR /&gt;#ChallRespAuthDenyUsers&amp;nbsp; [bsdauth] user1 user2 ...&lt;BR /&gt;#ChallRespAuthAllowUsers [skey] user1 user2 ...&lt;BR /&gt;#ChallRespAuthDenyUsers&amp;nbsp; [skey] user1 user2 ...&lt;BR /&gt;#ChallRespAuthAllowUsers [securid] user1 user2 ...&lt;BR /&gt;#ChallRespAuthDenyUsers&amp;nbsp; [securid] user1 user2 ...&lt;BR /&gt;#GSSAPIAuthAllowUsers&lt;BR /&gt;#GSSAPIAuthDenyUsers&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;#RSAAuthentication yes&lt;BR /&gt;#PubkeyAuthentication yes&lt;BR /&gt;#AuthorizedKeysFile&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .ssh/authorized_keys&lt;/P&gt;&lt;P&gt;# For this to work you will also need host keys in /opt/ssh/etc/ssh_known_hosts&lt;BR /&gt;#RhostsRSAAuthentication no&lt;BR /&gt;# similar for protocol version 2&lt;BR /&gt;#HostbasedAuthentication no&lt;BR /&gt;# Change to yes if you don't trust ~/.ssh/known_hosts for&lt;BR /&gt;# RhostsRSAAuthentication and HostbasedAuthentication&lt;BR /&gt;#IgnoreUserKnownHosts no&lt;BR /&gt;# Don't read the user's ~/.rhosts and ~/.shosts files&lt;BR /&gt;#IgnoreRhosts yes&lt;/P&gt;&lt;P&gt;# To disable tunneled clear text passwords, change to no here!&lt;BR /&gt;#PasswordAuthentication yes&lt;BR /&gt;#PermitEmptyPasswords no&lt;/P&gt;&lt;P&gt;# Change to no to disable s/key passwords&lt;BR /&gt;#ChallengeResponseAuthentication yes&lt;/P&gt;&lt;P&gt;# Kerberos options&lt;BR /&gt;KerberosAuthentication yes&lt;BR /&gt;#KerberosOrLocalPasswd yes&lt;BR /&gt;#KerberosTicketCleanup yes&lt;BR /&gt;#KerberosGetAFSToken no&lt;/P&gt;&lt;P&gt;# GSSAPI options&lt;BR /&gt;#GSSAPIAuthentication no&lt;BR /&gt;#GSSAPICleanupCredentials yes&lt;/P&gt;&lt;P&gt;# Set this to 'yes' to enable PAM authentication, account processing,&lt;BR /&gt;# and session processing. If this is enabled, PAM authentication will&lt;BR /&gt;# be allowed through the ChallengeResponseAuthentication mechanism.&lt;BR /&gt;# Depending on your PAM configuration, this may bypass the setting of&lt;BR /&gt;# PasswordAuthentication, PermitEmptyPasswords, and&lt;BR /&gt;# "PermitRootLogin without-password". If you just want the PAM account and&lt;BR /&gt;# session checks to run without PAM authentication, then enable this but set&lt;BR /&gt;# ChallengeResponseAuthentication=no&lt;BR /&gt;UsePAM yes&lt;/P&gt;&lt;P&gt;#AllowTcpForwarding yes&lt;BR /&gt;#AllowTcpForwarding no&lt;BR /&gt;#GatewayPorts no&lt;BR /&gt;#X11Forwarding yes&lt;BR /&gt;#X11Forwarding no&lt;BR /&gt;#X11DisplayOffset 10&lt;BR /&gt;X11UseLocalhost no&lt;BR /&gt;#PrintMotd yes&lt;BR /&gt;#PrintLastLog yes&lt;BR /&gt;#TCPKeepAlive yes&lt;BR /&gt;#UseLogin no&lt;BR /&gt;#EnforceSecureTTY no&lt;BR /&gt;#UsePrivilegeSeparation yes&lt;BR /&gt;#PermitUserEnvironment no&lt;BR /&gt;#Compression delayed&lt;BR /&gt;#ClientAliveInterval 0&lt;BR /&gt;#ClientAliveCountMax 3&lt;BR /&gt;#UseDNS yes&lt;BR /&gt;#PidFile /var/run/sshd.pid&lt;BR /&gt;#MaxStartups 10&lt;BR /&gt;#PermitTunnel no&lt;BR /&gt;#ChrootDirectory none&lt;BR /&gt;#ChrootDirectory /opt/anonftp&lt;BR /&gt;# no default banner path&lt;BR /&gt;#Banner none&lt;/P&gt;&lt;P&gt;#The following are HPN related configuration options&lt;BR /&gt;#tcp receive buffer polling. enable in autotuning kernels&lt;BR /&gt;#TcpRcvBufPoll no&lt;/P&gt;&lt;P&gt;# allow the use of the none cipher&lt;BR /&gt;#NoneEnabled no&lt;/P&gt;&lt;P&gt;# disable hpn performance boosts.&lt;BR /&gt;HPNDisabled yes&lt;/P&gt;&lt;P&gt;# buffer size for hpn to non-hn connections&lt;BR /&gt;#HPNBufferSize 2048&lt;/P&gt;&lt;P&gt;# override default of no subsystems&lt;BR /&gt;#Subsystem&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sftp&amp;nbsp;&amp;nbsp;&amp;nbsp; /opt/ssh/libexec/sftp-server&lt;BR /&gt;Subsystem&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sftp&amp;nbsp;&amp;nbsp;&amp;nbsp; internal-sftp&lt;/P&gt;&lt;P&gt;# sftp-server umask control&lt;BR /&gt;#SftpUmask&lt;/P&gt;&lt;P&gt;#SftpPermitChmod yes&lt;BR /&gt;#SftpPermitChown yes&lt;/P&gt;&lt;P&gt;# the following are HPN related configuration options&lt;BR /&gt;# tcp receive buffer polling. enable in autotuning kernels&lt;BR /&gt;#TcpRcvBufPoll no&lt;/P&gt;&lt;P&gt;# allow the use of the none cipher&lt;BR /&gt;#NoneEnabled no&lt;/P&gt;&lt;P&gt;# disable hpn performance boosts.&lt;BR /&gt;#HPNDisabled no&lt;/P&gt;&lt;P&gt;# buffer size for hpn to non-hn connections&lt;BR /&gt;#HPNBufferSize 2048&lt;/P&gt;&lt;P&gt;# Example of overriding settings on a per-user basis&lt;BR /&gt;#Match User anoncvs&lt;BR /&gt;Match User sftpuser&lt;BR /&gt;Match group guests&lt;BR /&gt;X11Forwarding no&lt;BR /&gt;#Subsystem sftp /usr/lib/openssh/sftp-server&lt;BR /&gt;#Subsystem sftp internal-sftp&lt;BR /&gt;AllowTcpForwarding no&lt;BR /&gt;#ForceCommand cvs server&lt;BR /&gt;ForceCommand internal-sftp&lt;BR /&gt;#ChrootDirectory /opt/anonftp&lt;BR /&gt;#ChrootDirectory /home/%u&lt;BR /&gt;ChrootDirectory /newroot/home/sftp1&lt;BR /&gt;Match&lt;BR /&gt;"/opt/ssh/etc/sshd_config" 182 lines, 4844 characters&lt;BR /&gt;uatdata1 /etc/rc.config.d#&lt;BR /&gt;uatdata1 /etc/rc.config.d#/sbin/init.d/secsh start&lt;BR /&gt;uatdata1 /etc/rc.config.d#&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And see my passwd configuration:-&lt;/P&gt;&lt;P&gt;sftp1:9MNRuoBMAVi26:110:20:chrooted user:/newroot/./home/sftp1:/bin/sftponly&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when i ftp 192.168.6.5&lt;/P&gt;&lt;P&gt;and run cd /&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;user still the content of server or filesysem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for future.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Feb 2012 12:53:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sftp-chroot-problem/m-p/5528313#M478241</guid>
      <dc:creator>aamir4u</dc:creator>
      <dc:date>2012-02-04T12:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP chroot problem.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-chroot-problem/m-p/5530035#M478262</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please see my trail messages and&lt;/P&gt;&lt;P&gt;you have any solution of my topic so,&lt;/P&gt;&lt;P&gt;please give me an example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2012 10:15:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sftp-chroot-problem/m-p/5530035#M478262</guid>
      <dc:creator>aamir4u</dc:creator>
      <dc:date>2012-02-06T10:15:24Z</dc:date>
    </item>
  </channel>
</rss>

