Operating System - HP-UX
1846658 Members
3293 Online
110256 Solutions
New Discussion

Re: chroot and login problems

 
Ben Kratz
New Member

chroot and login problems

Hi,
I'm try to setup a chroot environment
on a hpux 10.20. After setting up the
chroot environment, the following
problems occur:

At first, I tried to use the "*" field in the /etc/passwd to force a chroot from login. At first, I tried the chroot environment by replacing the login process through a simple shell skript. This works quite well. The chroot works successfully. My next step was to replace the shell skript throug the original binary. The original binary dies dies with this
error message:
'No utmp entry.You must exec "login" from the lowest level "sh".'

After trying this, I wrote a little C program to replace the login process in the new chroot. This process does the chroot and
sets the u*id's, g*id's and so on. This works fine.

I'm new on administrating hpux. My former tasks was sysop for Solaris.
Now I got some questions :
Got someone a example ls-lR for a complete
chroot environment ?

Or is this a known bug ?
( As far as I know, are there no patches
on this machine installed. )

Is there a tool like truss or strace
to trace the system calls of a binary ?

thanks in advance,
ben

1 REPLY 1
Rita C Workman
Honored Contributor

Re: chroot and login problems