You are not logged in.
Hello, so i opened a terminal and did:
user@sys$su root
root@sys#groupadd testing
root@sys#mkdir directory
root@sys#usermod -aG testing root
root@sys#usermod -aG testing user
root@sys#chown root:testing directory
root@sys#chmod 640 directory
root@sys#exitthen i logged out, restarted my system and logged in as user. Then i tried to access the folder:
user@sys$cd directory
bash: cd: directory/: Permission deniedthis is what ls -al shows:
drw-r----- 3 root testing 4096 Mar 28 05:25 directorythis is what id shows when logged in as user:
uid=1000(user) gid=1000(user) groups=1000(user),108(vboxusers),109(vboxsf),986(video),988(storage),990(optical),995(audio),998(wheel),1002(testing)this is what groups shows when logged in as user:
vboxusers vboxsf video storage optical audio wheel master testingi didnt find any explanation on the internet, please help.
Last edited by ahmed101001 (2020-03-28 10:44:36)
Offline
You need execute permissions to enter a folder: https://wiki.archlinux.org/index.php/Fi … ermissions
"As for not finding any information on the internet" second hit for that error message: https://unix.stackexchange.com/question … ion-denied
Last edited by V1del (2020-03-28 10:43:59)
Online
thank you very much, feel very stupid now
Offline