<?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 Problem to configure CHROOT for Telnet in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-to-configure-chroot-for-telnet/m-p/3963507#M292016</link>
    <description>Hi, I need configure chroot in my hpux 11.00 server.  &lt;BR /&gt;  &lt;BR /&gt;I read some posts in ITRC but I can't find a post to help me. A lot of posts have tricks to do chroot with FTP, but I need this configuration for telnet.  &lt;BR /&gt;  &lt;BR /&gt;I have an user "desenv". I want to make login with "desenv" and have the "/desenv" directory as the root "/" for this user.  &lt;BR /&gt;  &lt;BR /&gt;I can't found anything to help. Please, if someone can help me, I'll appreciate.&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
    <pubDate>Fri, 16 Mar 2007 09:12:12 GMT</pubDate>
    <dc:creator>Wilder Mellotto</dc:creator>
    <dc:date>2007-03-16T09:12:12Z</dc:date>
    <item>
      <title>Problem to configure CHROOT for Telnet</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-to-configure-chroot-for-telnet/m-p/3963507#M292016</link>
      <description>Hi, I need configure chroot in my hpux 11.00 server.  &lt;BR /&gt;  &lt;BR /&gt;I read some posts in ITRC but I can't find a post to help me. A lot of posts have tricks to do chroot with FTP, but I need this configuration for telnet.  &lt;BR /&gt;  &lt;BR /&gt;I have an user "desenv". I want to make login with "desenv" and have the "/desenv" directory as the root "/" for this user.  &lt;BR /&gt;  &lt;BR /&gt;I can't found anything to help. Please, if someone can help me, I'll appreciate.&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Fri, 16 Mar 2007 09:12:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-to-configure-chroot-for-telnet/m-p/3963507#M292016</guid>
      <dc:creator>Wilder Mellotto</dc:creator>
      <dc:date>2007-03-16T09:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem to configure CHROOT for Telnet</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-to-configure-chroot-for-telnet/m-p/3963508#M292017</link>
      <description>Hi,&lt;BR /&gt;you may have missed this one:&lt;BR /&gt;"Limiting where telnet users can go"&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=26166" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=26166&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Please also read:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/helptips.do?#33" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/helptips.do?#33&lt;/A&gt; on how to reward any useful answers given to your questions.</description>
      <pubDate>Fri, 16 Mar 2007 09:15:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-to-configure-chroot-for-telnet/m-p/3963508#M292017</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2007-03-16T09:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problem to configure CHROOT for Telnet</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-to-configure-chroot-for-telnet/m-p/3963509#M292018</link>
      <description>My first thought would be to make sure that the user has all the things he/she would need under the home directory, ie, /bin/sh, /bin/anything else. I cannot tell you all that you will have to put in the chroot directory. Then I would add a line in /etc/profile that tests for the username desenv and chroot's to the directory /desenv. That's just a thought; I don't know if it will work that easily.</description>
      <pubDate>Fri, 16 Mar 2007 09:24:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-to-configure-chroot-for-telnet/m-p/3963509#M292018</guid>
      <dc:creator>Court Campbell</dc:creator>
      <dc:date>2007-03-16T09:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problem to configure CHROOT for Telnet</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-to-configure-chroot-for-telnet/m-p/3963510#M292019</link>
      <description>Thanks for the quick reply, but I already read that post Peter, and I don't know how to do this. I realy don't make any ideas how chroot works, what command I need (sintax).&lt;BR /&gt;&lt;BR /&gt;In fact I need a step-by-step.&lt;BR /&gt;&lt;BR /&gt;My /etc/passwd:&lt;BR /&gt;desenv:DOGo6ivCKOzNY:101:20::/desenv/./:/sbin/sh&lt;BR /&gt;&lt;BR /&gt;/desenv/.profile (this is the file, but I don't know what I need edit here)&lt;BR /&gt;&lt;BR /&gt;chroot /desenv /&lt;BR /&gt;&lt;BR /&gt;I realy need help, I am tottaly lost.</description>
      <pubDate>Fri, 16 Mar 2007 09:31:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-to-configure-chroot-for-telnet/m-p/3963510#M292019</guid>
      <dc:creator>Wilder Mellotto</dc:creator>
      <dc:date>2007-03-16T09:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problem to configure CHROOT for Telnet</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-to-configure-chroot-for-telnet/m-p/3963511#M292020</link>
      <description>first &lt;BR /&gt;&lt;BR /&gt;mkdir -p /desenv/bin&lt;BR /&gt;cp /bin/sh /desenv/bin&lt;BR /&gt;&lt;BR /&gt;copy whatever else the user would need under desenv. You have to realize that / now starts  from /desenv. If you do not have a shell, etc, copied under /desenv the user is not going to be able to do anything. &lt;BR /&gt;&lt;BR /&gt;Then you could try this in /etc/profile:&lt;BR /&gt;&lt;BR /&gt;if [ "$LOGNAME" = desenv ]&lt;BR /&gt;    then&lt;BR /&gt;    chroot /desenv&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Mar 2007 09:40:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-to-configure-chroot-for-telnet/m-p/3963511#M292020</guid>
      <dc:creator>Court Campbell</dc:creator>
      <dc:date>2007-03-16T09:40:44Z</dc:date>
    </item>
  </channel>
</rss>

