What are the default permissions for /var/www and its children?

Discussion in 'Installation/Configuration' started by cansin, Aug 11, 2020.

  1. cansin

    cansin New Member

    Hi, I messed up my folder ownerships for /var/www and now they all belong to root. Can anyone let me know what the default ownerships are for that folder and its children?

    I can assign web1 directory to web1, web2 to web2 and so on but I don't know to whom the www directory should belong. Currently, it belongs to root and I assume that is why each new website I setup belongs to root by default.

    Is there a button or a script I am missing to reset all these settings?

    System: Ubuntu 18.04 ISPConfig 3.1dev
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    None that I know of. Usually admins restore from backup after messing up in a big way.
    I got these owners and permissions from my host running Debian 10 Buster, but it would suprise me if they were different on Ubuntu:
    The /var/www directory itself is
    drwxr-xr-x 7 root root
    that is owner and group owner root:root and permissions those at the beginning of line.
    Directories inside /var/www are
    [email protected]:/var/www# ls -lhd apps ispconfig
    drwxr-xr-x 2 ispapps ispapps 4.0K Aug 29  2019 apps
    lrwxrwxrwx 1 root    root      34 Aug 29  2019 ispconfig -> /usr/local/ispconfig/interface/web
    all other directories are permissions drwxr-xr-x and owners root:root.
    Did you also change inside the website folders? Those may be possible to fix from ISPConfig Panel tab Tools | Sync Tools | Resync. On the other nand, reading ISPConfig manual looks like it is not.

Share This Page