Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
![](/static/devrant/img/pipeless-devrant-banner-white.png)
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@stop New plan: Rewrite sudo from scratch using your own username and then fix the server :)
-
Voxera116415y@Shiggy most likely not as being able to set ownership to someone else would be a gross security risk.
-
endor57585y@Voxera to be fair, he did use 'sudo chown': root said so, so the system executed the command. The new file owner should now be allowed to do whatever it wants with the file, including returning it to root.
-
Voxera116415y@Shiggy not 100 % sure but I do know that some programs can bi flagged to run as the owner instead of as the user.
If you could set that flag and then change owner ...
Not sure if this is possible, but I also cannot se why you should be able to change owner to some one you do not have access to.
But I could be wrong. Have not done to much linux admin the last 8-10 years.
Related Rants
-
gururaju53*Now that's what I call a Hacker* MOTHER OF ALL AUTOMATIONS This seems a long post. but you will definitely ...
-
linuxxx65This guy at my last internship. A windows fanboy to the fucking max! He was saying how he'd never use anythi...
-
creedasaurus60
Another dev on my team just got a new machine. Before he came in today I made two separate USB installers and ...
Accidentally (SOMEHOW):
sudo chown <user> -hR /usr/bin/
Tries to run "sudo su" after 12 hours:
sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set
...
it was at this moment that he knew, he f'd up
rant
linux
permissions
chown
f'd up