manoj guglani
10/07/2024, 12:05 AMlogged_in_users example on my mac (https://fleetdm.com/tables/logged_in_users?platformFilter=darwin) SELECT user, type, tty from logged_in_users WHERE tty='console'; It gives 3 logins for me 2 of type dead and one of type user . I also get one more entry of type user for another user who is not currently using the mac. Is there a way to get the currently active user?FG
10/07/2024, 11:13 AMSELECT * FROM file CROSS JOIN users USING(uid) WHERE path = '/dev/console';FG
10/07/2024, 11:15 AMusername here would be the logged in user, I have used this for years and it hasn't let me down.manoj guglani
10/07/2024, 3:38 PMmanoj guglani
10/07/2024, 11:47 PMFG
10/08/2024, 2:05 PM