<?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: chroot returns Not Owner error in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/chroot-returns-not-owner-error/m-p/2494410#M19964</link>
    <description>I agree with Daren, a restricted shell is the only way to lock them down.  As far as I know, you can not use the chroot.  However, you can lock the user down pretty good with the rsh or rksh.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;...jcd...</description>
    <pubDate>Wed, 21 Feb 2001 14:54:55 GMT</pubDate>
    <dc:creator>Joseph C. Denman</dc:creator>
    <dc:date>2001-02-21T14:54:55Z</dc:date>
    <item>
      <title>chroot returns Not Owner error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/chroot-returns-not-owner-error/m-p/2494400#M19954</link>
      <description>I'm trying to restrict a user to his home directory using chroot but I'm not having any luck.&lt;BR /&gt;&lt;BR /&gt;I created a user chris in /home/chris, in his directory, created the etc, usr/bin, usr/lib subdirectories and copied the files&lt;BR /&gt;/etc/passwd&lt;BR /&gt;/etc/group&lt;BR /&gt;/usr/bin/ls&lt;BR /&gt;/usr/bin/sh&lt;BR /&gt;/usr/lib/dld.sl&lt;BR /&gt;/usr/lib/libdld.1&lt;BR /&gt;into chris home directories respectively.&lt;BR /&gt;In his .profile, I have the entry&lt;BR /&gt;/usr/sbin/chroot /home/chris /usr/bin/sh&lt;BR /&gt;&lt;BR /&gt;When I tried to login as him I got&lt;BR /&gt;/home/chris: NOT OWNER&lt;BR /&gt;&lt;BR /&gt;I have not put any security measures so what could be the reason of this problem.&lt;BR /&gt;&lt;BR /&gt;The / directory has:&lt;BR /&gt;drwxr-xr-x   4 root       root          1024 Feb 15 12:24 home&lt;BR /&gt;&lt;BR /&gt;The /home directory contains:&lt;BR /&gt;drwxr-xr-x   4 chris      users         1024 Feb 15 12:25 chris&lt;BR /&gt;&lt;BR /&gt;The /home/chris contains:&lt;BR /&gt;drwxrwxrwx   2 chris      users         1024 Feb 15 12:32 etc&lt;BR /&gt;drwxrwxrwx   4 chris      users         1024 Feb 15 12:30 usr&lt;BR /&gt;&lt;BR /&gt;Any help is always appreciated.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;</description>
      <pubDate>Thu, 15 Feb 2001 20:51:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/chroot-returns-not-owner-error/m-p/2494400#M19954</guid>
      <dc:creator>Nelson Guevarra</dc:creator>
      <dc:date>2001-02-15T20:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: chroot returns Not Owner error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/chroot-returns-not-owner-error/m-p/2494401#M19955</link>
      <description>Are there any hidden files or directorys in /home/chris which belong to another user?&lt;BR /&gt;&lt;BR /&gt;Something like .dt or .profile?&lt;BR /&gt;&lt;BR /&gt;Is this on a local or on a NFS filesystem?</description>
      <pubDate>Fri, 16 Feb 2001 07:48:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/chroot-returns-not-owner-error/m-p/2494401#M19955</guid>
      <dc:creator>Stefan Schulz</dc:creator>
      <dc:date>2001-02-16T07:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: chroot returns Not Owner error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/chroot-returns-not-owner-error/m-p/2494402#M19956</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You are missing out the following files in your usr/lib directory:&lt;BR /&gt;- libc.2&lt;BR /&gt;- libcurses.1  &lt;BR /&gt;- libdld.2&lt;BR /&gt;&lt;BR /&gt;Perform the command using root (which has the privilege to run the process):&lt;BR /&gt;# chroot /home/chris /usr/bin/sh&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong&lt;BR /&gt;Brainbench MVP for Unix Admin&lt;BR /&gt;&lt;A href="http://www.brainbench.com" target="_blank"&gt;http://www.brainbench.com&lt;/A&gt;</description>
      <pubDate>Fri, 16 Feb 2001 08:18:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/chroot-returns-not-owner-error/m-p/2494402#M19956</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2001-02-16T08:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: chroot returns Not Owner error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/chroot-returns-not-owner-error/m-p/2494403#M19957</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I'm using HPUX 10.20.  The ls -la in /home/chris returns:&lt;BR /&gt;&lt;BR /&gt;drwxr-xr-x   4 chris      users         1024 Feb 15 12:25 .&lt;BR /&gt;drwxrwxrwx   4 root       root          1024 Feb 15 12:24 ..&lt;BR /&gt;-rw-r--r--   1 chris      users          814 Feb 15 12:24 .cshrc&lt;BR /&gt;-rw-r--r--   1 chris      users          347 Feb 15 12:24 .exrc&lt;BR /&gt;-rw-r--r--   1 chris      users          341 Feb 15 12:24 .login&lt;BR /&gt;-rw-r--r--   1 chris      users          446 Feb 15 12:24 .profile&lt;BR /&gt;-rw-------   1 chris      users          776 Feb 16 09:37 .sh_history&lt;BR /&gt;drwxrwxrwx   2 chris      users         1024 Feb 15 12:32 etc&lt;BR /&gt;drwxrwxrwx   4 chris      users         1024 Feb 15 12:30 usr&lt;BR /&gt;&lt;BR /&gt;The chroot works if executed by root. This will only affect the root login. How will I make it work so when chris login so that he will be chrooted to his home directory only?&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Feb 2001 17:39:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/chroot-returns-not-owner-error/m-p/2494403#M19957</guid>
      <dc:creator>Nelson Guevarra</dc:creator>
      <dc:date>2001-02-16T17:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: chroot returns Not Owner error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/chroot-returns-not-owner-error/m-p/2494404#M19958</link>
      <description>Stefan, This is in a local file system....</description>
      <pubDate>Fri, 16 Feb 2001 17:46:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/chroot-returns-not-owner-error/m-p/2494404#M19958</guid>
      <dc:creator>Nelson Guevarra</dc:creator>
      <dc:date>2001-02-16T17:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: chroot returns Not Owner error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/chroot-returns-not-owner-error/m-p/2494405#M19959</link>
      <description>As this message is "Not owner" it has to do something with an existing file. Althoug i think you should have a second look on the needed libraries this seems to be a different problem.&lt;BR /&gt;&lt;BR /&gt;Have you configured to use something like command history? &lt;BR /&gt;&lt;BR /&gt;I don't think you need to be root to use chroot. But i would test the following:&lt;BR /&gt;&lt;BR /&gt;remove the chroot from the .profile, login as chris and try to start a new shell with chroot ....&lt;BR /&gt;&lt;BR /&gt;Let us know what the result is.&lt;BR /&gt;&lt;BR /&gt;Regards Stefan</description>
      <pubDate>Mon, 19 Feb 2001 10:29:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/chroot-returns-not-owner-error/m-p/2494405#M19959</guid>
      <dc:creator>Stefan Schulz</dc:creator>
      <dc:date>2001-02-19T10:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: chroot returns Not Owner error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/chroot-returns-not-owner-error/m-p/2494406#M19960</link>
      <description>From man 1M chroot:                                                                                                                                    &lt;BR /&gt; WARNINGS                                                                                                                           &lt;BR /&gt;      command cannot be in a shell script.                                                                                          &lt;BR /&gt;                                                    &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 19 Feb 2001 15:29:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/chroot-returns-not-owner-error/m-p/2494406#M19960</guid>
      <dc:creator>Carlos Fernandez Riera</dc:creator>
      <dc:date>2001-02-19T15:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: chroot returns Not Owner error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/chroot-returns-not-owner-error/m-p/2494407#M19961</link>
      <description>I removed the chroot from the .profile and execute it from the shell after I login as chris. I got the same error.  Same error is experienced even after invoking another shell.&lt;BR /&gt;&lt;BR /&gt;Let me know if you have any other idea on how to restrict a user to be confined in his own home directory aside from chroot.&lt;BR /&gt;&lt;BR /&gt;I tried it on another HPUX machine and have the same problem.  I might be using chroot incorrectly.&lt;BR /&gt;&lt;BR /&gt;Carlos: I'm using /usr/bin/sh (not a shell script) as my command for chroot.&lt;BR /&gt;i.e.  /usr/sbin/chroot  /home/chris  /usr/bin/sh</description>
      <pubDate>Wed, 21 Feb 2001 00:33:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/chroot-returns-not-owner-error/m-p/2494407#M19961</guid>
      <dc:creator>Nelson Guevarra</dc:creator>
      <dc:date>2001-02-21T00:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: chroot returns Not Owner error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/chroot-returns-not-owner-error/m-p/2494408#M19962</link>
      <description>Hello Nelson,&lt;BR /&gt;&lt;BR /&gt;sorry i didn't find it til now, but the answer is in the man page. man 1M chroot says:&lt;BR /&gt;&lt;BR /&gt;"This command is restricted to users with appropriate privileges."&lt;BR /&gt;&lt;BR /&gt;So you have to use something like sudo or stickybits to use this command as a normal user.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regards Stefan</description>
      <pubDate>Wed, 21 Feb 2001 06:52:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/chroot-returns-not-owner-error/m-p/2494408#M19962</guid>
      <dc:creator>Stefan Schulz</dc:creator>
      <dc:date>2001-02-21T06:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: chroot returns Not Owner error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/chroot-returns-not-owner-error/m-p/2494409#M19963</link>
      <description>Why not try using a resticted shell (rsh) for the user, make links of the binaries you allow him to run in /usr/rbin and set his path to his home directoty and /usr/rbin.&lt;BR /&gt;&lt;BR /&gt;There are a few holes in this method (shelling out from vi, etc.), but you can lock it down pretty tight if you give him only the binaries he needs in /usr/rbin.&lt;BR /&gt;&lt;BR /&gt;Daren</description>
      <pubDate>Wed, 21 Feb 2001 08:36:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/chroot-returns-not-owner-error/m-p/2494409#M19963</guid>
      <dc:creator>Daren Jackson</dc:creator>
      <dc:date>2001-02-21T08:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: chroot returns Not Owner error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/chroot-returns-not-owner-error/m-p/2494410#M19964</link>
      <description>I agree with Daren, a restricted shell is the only way to lock them down.  As far as I know, you can not use the chroot.  However, you can lock the user down pretty good with the rsh or rksh.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;...jcd...</description>
      <pubDate>Wed, 21 Feb 2001 14:54:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/chroot-returns-not-owner-error/m-p/2494410#M19964</guid>
      <dc:creator>Joseph C. Denman</dc:creator>
      <dc:date>2001-02-21T14:54:55Z</dc:date>
    </item>
  </channel>
</rss>

