Logging on as root from The Terminal
Hi,
How can I log on as root from "The Terminal" run a script and then go back to my acutal logged in user? Any help is greatly appreciated. Thanks, Bob |
The command su will do this for you.
su password: (enter the password, nothing will be shown ) To go back to being a normal user type exit. |
Or, instead of su'ing, do this:
su -c "command" Cheers, Tink |
$sudo su
$Enter your password $ to return to normal user privileges: $exit |
All times are GMT -5. The time now is 07:41 AM. |