LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Changing owner of a process (https://www.linuxquestions.org/questions/linux-newbie-8/changing-owner-of-a-process-4175603160/)

slayer_1994 04-04-2017 07:47 AM

Changing owner of a process
 
Hi There

Somebody restarted a processes as root user, which has now meant that process is run by root, is there away to change this back?

Code:

[casupport@wycvlapph048 ~]$ ps -efl | grep Introscope_Enterprise_Manager.lax

4 S root    10541    1 16  80  0 - 2844020 futex_ Feb06 ?      9-03:07:34 ./jre/bin/java -Xms6144m -Xmx6144m -Djava.awt.headless=true -XX:MaxPermSize=256m -Dmail.mime.charset=UTF-8 -Dorg.owasp.esapi.resources=./config/esapi -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -Xss512k com.zerog.lax.LAX /opt/ca/APM_971/APM_Software/bin/../Introscope_Enterprise_Manager.lax /tmp/env.properties.10541

Is there anyway to change this process back to the user it was before?

Cheers

MensaWater 04-04-2017 08:00 AM

The best way would be to stop the process then restart it as the desired user.

I don't know of a way of changing the owner of a running process while it is running and it doesn't sound like a good idea because root would own various things that any other owner wouldn't have access to.

slayer_1994 04-04-2017 08:11 AM

Hi MensaWater

Thanks for the quick reply, that sounds pretty straight forward, silly me!

Will give it a try

Thanks again :)


All times are GMT -5. The time now is 06:08 AM.