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.


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.

  • What errors you get? – Jakuje Jun 30 '17 at 5:29
  • While trying to verify using sslforfree.com, I am getting this error. Permission or write error. Make sure the directory is correct and the user has write access to the directory.. – p01ymath Jun 30 '17 at 5:31
  • And is it SSH or FTP? – Jakuje Jun 30 '17 at 5:32
  • It asks for FTP Information. I can connect through Filezilla and SSH too from my Computer. I can even Create/Delete files from SSH from my computer. But that site shows error. – p01ymath Jun 30 '17 at 5:33
  • I tried to login using FTP through net2ftp.com but It is showing error too! Here is what I got Unable to connect to FTP server on port 22. – p01ymath Jun 30 '17 at 5:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.