reassign 341374 procps
retitle 341374 ps doesn't show usernames long then 8 characters
thanks,
On Mon, Dec 19, 2005 at 11:12:49PM +0100, Jérôme Warnier wrote:
> Le lundi 19 décembre 2005 à 19:48 +0100, Sjoerd Simons a écrit :
> > On Wed, Nov 30, 2005 at 10:37:11AM +0100, Jerome Warnier wrote:
> > >
> > > I have absolutely no idea why, but the user running dbus-daemon-1 is
> > > shown as "106" by ps while all other processes are shown with a
> > > alphanumerical user.
> > >
> > > Example:
> > > 106 8872 0.0 0.4 2184 808 ? Ss 10:10 0:00
> > > /usr/bin/dbus-daemon-1 --system
> > >
> > >
> > > User "106" is "messagebus" in /etc/passwd (and I'm not using any
> > > other NSS source.
> >
> > What does ``getent passwd 104'' say ?
> I assume you meant ``getent passwd 106'':
>
> messagebus:x:106:106::/var/run/dbus:/bin/false
Yes. Well i digged a little around, the real problem is that the widht of the
user field in ps is statically set to 8 characters. In case of messagebus, the
username doesn't fit into that so it just prints the uid.
Sjoerd
--
When Alexander Graham Bell died in 1922, the telephone people interrupted
service for one minute in his honor. They've been honoring him intermittently
ever since, I believe.
-- The Grab Bag