LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   User login but not the owner (http://www.linuxquestions.org/questions/linux-software-2/user-login-but-not-the-owner-230346/)

ust 09-14-2004 12:07 AM

User login but not the owner
 
The below is my case ,
the user login into the system twice , then there are two logins in the system now ( eg. pts/10 , pts/15 ), however , when the user try to kill the another process ( pts/15 ) , it pop the message " kill: (8409) - Not owner" , I am very strange that this pid-8409 is the process of this same user , why can't kill the pid of the same user ? thx


$ who -u |grep edpuser
edpuser pts/10 Sep 14 11:14 00:13 8409 (192.168.1.2)
edpuser pts/15 Sep 14 11:28 . 22389 (192.168.1.2)
$ kill -1 8409
kill: (8409) - Not owner
$ kill -9 8409
kill: (8409) - Not owner

dalek 09-14-2004 12:37 AM

I'm not sure if this is what you mean or not but: If I login as dale and start Mozilla then login again and start something say, top, for instance. Root can kill either, but from my understanding, which may be wrong, the first dale owns Mozilla and the second dale does not. The first dale can kill Mozilla because that dale started it. The first dale can not kill top that was started by the second dale because he did not start that program and does not 'own' it.

Since you may be new to Linux, security and stability are about the first things on the list. What you start, that specific user owns it, as in the one that actually started the process not the user name.

The same is not true when you generate a file though. Either of the dale's above can create a file and both dale's own the file. Same user. We used to run into this back in the Unix days. If you login to two terminals and one has locked up for some reason, you can't just kill the user, you have to kill the terminal, to make sure you get the right one, unless you want both to be killed.

I hope that makes since. The best way to kill a process, in my opinion, is to su and do it as root. Pretty much does the deed then regardless.

Hope that helps and is correct. If not some better guru may come along and correct or explain it better.

:D :D :D :D


All times are GMT -5. The time now is 07:16 AM.