In a Ubuntu 14.04 system, who has the following output:
user1 :0 2016-05-02 14:49 (:0)
user1 pts/4 2016-05-02 15:10 (:0)
So apparently just the pts/4 is used. But, for example, sudo fuser /dev/pts/1 produces as output 2573, which is cupsd. So, that terminal is used too, by a process.
In order to use a terminal, one has to make a login. user1 has logged in;
- did processes like
cupsmake a login as well? - If yes, what is the difference between a regular user login and a process login? It does not appear in
who.
xtermwindow gets a terminal. But you just login once on the display. – Barmar May 02 '16 at 22:05/var/run/utmpis writable by theutmpgroup, and these programs are set-GID to that group, so they can add update it. – Barmar May 02 '16 at 23:39/usr/bin/gnome-terminalbelong to the userrootand to the grouproot: I didn't see they belong to theutmpgroup. Anyway, I made a more specific question here. – BowPark May 09 '16 at 11:11utmpgroup is for programs that don't need any other special privileges. – Barmar May 10 '16 at 16:47