How to get the group details | group user details | user name and passwd details

You can get the group, group user and password detial,but it is possible only by through the root. Root has the full permission to see these details.
so login to the root account.


[root@localhost ~]# cat /etc/passwd

It will list out the user list.
user1:x:503:503::/home/user1:/bin/bash
user2:x:504:504::/home/user2:/bin/bash
user3:x:505:505::/home/user3:/bin/bash
user4:x:506:506::/home/user4:/bin/bash

[root@localhost ~]# cat /etc/group

It will show group list
Whenever you create the user it will automatically create the group.
Like if you create user1 then it will create group user1.
Then if student group has the two member (user1,user2) then it will show right sight it.
student:x:501:user1,user2
user1:x:503:
user2:x:504:
user3:x:505:
user4:x:506:
website:x:507:user3,user4


[root@localhost ~]# cat /etc/shadow
it will show user name and there password
it will show with encrypt format by through decrypt by using such software you can see the user name and there password


student:!!:14341:0:99999:7:::
studentwebsite::14341:0:99999:7:::
user1:$1$KAg6g1cm$tQOmlNQOkeIJ2KtegxocA0:14344:0:99999:7:::
user2:$1$IKgyVSFz$K8QXW729Ke134E9LCoDwt1:14344:0:99999:7:::
user3:$1$8Uc8ndGi$pjE33rETgS3uy0i8uHUqS/:14344:0:99999:7:::
user4:$1$DszU4o8z$alBYsuYHG0xAeGjlyBnl50:14344:0:99999:7:::


Related post