
cloud-locale-test.skip*ĭrwxrwx-x 3 olw olw 4096 Jun 15 15:10. rwxrwxrwx 1 root guest 20 Jun 15 15:14 WELCOME.txt* rwxrwxrwx 1 root guest 807 Jun 15 15:00. rwxrwxrwx 1 root guest 220 Jun 15 15:00. Guest drwxrwxrwx 2 root guest 4096 Jun 16 11:11. The file system inside the users looks as following What am I doing wrong? I want the guest not to be able to leave his own home directory but I want him to see his own home directory and be able to execute commands there. ĭrwxrwxrwx 2 root guest 4096 Jun 16 11:11 guest/
Reikan focal 64 bit full#
I even switched the permission for the guest homefolder to full access from everyone ending up with: drwxr-x- 5 root admins 4096 Jun 16 11:01. I can go into my home folder, go outside do everything but with the GUEST account I get a /home # su guestīash: /home/guest/.bashrc: Permission denied When I switch to my admin everything is working. drwxr-x- 5 root admins 4096 Jun 16 11:01. ootUbuntu-2004-focal-64-minimal /home su guest bash: /home/guest/.bashrc: Permission denied I cannot even read the default. Otherwise nobody except root or people inside the root group could do anything with the root folder. I chmod o-rx home/ and changed to group of the home folder to admins too. So now the guest is able to switch back to the home directory once he is inside his own home directory because /home is executable to others. Inside this directory the file system looks as following: drwxr-xr-x 5 root root 4096 Jun 16 11:01. Uid=1002(guest) gid=1001(guest) groups=1001(guest)ĭrwxr-xr-x 5 root root 4096 Jun 16 11:01 home/įrom my understanding this means that others (not in root group) can read or enter(execute) this directory. I basically want a guest user not to be able to change the directory to a directory outside his own home folder when he logs in via SSH session.
