You are not logged in.

#1 2020-03-28 10:38:21

ahmed101001
Member
Registered: 2020-02-20
Posts: 11

[SOLVED] am part of the group, yet don't have permission to access

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#exit

then 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 denied

this is what ls -al shows:

drw-r-----  3 root   testing  4096 Mar 28 05:25  directory

this 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 testing

i didnt find any explanation on the internet, please help.

Last edited by ahmed101001 (2020-03-28 10:44:36)

Offline

#2 2020-03-28 10:40:31

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,388

Re: [SOLVED] am part of the group, yet don't have permission to access

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

#3 2020-03-28 10:44:17

ahmed101001
Member
Registered: 2020-02-20
Posts: 11

Re: [SOLVED] am part of the group, yet don't have permission to access

thank you very much, feel very stupid now

Offline

Board footer

Powered by FluxBB