I'm setting up a new webserver on Debian. As my previous install had everything located in /srv/www I want to use the same setup to avoid rewriting a bunch of config files.
However executing mkdir /srv/www
results in permission denied. Using both sudo as executing it as a su does not resolve the error.
Permissions of /srv
are set to drwxr-xr-x
and I'm only using a single disk that's mounted on /
. No nfs shares.
df -h
, you can see the file system and mounting pointlsattr -d /srv
. If it shows an 'i' flag, then runchattr -i /srv
and it should be ok. Oh, and @MarcusMüller is right, do no use an outdated distribution !!