$ id george
uid=1003(george) gid=1003(george) teams=1003(george)
To view all customers on the system, you may study the contents of the /and so forth/passwd file, however that would come with all of the system accounts in addition to the person account. The “ls /dwelling” command ought to offer you a listing of all dwelling directories.
$ ls /dwelling
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 “dwelling”.
$ grep dwelling /and so forth/passwd
fedora:x:1000:1000:fedora:/dwelling/fedora:/bin/bash
shs:x:1001:1001::/dwelling/shs:/bin/bash
newuser:x:1002:1002::/dwelling/newuser:/bin/bash
george:x:1003:1003::/dwelling/george:/bin/bash
lola:x:1006:1006::/dwelling/lola:/bin/bash
To examine 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 so forth/shadow file that accommodates passwords in an encrypted kind together with different information, you may run a command like this:
$ sudo grep george /and so forth/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 area)
- the variety of days because the password was final modified *
- the minimal variety of days earlier than the password could be modified once more
- the utmost variety of days earlier than the password have to 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 area
Be aware 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 permits these fields to have an extended period. The final three fields, nevertheless, are sometimes empty.
