Re: /bin/su wont work inside a chroot?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



At Sun, 01 Aug 2010 12:29:47 -0400 CentOS mailing list <centos@xxxxxxxxxx> wrote:

> 
> 
> On Sun, 2010-08-01 at 16:20 +0000, Dave Miller wrote:
> > Jason Pyeron <jpyeron@...> writes:
> > 
> > > 
> > > On centos 4 (i386 chroot on an x86_64) it just prompts me for a password.
> > > 
> > > Any suggesstion on where to start looking?
> > > 
> > > --
> > > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> > > -                                                               -
> > > - Jason Pyeron                      PD Inc. http://www.pdinc.us -
> > > - Principal Consultant              10 West 24th Street #100    -
> > > - +1 (443) 269-1555 x333            Baltimore, Maryland 21218   -
> > > -                                                               -
> > > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> > > This message is copyright PD Inc, subject to license 20080407P00.
> > > 
> > 
> > Just as a guess, you need to have an appropriate sudoers file in the correct
> > location relative to the chrooted root.  Pulling some information from one of
> > your follow up posts, that would be:
> > 
> > /var/mnt/192.168.1.52/etc/sudoers
> > 
> > Once you chroot, programs look for files in their normal locations but relative
> > to whatever the new root is.
> > 
> > Cheers,
> > Dave
> ---
> Or be dirty and symlink it out to the main root /etc/sudoers...of which
> may create your security problem in present.....tense

Symlink won't work.  A hard link will work, but that only works if the
chroot and the main root are on the same physical file system.

> 
> John
> 
> _______________________________________________
> CentOS mailing list
> CentOS@xxxxxxxxxx
> http://lists.centos.org/mailman/listinfo/centos
> 
>                                                                                                                           

-- 
Robert Heller             -- 978-544-6933
Deepwoods Software        -- Download the Model Railroad System
http://www.deepsoft.com/  -- Binaries for Linux and MS-Windows
heller@xxxxxxxxxxxx       -- http://www.deepsoft.com/ModelRailroadSystem/
                                                                                 
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux