2

I am working on setting up a Ubuntu system for a class project. I am trying to show how to check for existing users. My ubuntu has no /etc/users. Waht does it use instead of /etc/users?

1
  • 5
    I've never heard of a system that has /etc/users; where did you see it? Oct 17, 2012 at 20:39

3 Answers 3

2

Regardleslly of how/where the users accounts are stored, you can view them with

getent passwd
2

/etc/passwd, which is the file that all Unix distributions use.

1

/etc/passwd

You can use cat /etc/passwd to view its contents.

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.