639
Andrew just wants to open his files on Windows 10
(programming.dev)
Post funny things about programming here! (Or just rant about your favourite programming language.)
My man just reinvented free software.
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
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.
i mean, chown is just a binary. takeown is probably pretty similar, right?
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