user3871006
user3871006

Reputation:

User in www-data group can't view directory

I've added a user (test) to the group www-data with the following command:

sudo usermod -a -G www-data test

When I try to view a directory with permissions 744, it says Server returned empty listing for directory (lack of permission).

What am I doing wrong?

Upvotes: 2

Views: 1653

Answers (1)

edlerd
edlerd

Reputation: 2145

you must give execute permissions on the directory for the group as well. The execute bit (on directories) allows / permits listings. so just do a

chmod g+x /path/to/your/dir

Upvotes: 2

Related Questions