On 2006.03.08 09:10:39 +1100, Tony and Robyn Lewis wrote:
> I can't seem to get the chroot-barrier to work.
>
> == in guest, before setting chroot-barrier ==
> tony@rice:~$ date
> Tue Mar 7 21:43:19 UTC 2006
>
> == in host, turning on chroot-barrier ==
> tony@mystic:~$ sudo setattr --barrier /var/lib/vservers/rice
The barrier should be set on the parent directory, so the correct thing
to do would be:
setattr --barrier /var/lib/vservers/rice/..
> == in guest, after chroot-barrier ==
> tony@rice:~$ date
> -bash: /bin/date: Permission denied
Yep, cause you just denied access to the guest's / directory :)
HTH
Björn
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Tue Mar 7 22:43:33 2006