Permissions in web directory

Discussion in 'Installation/Configuration' started by kojakwolf, Apr 11, 2014.

  1. kojakwolf

    kojakwolf New Member

    Hello,

    This is probably simple, but I keep hitting a dead end with this.

    I have a user on the server that's an admin and via ssh, I'd like this user to be able to access /var/www/sitename.com/web. Unfortunately the user can get all of the way to /var/www/sitename.com but when trying to access the web folder, "-bash: cd: web: Permission denied" comes up. THe owner of the folder is web2, the group is client1.

    I've added the admin shell user to the group "client1" and the user also has access to sudo and www-data.

    Directory listing:

    drwxr-xr-x 9 root root 4096 Apr 10 21:10 .
    drwxr-xr-x 5 root root 4096 Apr 10 21:10 ..
    drwxr-xr-x 2 web2 client1 4096 Apr 10 21:10 cgi-bin
    drwxr-xr-x 2 root root 4096 Apr 10 21:54 log
    drwx--x--- 2 web2 client1 4096 Apr 10 21:10 private
    drwxr-xr-x 2 root root 4096 Apr 10 21:10 ssl
    drwxrwxrwx 2 web2 client1 4096 Apr 10 21:10 tmp
    drwxrwxr-- 4 web2 client1 4096 Apr 10 21:10 web
    drwx--x--- 2 web2 client1 4096 Apr 10 21:10 webdav

    Any idea what I'm missing?

    Thank you
     
  2. srijan

    srijan New Member HowtoForge Supporter

    Hi

    What is user ID for the shell user? Please be precise & follow like this. If you created the shell user as testuser & password as pass1, then at the login bash your ssh login will be like this

    ssh defaulttestuser@yourserverIP & the password will be pass1.

    Br//
    Srijan
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    The permissions are fine. A shell user hat has been added manually can not access any websites, if he is not root user. Thts intended and made to protect the sites. If sou want to have a shell user that can access this website, then create one in ispconfig.
     

Share This Page