Monday 18 June 2012

chroot jail stuff

http://www.cyberciti.biz/tips/howto-linux-unix-rssh-chroot-jail-setup.html

https://help.ubuntu.com/community/BasicChroot

is shorter

sudo apt-get install dchroot debootstrap

sudo mkdir chroot

sudo vi /etc/schroot/schroot.conf


Add:



[precise]
description=Ubuntu Precise
location=/home/me/chroot
priority=3
users=me
groups=sbuild
root-groups=root


sudo debootstrap --variant=buildd --arch 686 precise /home/ms/chroot/ http://mirror.url.com/ubuntu

Surely, I can add a new user, take all its privileges?  This chroot approach uses a new operating system!
It took less than ten minutes anyway.

Enter the jail by,


sudo chroot /home/me/chroot

and note that the root directory is not the root of the machine but things are working ok.  So far.

/etc/passwd:   list of users - user system nuymbers.
/etc/group:  list of groups and system group numbers.


http://www.yolinux.com/TUTORIALS/LinuxTutorialManagingGroups.html

access control lists may be what I'm looking for.

http://www.vanemery.com/Linux/ACL/linux-acl.html

No comments:

Post a Comment