Root execute command as a normal user
Normal users can execute as command as root using sudo.
My question is, how can root execute something as a normal user. In the following example, if I execute as root "sudo -u user whoami" the program whoami replies with root. I'm guessing there must be another way.. Thanks in advance.. -Carlos |
These work:
Code:
su -c <cmd> <user> Code:
sudo -u <user> <cmd> |
That worked..
Thanks chrism01 -Carlos |
Run command in rc.local as user
I have a similar situation. Running Arch, I need to run a command in rc.local as the local user. How do I do this?
|
Try something like this
Code:
# Start a vnc server as the user install |
Thanks for the help, but I found the answer myself: Autostart for Openbox
|
All times are GMT -5. The time now is 03:04 PM. |