number of users: a solution

Derek Broughton news at pointerstop.ca
Wed Aug 24 14:39:57 UTC 2005


Peter Garrett wrote:

> On Tue, 23 Aug 2005 22:15:56 +0200
> Sebastien Braun <sebb at yellowhippy.org> wrote:
> 
>> who and users do _not_ show you who is currently logged in. They are just
>> programs for formatting /var/run/utmp in a readable way. They can also
>> show you other files, namely /var/log/wtmp, which records past utmp
>> entries.
> 
> peter at prospero:~$ sudo chown root:utmp /usr/bin/urxvt
> peter at prospero:~$ ls -l /usr/bin/urxvt
> -rwxr-xr-x  1 root utmp 180776 2005-03-21 21:51 /usr/bin/urxvt
> 
> and
> 
> peter at prospero:~$ sudo chmod g+s /usr/bin/urxvt
> peter at prospero:~$ ls -l /usr/bin/urxvt
> -rwxr-sr-x  1 root utmp 180776 2005-03-21 21:51 /usr/bin/urxvt
> 
> Now urxvt shows up and increments in the same manner as aterm.... !!
> 
> I haven't tried this with konsole but I imagine something similar would do
> the trick

Thanks Peter & Sebastien - I'm not sure I really care that konsole _doesn't_
report new users for each session, but I am glad I understand what's going
on now :-)
-- 
derek





More information about the ubuntu-users mailing list