LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-04-2017, 07:47 AM   #1
slayer_1994
Member
 
Registered: Feb 2017
Posts: 38

Rep: Reputation: Disabled
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
 
Old 04-04-2017, 08:00 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
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.
 
1 members found this post helpful.
Old 04-04-2017, 08:11 AM   #3
slayer_1994
Member
 
Registered: Feb 2017
Posts: 38

Original Poster
Rep: Reputation: Disabled
Hi MensaWater

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

Will give it a try

Thanks again
 
  


Reply

Tags
java, owner, process, root, unix


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Owner of process Rand_al Linux - Kernel 1 06-18-2014 06:35 AM
How to determine who the process' owner* is? balteo Linux - General 3 04-20-2013 05:40 AM
How to find owner of a process vkarna Linux - Newbie 3 10-19-2007 09:01 AM
Process Owner Questions Lawrentium Linux - Security 2 11-22-2006 10:20 PM
Changing Owner sghod1212 Mandriva 1 12-19-2005 06:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration