chmod: changing permissions of ‘web2’: Operation not permitted

Discussion in 'Server Operation' started by Enrique García, Jan 15, 2017.

  1. I'm root an this hapen:
    root@fyde:/var/www/clients/client2# ls -l
    total 8
    lrwxrwxrwx 1 root root 30 Jan 10 10:24 docente.com.mx -> /var/www/clients/client2/web2/
    lrwxrwxrwx 1 root root 30 Jan 10 10:40 tecnl.docente.com.mx -> /var/www/clients/client2/web2/
    drwxr-xr-x 19 root root 4096 Jan 10 10:38 web2
    drwxr-xr-x 3 root root 4096 Jan 10 10:24 web2_bak_2017_01_10_10_24_01
    root@fyde:/var/www/clients/client2# chmod 777 web2
    chmod: changing permissions of ‘web2’: Operation not permitted
    root@fyde:/var/www/clients/client2#

    Then I change the permission in parent directory:
    root@fyde:/var/www/clients# ls -l
    total 16
    drwxr-xr-x 2 root root 4096 Jan 10 10:25 client0
    drwxr-xr-x 4 root root 4096 Jan 10 10:25 client1
    drwxrwxrwx 4 root root 4096 Jan 15 13:51 client2
    drwxr-xr-x 4 root root 4096 Jan 10 10:24 client3
    root@fyde:/var/www/clients#

    But the same problem.

    Please advise,
    Regards,
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    A chmod 777 on the web directory or changing the directory to the web2 user is not a good idea and that's why ispconfig is not doing it. The permissions are fine as they are, why do you want to change them?
     
  3. To install Moodle, then restore it. The installation script of moodle need it to install.
    But, I resolve the problem with chattr -V ais web2. To remove the inmutable attribute.
    I proceed to install Moodle, hope every thing ok.

    Thanks for answer my post.
    Regards,
     
  4. Solved, I just create moodledata folder in right private folder, and there's no need to move permission.
    Regards,
     
    till likes this.

Share This Page