I'm using this command:
chown root:www-data /var/www/example.com -R
but I get an error message that the directory is not listed.
What is wrong?
The GNU coreutils version of
both work. This is because of how
would look for directory named
However if one set environment variable
IMHO: always try to conform to the POSIX way as one day you enter that command on another system where a POSIX is enforced, thus breaking.
Also note that the value of
One would need to
It could be your system is set up with either another
As a side note, the use of dot,
You have to put the
(I always use a dot instead of a colon between user and group, but the man pages says the colon should be used).