Hi, What about using loginctl or equivalent to get the list of opened sessions ? That will be different from utmp (you won't see other logins as su, ssh, login on ttys etc.), but maybe it's sufficient for your needs ?
The recently added TLM may also help you, as the daemon is supposed to manage the user sessions :) Best regards, -- Stéphane Desneux Intel OTC - Vannes/FR gpg:1CA35726/DFA9B0232EF80493AF2891FA24E3A2841CA35726 On 12/12/2014 04:16, Zhang, Zhengguang wrote: > Hi, All > > I found that in current Tizen, when a user login, systemd will not write > the related user info into utmp file, but for multi-user, sometimes, we > need to check the logged in user info and decide whether some operations > are permitted accordingly. > > So I have some questions about it: > > > > 1. Will systemd write utmp entries for logged in users in future? > > 2. If not, what’s the reason about it and how to get the logged in > user info when necessary? > > > > Thanks in advance! > > > > Regards, > > Zhang Zhengguang > > > > _______________________________________________ > Dev mailing list > [email protected] > https://lists.tizen.org/listinfo/dev > _______________________________________________ Dev mailing list [email protected] https://lists.tizen.org/listinfo/dev
