I have set of users with root access.I want to know list of users who are all created by currently logged in user.
From below structure if user1 login to system , how to list user's like user11,user12.who are all created by user1.
RootUser
user1(Root Access)
user11(normal user created by User1)
user12(normal user created by User1)
user2(Root Access)
user21(normal user created by User2)
user22(normal user created by User2)
root
there wouldn't be any way, but if they are usingsudo
to add the users you would have a log of that. On Fedora/RH type systems it would be in/var/log/secure
– Eric Renouf Jun 11 '15 at 12:43