[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Guys just a hypothetical question: If a user had fewer rights

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 15
Thread images: 2

File: rwx.png (8KB, 390x129px) Image search: [Google]
rwx.png
8KB, 390x129px
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.
>>
File: 1.gif (4KB, 503x143px) Image search: [Google]
1.gif
4KB, 503x143px
>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.
Thread posts: 15
Thread images: 2


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.