You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
x – Encrypted password is stored in the /etc/shadow file.
618
+
131 – UID (user ID number)
619
+
137 – Primary GID (group ID number)
620
+
vnstat daemon – GECOS. It may includes user’s full name (or application name, if the account is for a program), building and room number or contact person, office telephone number, home telephone number and any other contact information.
621
+
/var/lib/vnstat – Home directory for the user.
622
+
/usr/sbin/nologin – Login shell for the user. Pathnames of valid login shells comes from the /etc/shells file.
611
623
612
624
625
+
********************
626
+
Of course we can use pagers such as more/less commands as follows to view the /etc/passwd file:
627
+
$ more /etc/passwd
613
628
629
+
it will show how more pages with content are left
614
630
631
+
$ less /etc/passwd
615
632
633
+
you can access the file using up and down arrow
616
634
635
+
*********************
636
+
637
+
limit outputs using the head command and tail command as follows:
638
+
tail -5 /etc/passwd -- show last 5 users
639
+
head -5 /etc/passwd -- shows top 5 users
640
+
641
+
642
+
********************
643
+
644
+
To list only usernames type the following awk command:
0 commit comments