this post was submitted on 03 Sep 2025
140 points (87.6% liked)

Programmer Humor

26135 readers
1203 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 

not really programming and probably butchered the execution on that cmd but this felt like the only place it would be funny to post it

you are viewing a single comment's thread
view the rest of the comments
[–] AnyOldName3@lemmy.world 4 points 1 day ago

Windows permissions are more flexible than basic Unix ones. A file doesn't just have an owner and a group, it can have individual permissions for arbitrarily many entities, so taking ownership doesn't remove any of the permissions from anything that already had access, it just adds more. The command shown here is closest in effect to deciding you're always going to log in as root from now on, although Windows has a way to effectively do that without modifying the ACL of every file. Either way, it's silly, and usually people who suggest it are under the impression that XP did permissions right by not meaningfully enforcing them and not having an equivalent of a root account you can temporarily switch to, and Vista only changed things specifically to annoy people, and not to be more like Unix.