LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   su root (https://www.linuxquestions.org/questions/linux-software-2/su-root-814912/)

subho.d 06-18-2010 08:06 AM

su root
 
How to login in "root" from a "normal user" account by the
Quote:

shell scripting.....
:scratch:

hurry_hui 06-18-2010 08:12 AM

Do you mean log in as root by using

$ su -

cmiiw

nuwen52 06-18-2010 08:37 AM

Inside of a shell script, you might use "sudo"?

salasi 06-18-2010 04:18 PM

Is the question (& this is a guess) something like:

'If I write a script that, at some point in its execution, needs to do some stuff as root, and I want the script to run without user intervention, I have to code the root password into the script and that seems like a very bad thing. How do I work around that?'

...or not?

brokenCup 06-24-2010 09:07 PM

My question would be almost exactly the same as you formulation. Has anyone an answer?


All times are GMT -5. The time now is 04:42 AM.