How to start weblogic service using sudo with another user?
0
votes
2
answers
1412
views
On Centos 6.8 server, I need to start weblogic-service from test user, and I need the process owner to be weblogic, not the test user.
I also have to start weblogic with nohup, and put it in backbground like this :
#nohup ./startweblogic &
Things I have done are as follow:
I have added test user to sudoers so it can run the start script
I run the following command, but still the process owner is not weblogic.
#su -p -s /bin/sh weblogic "nohup /u01/Oracle/Middleware/user_projects/domains/base_domain/startWebLogic.sh &"
Asked by Ali Golestan
(317 rep)
Jan 29, 2019, 10:21 AM
Last activity: Feb 6, 2019, 10:00 AM
Last activity: Feb 6, 2019, 10:00 AM