I'm using drupal and Aegir. Aegir automates many tasks of site creation. Aegir has control of Apache, I'm logen in as root, and I want to restart the Apache server, but I want to do it on Aegirs behalf. Unfortunately I do not know the Aegir password, so basically I'm wondering how to sudo something as another user.
Tell me more
×
Server Fault is a question and answer site for
professional system and network administrators. It's 100% free, no registration required.
|
That user likely won't be able to actually restart Apache if it's running on port 80, unless specifically configured to be allowed to do so. By default, |
|||||||
|
sudo accepts a user parameter, which will run it as that user. Alternatively, since you are root:
|
|||
|
|
|
You should be able to do the following
e.g
But if you are root you can just su to the user with out a password. su -l Ageir J |
|||
|
|