Quantcast
Channel: How to just gain root permission without running anything? - Ask Ubuntu
Browsing all 6 articles
Browse latest View live

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 Article



Answer by tkow for How to just gain root permission without running anything?

I usesudo bashThat's simple enough!

View Article

Answer 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 Article

Answer 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 Article

Answer 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 Article


How 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
Browsing all 6 articles
Browse latest View live




Latest Images