Why can't i change the permissions of files I have access to?
Posted
by
Erik
on Ask Ubuntu
See other posts from Ask Ubuntu
or by Erik
Published on 2012-06-07T16:20:39Z
Indexed on
2012/06/07
16:47 UTC
Read the original article
Hit count: 650
permissions
I'm logged into a server as user "ubuntu" and I've got files that look like this:
-rw-rw-r-- 1 www-data www-data 33150 2012-06-04 22:17 file-a.png
-rw-rw-r-- 1 www-data www-data 36371 2012-06-04 22:15 file-b.png
-rw-rw-r-- 1 www-data www-data 41439 2012-06-04 22:16 file-c.png
the ubuntu user is a member of the group www-data:
> groups unbuntu
ubuntu : ubuntu www-data
so shouldn't I be able to change other permissions since I have access to the file? I'm not an expert on the user/group stuff ... so this is just perplexing me.
I'm trying to run:
> chmod o-r *
I realize I can do it with sudo, easily, but I'm trying to understand why I can't modify the files without sudo.
Thanks for any help!
© Ask Ubuntu or respective owner