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
cups
make 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
.
xterm
window gets a terminal. But you just login once on the display./var/run/utmp
is writable by theutmp
group, and these programs are set-GID to that group, so they can add update it.utmp
group is for programs that don't need any other special privileges.