When I look at the groups that user 'wim' is a member of, www-data
group does not show.
When I look at the members of www-data
, user wim
is listed.
$ groups
wim adm cdrom sudo dip plugdev lpadmin sambashare
$ members wim
wim
$ members www-data
www-data wim
When trying to rename a file that is owned by www-data
with 764 file permissions as user wim
I get a 'permission denied' message.
$ ls -la htmlKauPriceListSingleProductGTS.inc
-rwxrw-r-- 1 www-data www-data 3440 2月 12 14:46 htmlKauPriceListSingleProductGTS.inc
$ mv htmlKauPriceListSingleProductGTS.inc ZZZhtmlKauPriceListSingleProductGTS.inc
mv: cannot move 'htmlKauPriceListSingleProductGTS.inc' to 'ZZZhtmlKauPriceListSingleProductGTS.inc': Permission denied
Could someone please explain why user wim
is in the group www-data
but doesn't have the permissions to rename a file that is in the www-data
group?
And what I have to do to give user wim
the necessary permissions to edit files in the www-data
group?
thank you
su - your_user
to be able to login having the new grouppermission denied
when you try to rename, the file permissions are not related to file but the parent directory, in this case include dir:/var/www/html/genkigenki06/publicHtml/include
So make sure you have write permissions (rwx
perms) in group section.