User Admin

  • October 2019
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View User Admin as PDF for free.

More details

  • Words: 424
  • Pages: 15
1

1

User & Group Administration

Unix/Linux is multi user and multi tasking OS Redhat Linux uses User Private Group (UPG) Scheme :User always get created with primary group One Primary Group per User When a user is created in Linux :-home directory ( /home/username) mail account

(/var/spool/mail/username)

unique UID & GID

2

2

Types of Users

TYPES TYPES OF OF USERS USERS

System System Users Users 00 499 499

Normal Normal Users Users 500 500 60,000 60,000

3

3

User and Group Administration Database Files

/etc/passwd /etc/shadow /etc/group

4

4

/etc/passwd - Database file of users

u1:x:500:500:prog:/home/u1:/bin/bash

User User

UID UID

Mask Mask Passwd Passwd

User User Comment Comment

GID GID

Shell Shell

Home Home Directory Directory

5

5

/etc/shadow

This file contains the encrypted user passwords assigned by the password binary file Password s are encrypted through DES (Data Encryption Standard ) or MD5 (Message Digest Ver. 5) Algorithm

u1: hjkadfhs8974uyh5jrt/ :13536:0:99999:7:::

User UserName Name

Encrypted Encrypted Password Password

No. No.of ofdays days Since Since1970 1970

Max Maxno. no.of of days daysto tochange change password password

Min. Min.no. no.of of days daysto tochange change password password

Warning Warning 6 Days Days

6

/etc/group

This file contains Group Name and GID of the groups

u1:x:500:sachin,tom

Group Group Name Name

GID GID

Mask Mask Members Members of of Passwd Passwd that that Group Group

7

7

User Creation

Creating CreatingaaUser User [root@comp1 ~]#useradd [root@comp1 ~]#useradd <username> <username>

Options : -u

- UID

-g

- Primary group name/ GID

-o

- Override

-G

- Secondary group

-c

- Comment

-d

- Home directory

-s

- Shell 8

8

User Modification

Modifying Modifyingaa User User [root@comp1 ~]#usermod [root@comp1 ~]#usermod <username> <username>

Options : -l

- Change login name

-L

- Lock the account

-U

- Unlock the account

9

9

User Deletion

Deleting DeletingaaUser User [root@comp1 ~]#userdel [root@comp1 ~]#userdel <username> <username>

Options : -r

- recursively

10

10

Group Creation

Creating CreatingaaGroup Group [root@comp1 ~]#groupadd [root@comp1 ~]#groupadd

Options : -g

- GID

-o

- override

11

11

Group Modification

Modifying ModifyingaaGroup Group [root@comp1 ~]#groupmod [root@comp1 ~]#groupmod

Options : -g

- GID

-o

- Override

-n

- To change the group name

12

12

Group Deletion

Deleting DeletingaaGroup Group [root@comp1 ~]#groupdel [root@comp1 ~]#groupdel

13

13

Changing user setting

Changing ChangingUser Usersetting setting [root@comp1 ~]#chage <username> [root@comp1 ~]#chage <username>

14

14

Group setting

Group Groupsetting setting [root@comp1 ~]#gpasswd [root@comp1 ~]#gpasswd

Options : -a

- add a user

-d

- Delete a user from group

-M

- Creating multiple members

15

15

Related Documents

User Admin
October 2019 22
Admin
June 2020 30
Admin
November 2019 57
Admin
May 2020 49
Admin
December 2019 59
Admin
May 2020 26