View previous topic :: View next topic |
Author |
Message |
LiquidAcid Apprentice
Joined: 11 Sep 2006 Posts: 171
|
Posted: Sat Sep 29, 2007 9:51 pm Post subject: ps won't display username but only userid |
|
|
Hi there,
I was just logged in my headless audio server and wondered why ps won't display the normal username.
ps output:
Code: | USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.1 1704 564 ? Ss 23:04 0:00 init [3]
root 2 0.0 0.0 0 0 ? S< 23:04 0:00 [kthreadd]
root 3 6.5 0.0 0 0 ? SN 23:04 1:40 [ksoftirqd/0]
root 4 0.0 0.0 0 0 ? S< 23:04 0:00 [events/0]
root 5 0.0 0.0 0 0 ? S< 23:04 0:00 [khelper]
root 31 0.0 0.0 0 0 ? S< 23:04 0:00 [kblockd/0]
root 32 0.0 0.0 0 0 ? S< 23:04 0:00 [kacpid]
root 33 0.0 0.0 0 0 ? S< 23:04 0:00 [kacpi_notify]
root 91 0.0 0.0 0 0 ? S< 23:04 0:00 [ata/0]
root 92 0.0 0.0 0 0 ? S< 23:04 0:00 [ata_aux]
root 93 0.0 0.0 0 0 ? S< 23:04 0:00 [kseriod]
root 112 0.0 0.0 0 0 ? S 23:04 0:00 [pdflush]
root 113 0.0 0.0 0 0 ? S 23:04 0:00 [pdflush]
root 114 0.0 0.0 0 0 ? S< 23:04 0:00 [kswapd0]
root 115 0.0 0.0 0 0 ? S< 23:04 0:00 [aio/0]
root 116 0.0 0.0 0 0 ? S< 23:04 0:00 [cifsoplockd]
root 117 0.0 0.0 0 0 ? S< 23:04 0:00 [cifsdnotifyd]
root 218 0.0 0.0 0 0 ? S< 23:04 0:00 [scsi_eh_0]
root 226 0.0 0.0 0 0 ? S< 23:04 0:00 [scsi_eh_1]
root 228 0.0 0.0 0 0 ? S< 23:04 0:00 [scsi_eh_2]
root 272 0.0 0.0 0 0 ? S< 23:04 0:00 [reiserfs/0]
root 363 0.0 0.1 2104 648 ? S<s 23:04 0:00 /sbin/udevd --daemon
root 693 0.0 0.0 0 0 ? S< 23:04 0:00 [ksuspend_usbd]
root 694 0.0 0.0 0 0 ? S< 23:04 0:00 [khubd]
root 4537 0.0 0.1 2092 616 ? Ss 23:04 0:00 /usr/sbin/syslog-ng
root 4596 0.0 0.1 1696 564 ? Ss 23:04 0:00 /usr/sbin/acpid
root 4713 0.0 0.2 4156 1060 ? Ss 23:04 0:00 /usr/sbin/sshd
root 4773 0.0 1.5 15732 7808 ? Ss 23:04 0:00 /usr/sbin/apache2 -D DEFAULT_VHOST -D INFO -D LANGUAGE -D SSL -D SSL_DEFAULT_VHOST -D SUEXEC -D PHP5 -d /usr/lib/apache2 -f /etc/apache2/httpd.co
root 4834 0.0 0.1 2108 888 ? S 23:04 0:00 /usr/sbin/chronyd -f /etc/chrony/chrony.conf
root 4944 0.0 0.0 1760 472 ? Ss 23:04 0:00 /usr/sbin/lircd -d /dev/lirc/0 /etc/lircd.conf
apache 5058 0.0 1.1 15732 6136 ? S 23:04 0:00 /usr/sbin/apache2 -D DEFAULT_VHOST -D INFO -D LANGUAGE -D SSL -D SSL_DEFAULT_VHOST -D SUEXEC -D PHP5 -d /usr/lib/apache2 -f /etc/apache2/httpd.co
apache 5059 0.0 1.1 15732 6136 ? S 23:04 0:00 /usr/sbin/apache2 -D DEFAULT_VHOST -D INFO -D LANGUAGE -D SSL -D SSL_DEFAULT_VHOST -D SUEXEC -D PHP5 -d /usr/lib/apache2 -f /etc/apache2/httpd.co
apache 5060 0.0 1.1 15732 6136 ? S 23:04 0:00 /usr/sbin/apache2 -D DEFAULT_VHOST -D INFO -D LANGUAGE -D SSL -D SSL_DEFAULT_VHOST -D SUEXEC -D PHP5 -d /usr/lib/apache2 -f /etc/apache2/httpd.co
apache 5061 0.0 1.1 15732 6136 ? S 23:04 0:00 /usr/sbin/apache2 -D DEFAULT_VHOST -D INFO -D LANGUAGE -D SSL -D SSL_DEFAULT_VHOST -D SUEXEC -D PHP5 -d /usr/lib/apache2 -f /etc/apache2/httpd.co
apache 5062 0.0 1.1 15732 6136 ? S 23:04 0:00 /usr/sbin/apache2 -D DEFAULT_VHOST -D INFO -D LANGUAGE -D SSL -D SSL_DEFAULT_VHOST -D SUEXEC -D PHP5 -d /usr/lib/apache2 -f /etc/apache2/httpd.co
mpd 5064 0.0 2.1 19384 11288 ? S 23:04 0:00 /usr/bin/mpd --no-create-db /etc/mpd.conf
root 5117 0.0 0.1 3112 780 ? S 23:05 0:00 /usr/sbin/smartd -p /var/run/smartd.pid
root 5174 0.0 0.1 3136 680 ? Ss 23:05 0:00 /usr/sbin/cron
root 5240 0.0 0.0 0 0 ? SN 23:05 0:00 [truecryptq/0]
root 5268 0.0 0.1 1744 668 tty1 Ss+ 23:05 0:00 /sbin/agetty 38400 tty1 linux
root 5271 0.0 0.1 1740 668 tty2 Ss+ 23:05 0:00 /sbin/agetty 38400 tty2 linux
root 5272 0.0 0.1 1744 668 tty3 Ss+ 23:05 0:00 /sbin/agetty 38400 tty3 linux
root 5273 0.0 0.1 1740 664 tty4 Ss+ 23:05 0:00 /sbin/agetty 38400 tty4 linux
root 5274 0.0 0.1 1740 668 tty5 Ss+ 23:05 0:00 /sbin/agetty 38400 tty5 linux
root 5275 0.0 0.1 1740 664 tty6 Ss+ 23:05 0:00 /sbin/agetty 38400 tty6 linux
root 5302 0.0 0.4 6948 2184 ? Ss 23:18 0:00 sshd: audiodaemon [priv]
1000 5306 0.0 0.2 6948 1456 ? S 23:18 0:00 sshd: audiodaemon@pts/0
1000 5307 0.0 0.3 4388 1772 pts/0 Ss 23:18 0:00 -bash
root 5315 0.0 0.4 6952 2192 ? Ss 23:18 0:00 sshd: root@pts/1
root 5320 0.0 0.3 4132 1796 pts/1 Ss+ 23:18 0:00 -bash
mpd 5387 0.1 2.3 18720 11968 ? S 23:19 0:01 /usr/bin/mpd --no-create-db /etc/mpd.conf
mpd 5388 0.2 2.8 18724 14948 ? S 23:19 0:01 /usr/bin/mpd --no-create-db /etc/mpd.conf
1000 5541 0.0 0.0 1700 300 ? Ss 23:27 0:00 /usr/bin/irexec --daemon /etc/lircrc
1000 5553 0.0 0.2 3768 1208 ? S 23:27 0:00 /bin/sh /usr/local/bin/cdda_teac.sh
1000 5554 5.3 1.2 18748 6352 ? SL 23:27 0:07 /usr/bin/mplayer -really-quiet -cache 2048 -cdrom-device /dev/optical/teac_cdrom -lircconf /etc/lircrc cdda://0:4
1000 5555 0.2 0.7 18108 4044 ? S 23:27 0:00 /usr/bin/mplayer -really-quiet -cache 2048 -cdrom-device /dev/optical/teac_cdrom -lircconf /etc/lircrc cdda://0:4
1000 5559 0.0 0.1 2616 1000 pts/0 R+ 23:29 0:00 ps aux
|
The uid 1000 belongs to the standard user on the machine with the name audiodaemon. It's the user I use for logging into the machine remotely.
Why does ps only output the uid? It works fine for the mpd user and on my laptop machine it also prints the usernames.
Any ideas?
Thanks,
liquid |
|
Back to top |
|
|
poly_poly-man Advocate
Joined: 06 Dec 2006 Posts: 2477 Location: RIT, NY, US
|
Posted: Sun Sep 30, 2007 12:25 am Post subject: |
|
|
Try combinations of ps aux and -eax (for example. Play around).
poly-p man _________________ iVBORw0KGgoAAAANSUhEUgAAA
avatar: new version of logo - see topic 838248. Potentially still a WiP. |
|
Back to top |
|
|
LiquidAcid Apprentice
Joined: 11 Sep 2006 Posts: 171
|
Posted: Wed Oct 24, 2007 9:58 pm Post subject: |
|
|
Playing around doesn't help, the problem continues to exist. |
|
Back to top |
|
|
poly_poly-man Advocate
Joined: 06 Dec 2006 Posts: 2477 Location: RIT, NY, US
|
Posted: Wed Oct 24, 2007 10:41 pm Post subject: |
|
|
please post a snippet of output from both ps -eax and ps aux.
poly-p man _________________ iVBORw0KGgoAAAANSUhEUgAAA
avatar: new version of logo - see topic 838248. Potentially still a WiP. |
|
Back to top |
|
|
LiquidAcid Apprentice
Joined: 11 Sep 2006 Posts: 171
|
|
Back to top |
|
|
|