I want all the Users in Specific Group to Access the Directory. Here is what I've done till now.
chown -R www-data:GROUP_NAME /var/www/DIRECTORY chmod g+w /var/www/DIRECTORY chmod o-r /var/www/DIRECTORY chmod g+s /var/www/DIRECTORY
I've added User to group
GROUP_NAME using following Command.
usermod -aG GROUP_NAME USER_NAME
Also, Here's the Command I've used to Create User.
useradd -m -d /var/www/DIRECTORY -s /bin/bash -p `openssl passwd PASSWORD` -U USER_NAME
After Doing all these, I can't see the Files in directory when I connect to Server through SSH nor I can verify anything using this Account.
I don't know what's wrong.