By examining the first, third and last (seventh) fields of the /etc/passwd file, determine the userid and login shell for your username, the user root, and the user nobody (yes, there is a system user with the username "nobody"). Create simple files in your home directory, called my.uid,, root.uid,, nobody.uid, and, which contain only the appropriate information on a single line.

For example, if the user nobody's login shell were /bin/bash, the following command would easily create the appropriate file.

[student@station student]$ echo /bin/bash >
[student@station student]$ cat

I don't know how to find the UID because when I opened the passwd file the first was root, but the third and seventh fields were completely different. Any help?


The UID is the user id and it is stored in the /etc/passwd file. Below is a link to a site the explains the format of the date in the file:

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.