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.


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)

  • If the users are actually root there wouldn't be any way, but if they are using sudo 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

There is no record or log kept of which user was responsible for creating each user. Technically, all users are created by root anyway.

  • Thanks for your answer.In my case if I have multiple users with root access,then is there way to find user(rootaccess) who created particular user(Normal) ?. – sunleo Jun 11 '15 at 12:22
  • Yes, I understood that from your question. – Celada Jun 11 '15 at 12:23
  • Again thanks for reply,I commented without reading carefully. – sunleo Jun 11 '15 at 12:24

Type the command in terminal given below:

#lslogins -u

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.