Answer by Daniel for How to just gain root permission without running anything?
Have you considered just creating a copy of the command you want to run as root (or any other user) and setting "Special Permissions"? (either SUID or SGID)For example:sudo cp /bin/touch...
View ArticleAnswer by tkow for How to just gain root permission without running anything?
I usesudo bashThat's simple enough!
View ArticleAnswer by jpaugh for How to just gain root permission without running anything?
While muru's answer does exactly what you want, there's also a more general way to "do nothing," even when sudo is not involved.sudo truewill run the true command, which always succeeds, and has no...
View ArticleAnswer by Jasen for How to just gain root permission without running anything?
You have to run something, but you can run a nothing command like true.jasen@crackle:~$ sudo true[sudo] password for jasen: jasen@crackle:~$ jasen@crackle:~$ sudo whoamirootjasen@crackle:~$
View ArticleAnswer by muru for How to just gain root permission without running anything?
Use sudo -v:-v, --validateUpdate the user's cached credentials, authenticating the user if necessary.
View ArticleHow to just gain root permission without running anything?
When I run a command with sudo like the following, subsequent sudo commands will not ask for a password anymore.sudo lsBut this still runs ls. If I don't want to run any command at the beginning, but...
View Article
More Pages to Explore .....