User and Group Management

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 2

User management

-----------------------------------------------------------------------------------
-----
1) root user uid 0 gid 0 - super user
2) system user uid 1 -999
3) local user uid 1000- 60000+ -limited access

-----------------------------------------------------------------------------------
-----

useradd
adduser
vim /etc/passwd

1)uid -user id
2)gid -group id
3)skeleton files /home/username /etc/skel
4)mail /var/spool/mail/username
5)/etc/passwd -user releted information
6)/etc/shadow -password releted information
7)/etc/group -group releted information
8)etc/gshadow -group password releted information
-----------------------------------------------------------------------------------
---
5)/etc/passwd = shows user releted information
passwd = to set password to a user
-----------------------------------------------------------------------------------
---
1.username
2.encripted password
3.uid
4.gid
5.comment
6.home directory
7.login shell
-----------------------------------------------------------------------------------
----
6)/etc/shadow =password releted information
-----------------------------------------------------------------------------------
----
1.username
2.encripted password for perticular user
3.last password changes from 1 jan 1970-(unix satndard date)
4.min days
5.max days
6.warning days
7.inactive days
8.expire
9.future use
-----------------------------------------------------------------------------------
----
7)/etc/group = group releted information
-----------------------------------------------------------------------------------
----
1.group name
2.link password
3.gid
4.group member
-----------------------------------------------------------------------------------
----
8)/etc/gpasswd = group password releted info.
-----------------------------------------------------------------------------------
----
1.group name
2.encripted password
3.group admin
4.group member

You might also like