Re: One silly chmod question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>>> I have a problem changing permissions to some files using chmod and now
>>> I have a doubt about the owner and group of a file,
>>> I´ll try to explain.
>>> I have 2 users, user1 and user2, both belongs to group1.
>>> I have a file with this permissions:
>>> -rwxrwxrwx 1 user1 group1 file.txt
>>> with user2 I can read, write this file. but If I try to change the
> permissions with this:
>>> chmod 770 file.txt I get the error:
>>> operation not permitted,
>>> so my doubt is, only the owner can change the permissions to a file?
>>
>> Think about the *meaning* of what you tried to do: you, as a member of
> the group, but not as the owner, are trying to make it so that the owner
> cannot even look at the file, not execute, not write, not even read.
> Does that make sense?
>
> That would be incorrect...he, as a member of the group, but not the owner,
<snip>
Sorry, you're right. My mind's on too many other things....

         mark

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list


[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux