LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 09-14-2004, 12:07 AM   #1
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,129

Rep: Reputation: 30
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
 
Old 09-14-2004, 12:37 AM   #2
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 65
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.

 
  


Reply


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
login as owner?!?!?!? bobbit Linux - Newbie 7 11-15-2004 04:02 AM
Crazy blank dialog boxes and windows at login. Can't login as user soren625 Linux - General 2 08-11-2004 06:30 AM
Dual boot owner and user problem aikempshall Mandriva 2 02-13-2004 07:56 AM
can only login as root? user login doesnt work..? anyone? hacking_4_b33r Linux - General 1 02-05-2004 11:40 PM
Group as owner instead of a user dtournas Linux - General 1 09-11-2003 10:13 AM


All times are GMT -5. The time now is 02:46 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration