I am using the korn shell script to check the particular process is running or not in Soloris.But this script started in my login and if I give ps -ef | grep 'pname' it is showing the user as root.I am not using any where the root login access.It is miserable why the root login is coming.
The background process started in the same way which I specified.
nohup ksh rep_check &
I am not starting the rep_check_start.sh(parent) in background mode.If I execute nohup ksh rep_check & in command prompt it is started fine and it is showing my user name in ps -ef.The problem is coming when I am executing thru rep_check_start.sh script.
---------- Post updated at 09:38 AM ---------- Previous update was at 09:36 AM ----------
As I recall, (I'm not adminitrator of that application now)
I had a similar accident.
when calling the compilation with the command "nohup" the process we see as acting as a "root".
I found that when the compiler creates a new shared library, and therefore the author of the compile script authorized special user to run as root.
Normally, only moments compilation libraries could see it.
Note. libraries were created after compiled with chown special user.
By contrast, when start the command with nohup, it was immediately apparent as root always.
Its the initd process which inherites whose pid == 1. The root is just a user profile id which happens to be the default superuser of a system and NOT a process.