chroot and su not playing nicely
- From: Dave Hammond <dh1760@xxxxxxxxx>
- Date: Tue, 30 Oct 2007 17:32:25 -0000
SUSE LINUX Enterprise Server 9 (x86_64)
VERSION = 9
PATCHLEVEL = 3
I've set up a chrooted environment, as explained by one of the myriad
chroot how-to docs, including all libs required for 'su' to be run
(according to ldd), but chroot fails:
# sudo /usr/bin/chroot /home/chroot /bin/su - testuser
/usr/bin/chroot: cannot run command `/bin/su': No such file or
directory
Under home/chroot the following tree exists (amongst other unrelated
files and directories):
bin:
total 2706
drwxr-xr-x 2 root 336 Oct 29 17:36 ./
drwx--x--x 8 upload 272 Oct 29 17:36 ../
-rwxr-xr-x 1 root 534104 Oct 29 16:35 bash*
-rwxr-xr-x 1 root 534104 Oct 29 16:35 sh*
-rwsr-xr-x 1 root 30064 Jun 30 2004 su*
dev:
total 0
drwxr-xr-x 2 root 120 Oct 30 13:19 ./
drwx--x--x 8 upload 272 Oct 29 17:36 ../
crw-rw-rw- 1 root 1, 3 Oct 29 16:27 null
crw-rw-rw- 1 root 5, 0 Oct 30 13:19 tty
crw-rw-rw- 1 root 1, 5 Oct 29 16:27 zero
etc:
total 41
drwxr-xr-x 4 root 368 Oct 30 13:15 ./
drwx--x--x 8 upload 272 Oct 29 17:36 ../
-rw-r--r-- 1 root 33 Oct 29 16:45 group
-rw-r--r-- 1 root 4558 Oct 29 16:43 login.defs
drwxr-xr-x 2 root 512 Oct 29 16:41 pam.d/
-rw-r--r-- 1 root 105 Oct 29 16:57 passwd
drwxr-xr-x 2 root 336 Oct 29 16:41 security/
-rw-r----- 1 root 77 Oct 29 16:46 shadow
lib64:
total 2646
drwxr-xr-x 3 root 584 Oct 30 13:16 ./
drwx--x--x 8 upload 272 Oct 29 17:36 ../
-rw-r--r-- 1 root 40412 Oct 29 16:35 libacl.so.1
-rw-r--r-- 1 root 19250 Oct 29 16:35 libattr.so.1
-rwxr-xr-x 1 root 1424617 Dec 11 2005 libc.so.6*
-rwxr-xr-x 1 root 11718 Oct 29 16:35 libcom_err.so.2*
-rwxr-xr-x 1 root 48121 Oct 29 16:35 libcrypt.so.1*
-rwxr-xr-x 1 root 15959 Oct 29 16:35 libdl.so.2*
-rwxr-xr-x 1 root 29464 Oct 29 16:35 libhistory.so.4*
-rwxr-xr-x 1 root 442953 Oct 29 16:35 libncurses.so.5*
-rwxr-xr-x 1 root 97929 Oct 29 16:35 libnsl.so.1*
-rwxr-xr-x 1 root 38307 Jun 30 2004 libpam.so.0*
-rwxr-xr-x 1 root 14568 Jun 30 2004 libpam_misc.so.0*
-rwxr-xr-x 1 root 230424 Oct 29 16:35 libreadline.so.4*
-rwxr-xr-x 1 root 85276 Oct 29 16:35 libresolv.so.2*
-rwxr-xr-x 1 root 80604 Oct 29 16:35 libselinux.so.1*
-rwxr-xr-x 1 root 15128 Oct 29 16:35 libutil.so.1*
-rwxr-xr-x 1 root 86525 Oct 29 16:35 libz.so.1*
drwxr-xr-x 2 root 144 Oct 29 16:34 tls/
According to ldd, I've got all the libs necessary for 'su' to run, and
assuming the chroot succeeded, the file /bin/su exists. Given all
this, I'm unable to determine what I'm missing. Any explanations,
pointers, etc, would be appreciated.
Thanks,
-Dave H.
.
- Prev by Date: Re: HP Photosmart not found
- Next by Date: Re: Can't update gimp from 2.2 to 2.4
- Previous by thread: 10.3 system does not shut down
- Next by thread: source code from a referred link on linuxrc
- Index(es):
Relevant Pages
|