Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

share|improve this question
3  
I've never heard of a system that has /etc/users; where did you see it? –  Keith Thompson Oct 17 '12 at 20:39
add comment

3 Answers

/etc/passwd

(Which is the file that all Unix distributions use)

share|improve this answer
add comment

/etc/passwd

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

share|improve this answer
add comment

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

getent passwd
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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