LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Why am I not able to read or operate on this directory? (https://www.linuxquestions.org/questions/linux-newbie-8/why-am-i-not-able-to-read-or-operate-on-this-directory-4175682301/)

wh33t 09-17-2020 02:59 PM

Why am I not able to read or operate on this directory?
 
Code:

wh33t@wh33tcloud:/var/www/wh33tcloud$ ls -l
total 4
drwxrwx--- 6 www-data www-data 4096 Sep 17 03:18 data

Code:

wh33t@wh33tcloud:/var/www/wh33tcloud$ groups wh33t
wh33t : wh33t adm cdrom sudo dip www-data plugdev lxd

Code:

wh33t@wh33tcloud:/var/www/wh33tcloud$ ls data/
ls: cannot open directory 'data/': Permission denied

I am clearly in the group for www-data, and the www-data group is to read write and execute, right?

Edit:
Apparently I just needed to logout and then back in. Works now!

JZL240I-U 09-21-2020 05:39 AM

Congrats. Please mark your thread as [solved] then...


All times are GMT -5. The time now is 03:22 PM.