Guys just a hypothetical question:
If a user had fewer rights than the group or 'others', would he inherit the rights from either of them?
Most replies on forums are just like "why would you do that [...]" probably cuz these fags simply don't know.
Like, if I were to create a OS I would probably not "allow" giving myself less rights than other people.
Again, I don't want to hear shit about locking yourself out n stuff, it's just a question.
wut?
>>57568520
Don't they collapse?
>>57568550
Wat
>>57568520
no.
like what if you dont want a specific user to access the file?
>>57568561
For example - - - - - - rwx
Now does the user inherit the rights of others?
>>57568616
good point but why should the owner have less access than the rest? I couldn't think of a single case where it wouldn't make sense to give the owner at least the rights of one of the other groups
>>57568520
Assume file x has ownership root:users and the user fuckface is member of the users group
If file x has permissions rw-r-r-- then user fuckface can only read.
If file x has permissions r--rw-r-- then user fuckface can read and write (because he is a member of the users group which has rw access)
If file x has permissions r--r--rw- then user fuckface can read and write (because the third part of the permissions relate to ALL users)
>>57568729
Thanks so much my nigga
as user x which belongs to some-group.
There is file f which is owned by x:some-group with rights ---rw----
only group has read/write.
trying to read file f as user x gives me permission denied.
>>57568537
Winbabby gaymer detected
>>57568667
Some men can't be left to their own devices.
>linux permissions
>>57568520
Just try it yourself, shouldnt be hard
Whatever group the user belongs to, he will get the most permission from that.
If a user has read only access, but is part of groupx/y, groupx gives execute and groupy gives write, user will now have rwx.