4 ms·
How is it even possible to have files a user with admin privileges can’t delete?
by rbanffy 2y ago
How is it even possible to have files a user with admin privileges can’t delete?
- isoprophlex 2y agoThis makes more sense when you realise that you're not the user of your computer, but a resource to be exploited.
- mmh0000 2y ago`Administrator` isn't the most powerful user on Windows, `SYSTEM` is[1]. Those lingering files are likely created/owned by SYSTEM [1] https://learn.microsoft.com/en-us/windows/security/identity-protection/access-control/local-accounts https://learn.microsoft.com/en-us/windows/security/identity-...
- pzmarzly 2y agoDoesn't Administrator account have permission to register new system services (e.g. in services.msc) and have them run as SYSTEM account? I thought it is the case but never tried.
- spijdar 2y agoYes, this is precisely how the (now owned by Microsoft) Sysinternals PsExec [1] tool can spawn a shell as SYSTEM — it creates a service which spawns a shell in your current desktop session. [1] https://learn.microsoft.com/en-us/sysinternals/downloads/psexec https://learn.microsoft.com/en-us/sysinternals/downloads/pse...
- out-of-ideas 2y agoits worse than that; for instance in w10 the registry will have a whole slew of SYSTEM owned items, but only the TrustedInstaller (still SYSTEM) has permissions to traverse the registry tree; sadly the specfics escape me at the moment (im pretty sure the last ASUS laptop i'll ever own corrupted the nvme drive; so replicating that project that produced the results i was seeking is on the backburner) i was using NSudo for elevation to that scope when needed (wow looks deprecated now in favor of new tooling, neato)
- tavavex 2y agoLooking at all the articles about this issue, this seems to be more about a bug in the Windows cleanup tool that lets the user delete old update files. Maybe the tool isn't working properly, or it's flagging update files as deletable and they're not supposed to be. Admin users can still delete whatever they want manually, unless the system or something else is currently accessing the file. The OS sometimes protects its system files by having them be owned by the SYSTEM user, but the admin can take ownership of them to delete them. This hasn't changed and I can't see it changing.
- queuebert 2y agoCould always mount the NTFS on a live Linux USB. Physical access > admin login.
- akimbostrawman 2y agoits not your Computer
- layer8 2y agoYou probably can with the usual two-step process: First change the permissions (which an admin is allowed to), then delete.