-   Linux - Software (
-   -   su root (

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

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

shell scripting.....

hurry_hui 06-18-2010 08:12 AM

Do you mean log in as root by using

$ su -


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 01:20 AM.