Hi All,
When i run the sudo -l command i got the following o/p below.
right now my query is , how to run the following commad as root with the help of sudo command.
am not able to switch to the root user.
sudo su
is giving error message not added to the /usr/bin/su
i think this is the right way to run the below commaand
sudo /apps/IBM/InformationServer/Server/DSEngine/bin/uv -admin -stop
sudo -l
User khanirfa may run the following commands on this host:
(root) NOPASSWD: /apps/IBM/InformationServer/Server/DSEngine/bin/uv
(root) NOPASSWD: /apps/IBM/InformationServer/ASBNode/bin/NodeAgents.sh
(root) NOPASSWD: /apps/IBM/WebSphere/AppServer/profiles/default/bin/stopServer.sh
(root) NOPASSWD: /apps/IBM/WebSphere/AppServer/profiles/default/bin/startServer.sh
(root) NOPASSWD: /apps/IBM/InformationServer/Server/DSEngine/dsenv
(root) NOPASSWD: /apps/IBM/InformationServer/ASBServer/bin/MetadataServer.sh start
(root) NOPASSWD: /apps/IBM/InformationServer/ASBServer/bin/MetadataServer.sh stop
(root) NOPASSWD: /apps/IBM/InformationServer/ASBServer/bin/MetadataServer.sh run
please provide your valuable suggestion
how to run the script as root with the help of sudo
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 6
- Joined: Tue Nov 06, 2012 6:34 pm
Re: how to run the script as root with the help of sudo
Try this....
runsudo <command>
runsudo <command>