List Info

Thread: Re: lsof (getpwuid?) lists unexpected username




Re: lsof (getpwuid?) lists unexpected username
user name
2007-10-15 05:09:26
Jos Vos wrote:
> On Mon, Oct 15, 2007 at 05:53:40PM +0800, John
Summerfield wrote:
> 
>>> I'm using lsof -i -n "tcp<ipaddr>:ftp" in a check script to see
>>> if a daemon is still running.  In the USER
field of the LISTEN
>>> output line I expect "root".  But:
when there is another user in
>>> /etc/passwd with uid 0 -- a user listed *after*
root, that is on
>> Why?
> 
> Multiple "personal" root logins with a
personal password.  I know
> the are pros and cons (this does not need to be a
server with the
> highest security level), but discussions about that are
beyond the
> scope of my question .
> 

Well, it did look a little like an intruder had visited.

Personally, I'd go with sudo. It's behaviour is defined, and
it seems 
the consequences of what you're doing now are erratic, and
I'm skeptical 
  that the logs record anything useful about what you're
doing.





-- 

Cheers
John

-- spambait
1aaaaaaacoco.merseine.nu  Z1aaaaaaacoco.merseine.nu

Please do not reply off-list

_______________________________________________
rhelv5-list mailing list
rhelv5-listredhat.com
h
ttps://www.redhat.com/mailman/listinfo/rhelv5-list

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )