[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Connaître les utilisateurs loggués



Le 20/05/2014 22:11, Erwan David a écrit :
> Le 20/05/2014 21:02, fabrice régnier a écrit :
>>> J'ai installé "systemd" mais aucun exécutable "loginctl" nulle part...
>> Si tu es sous wheezy, ça pourrait s'appeler systemd-loginctl ?
>>
>> Pour rechercher un fichier sur ton poste
>> FR-PORT:/# updatedb
>> puis
>> FR-PORT:/# locate loginctl
>>
>> et là, tu vas peut-être voir que ça s'appelle systemd-loginctl
>>
>> f.
>>
> Et ça donne aussi les sessions de programmes qui n'utilisnet pas logind ?
>
>
Par exemple là je vois

bibi:~ # finger
Login     Name          Tty      Idle  Login Time   Office     Office Phone
edavid    Erwan David  *:0             May 20 19:22
edavid    Erwan David   pts/0    2:53  May 20 19:22 (:0)
edavid    Erwan David  *pts/1          May 20 19:22 (:0)
edavid    Erwan David  *pts/2      40  May 20 21:01 (:0)
edavid    Erwan David  *pts/3      15  May 20 21:39 (:0)
edavid    Erwan David   pts/4          May 20 22:13 (localhost)
bibi:~ # loginctl list-sessions
   SESSION        UID USER             SEAT           
         1       1000 edavid           seat0          
         2       1000 edavid                          

2 sessions listed.

finger me donne bien plus d'informations...


Reply to: