if you are interested to contribute your LAB PROGRAM Please send mail to jkumaron@gmail.com

Find Identify User id Group id in Redhat Rhel5 Linux

In the Linux Operating system.All the users and Groups identify by separate unique Numerical Id.Linux Operating system root userid and group id as 0.user id group id zero 0 refer to unlimited access Full permission to the system.and if add any other user there userid and group id start from the 500.

[root@sourcecode~]# tail -n 6 /etc/passwd

And we can identify the users id separately.
By the following command

How to identify the userid and groupid in Linux
[root@sourcecode~]# id username
[root@sourcecode~]# id rhel5
uid=502(rhel5) gid=504(rhel5) groups=504(rhel5),503(redhat)

[root@sourcecode~]# id rhel7
uid=504(rhel7) gid=506(rhel7) groups=506(rhel7),503(redhat)
[root@sourcecode~]# id root
uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),105(pkcs11)
Default User Id and Group Id
0 refer to the root  id or Super User Id
1 to 499 refers to the Network userid
500 to 6500 refers to Normal user id

Related post