Slashdot is powered by your submissions, so send in your scoop

 



Forgot your password?
typodupeerror
×
User Journal

Journal bilgebag's Journal: Accessing existing files in a chroot jail

Cut and pasted from LWN:

  how can you have an app that runs in the chroot jail access files that are in more normal locations?

    Debian on AMD64
(Posted Dec 2, 2004 9:16 UTC (Thu) by subscriber gevaerts) (Post reply)

mount /etc/passwd /chroot/etc/passwd -o bind
mount /etc/shadow /chroot/etc/shadow -o bind
mount /etc/group /chroot/etc/group -o bind
mount /home /chroot/home -o bind

should do the trick. Of course, using ldap authentication the first three are not needed.

This discussion has been archived. No new comments can be posted.

Accessing existing files in a chroot jail

Comments Filter:

With your bare hands?!?

Working...