Quantcast
Channel: How to elevate privileges to root in bash and return back? - Ask Ubuntu
Browsing all 4 articles
Browse latest View live

Answer by WinEunuuchs2Unix for How to elevate privileges to root in bash and...

I don't have many scripts that elevate from user privileges to sudo (super user) powers. Ironically due to the fact your question is about gedit one of the scripts I have is called sgedit. It was...

View Article



Answer by J. Denver for How to elevate privileges to root in bash and return...

My answer. Yet a solution of how to just elevate and decrease privileges (actually, conceptually without even wrapping, existing separately) or to fully switch to root and back is required. Basing on...

View Article

Answer by LeonidMew for How to elevate privileges to root in bash and return...

To elevate privileges for few commands in script use sudo with heredoc syntax: possiblevariable=something sudo /bin/bash <<EOF cd /somedir pwd commandasroot1 "$possiblevariable" commandasroot2...

View Article

How to elevate privileges to root in bash and return back?

How to elevate privileges to root in bash? And then how to return back to exactly the previous state? My question is both about elevating/decreasing privileges and possible troubles with some apps,...

View Article
Browsing all 4 articles
Browse latest View live




Latest Images