this post was submitted on 08 Jul 2024
619 points (96.8% liked)

Programmer Humor

31800 readers
311 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 10 points 1 month ago (6 children)

Eh? On Linux you also aren't supposed to log in as root, and you also have to individually set file permissions.

This issue is unrelated to windows, it's a safety feature that all modern desktop OSes have

[–] [email protected] 7 points 1 month ago (3 children)

It’s quite common to login as admin on windows though (in home setups), you’ll still have to authenticate for administrative tasks (the UAC popups).

The issue here is mostly that the user has probably upgraded and windows changed their account, resulting in the files being owned by their old account.

In linux, that’s fixable with ‘sudo chmod -R’

In Windows, there’s no built-in way, you need the take ownership script.

[–] [email protected] 1 points 1 month ago (1 children)

i mean, chown is just a binary. takeown is probably pretty similar, right?

[–] [email protected] 1 points 1 month ago

Pretty much, yeah

I assume the equivalent would just be ‘takeown /r

As far as I can tell it always uses the currently logged in user as target though

load more comments (1 replies)
load more comments (3 replies)