- Thread Starter
- #51
ubuntu jammy doesnt have a wheel group and everything in / is owned by root
i checked on my laptop running ubuntu manic and its the same
list root on ubuntu in the chroot
output
list root on freebsd
output
notice the difference
i have changed all the 700 permission in the chroot to 755
but because there is no wheel group i get this error when running ls as non root user
so need to add my user to some other groups in the chroot
in the chroot addedd myself to the same groups as on my laptop running ubuntu manic
still get the same error when running ls
another permissions issue
should have read for group and other
i checked on my laptop running ubuntu manic and its the same
list root on ubuntu in the chroot
Code:
ls -l /
output
Code:
lrwxr-xr-x 1 root root 7 Feb 10 20:59 bin -> usr/bin
drwxr-xr-x 2 root root 2 Apr 18 2022 boot
dr-xr-xr-x 12 root root 512 Feb 11 13:25 dev
drwxr-xr-x 68 root root 136 Feb 11 14:11 etc
drwxr-xr-x 3 root root 3 Feb 5 18:57 home
lrwxr-xr-x 1 root root 7 Feb 10 20:59 lib -> usr/lib
lrwxr-xr-x 1 root root 9 Feb 10 20:59 lib32 -> usr/lib32
lrwxr-xr-x 1 root root 9 Feb 10 20:59 lib64 -> usr/lib64
lrwxr-xr-x 1 root root 10 Feb 10 20:59 libx32 -> usr/libx32
drwxr-xr-x 2 root root 2 Feb 10 20:59 media
drwxr-xr-x 2 root root 2 Feb 10 20:59 mnt
drwxr-xr-x 2 root root 2 Feb 10 20:59 opt
dr-xr-xr-x 1 root root 0 Feb 11 14:15 proc
drwx------ 2 root root 6 Feb 11 14:02 root
drwxr-xr-x 4 root root 5 Feb 10 22:17 run
lrwxr-xr-x 1 root root 8 Feb 10 20:59 sbin -> usr/sbin
drwxr-xr-x 2 root root 2 Feb 10 20:59 srv
dr-xr-xr-x 1 root root 0 Feb 11 14:15 sys
drwxrwxrwt 10 root root 13 Feb 11 13:25 tmp
drwxr-xr-x 14 root root 14 Feb 10 20:59 usr
drwxr-xr-x 11 root root 13 Feb 10 20:59 var
r
list root on freebsd
Code:
ls -l /
output
Code:
-r--r--r-- 1 root wheel 6109 10 Nov 08:49 COPYRIGHT
drwxr-xr-x 2 root wheel 49 23 Dec 19:32 bin
drwxr-xr-x 15 root wheel 72 11 Feb 02:33 boot
drwxr-xr-x 4 root wheel 4 10 Feb 20:53 compat
dr-xr-xr-x 12 root wheel 512 11 Feb 12:54 dev
-rw------- 1 root wheel 4096 11 Feb 12:54 entropy
drwxr-xr-x 30 root wheel 115 11 Feb 13:24 etc
drwxr-xr-x 3 root wheel 3 5 Feb 18:57 home
drwxr-xr-x 4 root wheel 78 15 Dec 21:49 lib
drwxr-xr-x 3 root wheel 5 15 Dec 21:49 libexec
drwxr-xr-x 2 root wheel 2 10 Nov 07:48 media
drwxr-xr-x 3 root wheel 3 1 Dec 21:55 mnt
drwxr-xr-x 2 root wheel 2 10 Nov 07:48 net
dr-xr-xr-x 1 root wheel 0 11 Feb 14:14 proc
drwxr-xr-x 2 root wheel 150 15 Dec 21:49 rescue
drwxr-x--- 2 root wheel 9 8 Feb 12:52 root
drwxr-xr-x 2 root wheel 150 15 Dec 21:49 sbin
lrwxr-xr-x 1 root wheel 11 10 Nov 07:48 sys -> usr/src/sys
drwxrwxrwt 10 root wheel 13 11 Feb 13:25 tmp
drwxr-xr-x 15 root wheel 15 10 Nov 08:55 usr
drwxr-xr-x 26 root wheel 26 11 Feb 12:54 var
drwxr-xr-x 3 root wheel 3 6 Feb 21:31 zroot
notice the difference
i have changed all the 700 permission in the chroot to 755
but because there is no wheel group i get this error when running ls as non root user
Code:
ls: error while loading shared libraries: libselinux.so.1: cannot open shared object file: No such file or directory
so need to add my user to some other groups in the chroot
in the chroot addedd myself to the same groups as on my laptop running ubuntu manic
Code:
usermod -a -G adm djwilcox
usermod -a -G cdrom djwilcox
usermod -a -G sudo djwilcox
usermod -a -G dip djwilcox
usermod -a -G plugdev djwilcox
usermod -a -G users djwilcox
still get the same error when running ls
another permissions issue
Code:
-rw-------+ 1 root root 166280 Mar 17 2022 /lib/x86_64-linux-gnu/libselinux.so.1
should have read for group and other