$ id george
uid=1003(george) gid=1003(george) teams=1003(george)
To view all customers on the system, you possibly can study the contents of the /and many others/passwd file, however that would come with all of the system accounts in addition to the person account. The “ls /house” command ought to provide you with an inventory of all house directories.
$ ls /house
cookie dumdum fedora george lola newuser shs
You too can get particulars on person account utilizing a command like this that selects entries that comprise the phrase “house”.
$ grep house /and many others/passwd
fedora:x:1000:1000:fedora:/house/fedora:/bin/bash
shs:x:1001:1001::/house/shs:/bin/bash
newuser:x:1002:1002::/house/newuser:/bin/bash
george:x:1003:1003::/house/george:/bin/bash
lola:x:1006:1006::/house/lola:/bin/bash
To verify which teams a person belongs to, use the teams command.
$ teams shs
shs : shs wheel techs
If you wish to take a look at the /and many others/shadow file that incorporates passwords in an encrypted kind together with different knowledge, you possibly can run a command like this:
$ sudo grep george /and many others/shadow
[sudo] password for shs:
george:$y$j9T$igg/m6Ixl7kvW/i7mPP891$oq/zlqU8DGOPwnGbnvoVaaDmDbspK/R92XnrEKcPKk0:20033:0:99999:7:::
The fields on this colon-separated file embrace:
- the username
- the encrypted password (that very lengthy discipline)
- the variety of days because the password was final modified *
- the minimal variety of days earlier than the password may be modified once more
- the utmost variety of days earlier than the password should be modified
- the variety of days earlier than password expiration that the person is warned that their password will expire
- the variety of days after password expiration earlier than the account is locked (inactive interval)
- the date the password expires *
- a reserved discipline
Notice that the third and eighth fields are expressed because the variety of days because the Unix “epoch” (Epoch time relies on the variety of seconds since 00:00:00 on January 1, 1970). This enables these fields to have an extended period. The final three fields, nonetheless, are sometimes empty.