[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: HOLY giwtwm.jpg (119 KB, 1080x1080)
119 KB
119 KB JPG
previous: >>108384005

#define __NR_umask                95

https://man7.org/linux/man-pages/man2/umask.2.html

tl;dr:
set your file creation mode mask

another one of those interesting syscalls that never returns an error code. it has an in-band data return, though, which i hate hate hate (think i discussed this with an anon some threads ago).
kind of strange how the ACL (https://man7.org/linux/man-pages/man5/acl.5.html) can override the umask, but i guess one has to take precedence over the other. i've never used an ACL like this before. what about you, anon?

relevant resources:
man man

man syscalls

https://man7.org/linux/man-pages/
https://linux.die.net/man/
https://elixir.bootlin.com/linux/
https://elixir.bootlin.com/musl/
https://elixir.bootlin.com/glibc/
>>
bampu
>>
I never got masks in Linux. They seem to make everything more complicated, but on the other hand everything related to Linux file permissions is too complicated. You can't tell me one looks at
r-xx----r-x--x--w  anon anon fHOLY_giwtwm.jpg

and says "Ah, yes, now I know which user has which permission". Insanity.
>>
giwtwm
>>
This seems like a thread for giga virgins but thanks for the idea for my next porn gams
>>
>>108390879
SEX
>>
>>108391471
just generate a bunch of examples (and non-examples?) and go through them
Won't work if you are finding the concept itself difficult though
Do keep in mind though that (iirc) more user and group-specific permissions beyond 'owner', 'group' 'owner' and 'everyone else' are added on separately from that 9-tuple.
>>
>>108391471
of course it makes no sense when your shit example is wrong
>>
>>108390879
dentists dont put their thumb in your mouth. they use a suction tool.
>>
> filename
yeah anon
>>
>>108392589
I'm a dentist and I finger the mouths of cute girls.
>>
>>108390879
fiwtwm
>>
>>108392605
yeah...
>>
>>108392608
Based
>>
>>108390879
I should become a dentist
>>
brb registering to tooth school
>>
>>108390879
I FUCKING HATE UMASK
it's one of the biggest fuck you's of UNIX, ESPECIALLY if you use POSIX ACLs because it always fucks your shit up.
>>
>>108391471
they are overcomplex. On Windows it doesn't help that the Powershell tooling for ACLs is so fucking bad, shelling out to icacls.exe is better. but sadly Windows secondly punches you in the dick with SMB ACLs too, which add another flavor of WTF to your problems. Doesn't help most languages barely expose UNIX braindamaged DAC shit.
>>
>>108391792
post your previous works
i may buy some
>>
>>108391792
do i regain my virginity after six years with no sex in my life
>>
thanks not letting my wife go to a male dentist anymore
>>
>>108390879
Isn't this false? He would be focused on the inside of her mouth
>>
>>108390879
>filename
the dentist or the woman?
>>
>>108392589
Both my dentists (female, under 50, talk softly and give lots of encouragement about how well I’m doing) have put their fingers in my mouth.
>>
>>108396520
Who the fuck wants to be a dentist lmao
>>
>>108396634
Dentists.
>>
>>108396634
Why not? Easy job that pays well. Don't have to see people dying like an actual doctor.
>>
>>108390879
Stop posting your gay ass images, nigger.
>>
>>108394129
No, you are not one of us. You will always be with them. Don't come near us, sex haver.
>>
>>108396640
>easy job
Hell no. Drill too much, the tooth is dead and you are looking at a malpractice lawsuit. The patients constantly squirm around and you can't knock them out. OP pic shows a cute girl but often you get ugly people with rotting teeth and breath terrible enough to suffocate you.
There's a reason there are few of them and they charge a fortune.
>>
>>108397054
;_;
>>
>>108396520
not the dentist lol
>>
>>108390879
>umask
no u
>>
>>108397369
also I imagine dealing with antidentites daily sucks.
>>
>>108391471
RTFM: https://man7.org/linux/man-pages/man1/chmod.1.html
>>
>>108401306
he's not wrong though. as soon as you see a + or a . in the long form ls output format, the complexity spirals.
>>
>>108390879
>it's impossible to set the umask without some data race
>clunky /proc was added in 4.7, so only in 2016!!!
>>
>>108396520
>>108396634
well, who the fuck wants to be a woman lmao
>>
>>108401732
haha, yeah... who would ever want that haha that'd be crazy
>>
>>108401732
I imagine w*men do.
>>
>>108401600
that's not what that anon said, and the simplest cases are easy to decode (unless there are ACLs, like the OP said)
>>
>>108401732
clearly OP
>>
>>108401732
uhhh
>>
>>108402206
verily
>>108401920
but they don't have to imagine being one
>I wish that WERE me
>>
>>108402639
well, no, but we can wish to have our mouths molested by a hot dentist guy
>>
>>108401732
half of /g/
>>
>>108402639
you will always be a woman
>>
>>108401732
Why wouldn’t you?
>>
>>108390879
Just wanted to let you know, in a very indirect way you made me cum. I looked up the artist, I found all of their shit, got horny and here I am with cum in my hand. You did this to me.
>>
>>108404397
you just told a man he made you cum, that is homosexual sir
>>
>>108404407
He's the one who made me cum.
>>
>>108404427
but we all know OP is a faggot already
>>
>>108404407
>>108404397
i'm a girl btw haha a girl made you cum i bet you feel real stupid right now huh
>>
>>108404483
girl(xy)
>>
>>108404483
Hey, I'll take it.
>>
>>108390879
Why is the dentist straddling me, and why am I a girl?
>>
File: umask.jpg (40 KB, 598x711)
40 KB
40 KB JPG
>>
>>108402688
"we"
>>108403343
I don't think so
>>
File: onodera.jpg (22 KB, 227x227)
22 KB
22 KB JPG
>>108390879
why the hell is this image so effective
i wish i were a dentist right now instead of a gay engineer
>>
>>108391471
Your example is wrong, file permissions are simple. The output of ls simply states the file type, user permission, group permission and everyone else permission. r = read, w = write, x = execute.

rwx rw- r-- = read, write execute for user, read, write for group and read for everyone else.
>>
File: G35ObiuWwAAvKxv.jpg (74 KB, 736x1044)
74 KB
74 KB JPG
>autist could not find enough posters to keep their documentation dump going so he resorts to gay roleplay to keep the thread off page 10
>>
>>108406273
op is both a troon and an animu nigger, his thread is still far superior to 99.999% of trash threads that plague the board
>>
>>108406292
That I don't deny
>>
>>108401732
only if i were cute smol anime girl that never ages and can do lewd handholding with other cute smol anime girls
>>
>>108396625
god I wish I had that, your so lucky



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

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.