3
1
I'm experiencing strage problem.
I simple need to give permissions www-data
to a folder
chown -R www–data:www-data /somefolder
chown: invalid user: ‘www–data:www-data’
grep www-data /etc/passwd
www-data:x:33:33:www-data:/var/www:/bin/sh
other folders generated by apache:
drwxr-xr-x 2 www-data www-data 16384 Jan 12 00:30 11
drwxr-xr-x 2 www-data www-data 8192 Jan 13 01:01 12
drwxr-xr-x 2 www-data www-data 8192 Jan 14 00:30 13
Check if this and this will help.
– VL-80 – 2014-01-13T22:33:39.1331What happens if you try to issue command without group?
chown -R www–data /somefolder
– VL-80 – 2014-01-13T22:42:37.903does the user exist in /etc/shadow as well? – ernie – 2014-01-13T23:20:19.680
Weird, should work. What happens if you use chown www-data.www-data /somefolder ? (ie . rather then :) – davidgo – 2014-01-14T02:12:20.030
@Nikolay chown: invalid user: ‘www–data’ – Orlo – 2014-01-14T08:02:33.977
@ernie yes, it's there as well. – Orlo – 2014-01-14T08:03:40.607
I see. Very interesting... What if you try to use UID instead of username?
chown -R 33:33 /somefolder
? – VL-80 – 2014-01-14T13:24:23.700