Kilaru Sambaiah rearranged electrons thusly:
> I am running linux with apache on port 80. I would like to know which
> priviledges it runs? One thing is log in as particular each user in
> /etc/passwd file and try to kill. Is there any better way to find it.
$ ps -aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.2 1064 128 ? S Jan31 0:06 init [3]
root 2 0.0 0.0 0 0 ? SW Jan31 0:00 [keventd]
root 3 0.0 0.0 0 0 ? SW Jan31 0:09 [kswapd]
[...]
bin 328 0.0 0.0 1152 4 ? S Jan31 0:00 portmap
root 351 0.0 0.2 1160 172 ? S Jan31 0:02 syslogd -m 0
root 361 0.0 0.2 1668 168 ? S Jan31 0:00 klogd -k /boot/Sy
nobody 374 0.0 0.5 1236 328 ? S Jan31 0:00 identd -e -o
nobody 378 0.0 0.5 1236 328 ? S Jan31 0:00 identd -e -o
[...]
daemon 391 0.0 0.1 1088 112 ? S Jan31 0:00 /usr/sbin/atd
root 404 0.0 0.1 1292 124 ? S Jan31 0:00 crond
root 417 0.0 0.1 1100 120 ? S Jan31 0:00 inetd
named 430 0.0 0.7 2544 436 ? S Jan31 0:00 named -u named -g
root 20714 0.0 1.7 1996 1084 tty3 S 12:40 0:00 login -- suresh
root 20716 0.0 1.7 1996 1084 tty2 S 12:40 0:00 login -- mallet
suresh 21537 0.0 2.3 2308 1448 tty3 S 14:31 0:01 -bash
[...]
This should help I suppose?
--
Suresh Ramasubramanian <--> mallet <at> efn <dot> org
EMail Sturmbannfuhrer, Lower Middle Class Unix Sysadmin
"What separates normal people from kooks is how they react when people disagree
with them or tell them "NO" <-- Ron Ritzman on news.admin.net-abuse.email
----------------------------------------------
Find out more about this and other Linux India
mailing lists at http://lists.linux-india.org/