0% found this document useful (0 votes)
31 views21 pages

Module 03 - Administrative Tasks

This document outlines the objectives of Module 03 which are: 1) Manage user and group accounts and related system files; 2) Automate system administration tasks by scheduling jobs using cron and at; 3) Handle localization and internationalization. It then provides details on managing user accounts, groups, and related commands. It also describes using cron to schedule recurring tasks and at to schedule one-time tasks. Finally, it defines internationalization as making software adaptable to different languages and localization as adapting software for a specific region.

Uploaded by

Đặng Đức
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views21 pages

Module 03 - Administrative Tasks

This document outlines the objectives of Module 03 which are: 1) Manage user and group accounts and related system files; 2) Automate system administration tasks by scheduling jobs using cron and at; 3) Handle localization and internationalization. It then provides details on managing user accounts, groups, and related commands. It also describes using cron to schedule recurring tasks and at to schedule one-time tasks. Finally, it defines internationalization as making software adaptable to different languages and localization as adapting software for a specific region.

Uploaded by

Đặng Đức
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 21

Module 03

Administrative Tasks
n
C

I
P
L

i
t
er

io
t
a
c
fi

a
x
k
u
b
.
n
ww
Li
w

//
:
tp
t
h

d
a
c

.c o

Objectives

Objective 1: Manage User and Group Accounts and


Related System Files
Objective 2: Automate System Administration Tasks
by
n
io
t
Scheduling Jobs
a
c
Objective 3: Localization and Internationalization
it fi com
r d.
e
C aca
x bk
u
.
n
w
i
L ww

I
P
L

//
:
tp
t
h

Manage User and Group Accounts and Related


System Files

Managing user accounts is an important aspect of running


a Linux system
User Accounts and the Password File
When a new user account is added to a Linux system, an entry is
n in
added to a list of users in the password file, which is stored
o
i
t
/etc/passwd
a
c
fi everyone
The password file is in plain text and is readabletiby
m on
o
c
r d.
the system.
e
a
C
c
Each line in the password file contains information:
x
ka

I
P
L

u
b
.
n
Li www
//
:
tp
t
h

Manage User and Group Accounts and Related


System Files

Groups and the Group File


Groups are defined in the file /etc/group
Like the passwd file, the group file contains colon-separated fields:

Group name: Each group must have a unique name


Group password
Group ID: Each group requires a unique GID
Group member list: list of group members by username

I
P
L

i
t
er

n
o
i
t
a
c
fi

a
x
k
u
b
.
n
ww
Li
w

//
:
tp
t
h

d
a
c

.c o

Manage User and Group Accounts and Related


System Files

The Shadow Password and Shadow Group Systems


Encrypted passwords must be secure from all users on the system
To do this, the encrypted password is moved to a new file that
shadows the password file line for line ( /etc/shadow )
loginID:password:lastchg:min:max:warn:inactive:expire
on :

i
t
er

i
t
a
c
fi

a
x
k
u
b
.
n
ww
Li

d
a
c

.c o

I
/wthe encrypted
/
The first two fields contain the username
and
:
P t tp
L
passwords. The remaining fields containh optional additional
information on password aging information.

Manage User and Group Accounts and Related


System Files

Group passwords and shadow groups


Just as user accounts listed in /etc/passwd are protected by
encrypted passwords,groups listed in /etc/group can also be
protected by passwords
A group password can be used to allow access to a group
by a
n
io
user account that is not actually a member of the group
t
a
c
To protect against such attacks, passwords in /etc/group
i
can be
f
m
i
o
t
shadowed.
c
r
.
e
C acad
The protected passwords are stored in /etc/gshadow

I
P
L

x bk
u
.
n
w
i
w
L
w

//
:
tp
t
h

Manage User and Group Accounts and Related


System Files

User and Group Management Commands


useradd

I
P
L

i
t
er

n
o
i
t
a
c
fi

a
x
k
u
b
.
n
ww
Li
w

//
:
tp
t
h

d
a
c

.c o

Manage User and Group Accounts and Related


System Files

User and Group Management Commands


useradd

I
P
L

i
t
er

n
o
i
t
a
c
fi

a
x
k
u
b
.
n
ww
Li
w

//
:
tp
t
h

d
a
c

.c o

Manage User and Group Accounts and Related


System Files

User and Group Management Commands

I
P
L

i
t
er

n
o
i
t
a
c
fi

a
x
k
u
b
.
n
ww
Li
w

//
:
tp
t
h

d
a
c

.c o

Manage User and Group Accounts and Related


System Files

User and Group Management Commands

I
P
L

i
t
er

n
o
i
t
a
c
fi

a
x
k
u
b
.
n
ww
Li
w

//
:
tp
t
h

d
a
c

.c o

Manage User and Group Accounts and Related


System Files

User and Group Management Commands

I
P
L

i
t
er

n
o
i
t
a
c
fi

a
x
k
u
b
.
n
ww
Li
w

//
:
tp
t
h

d
a
c

.c o

Manage User and Group Accounts and Related


System Files

User and Group Management Commands

I
P
L

i
t
er

n
o
i
t
a
c
fi

a
x
k
u
b
.
n
ww
Li
w

//
:
tp
t
h

d
a
c

.c o

Manage User and Group Accounts and Related


System Files

User and Group Management Commands

I
P
L

i
t
er

n
o
i
t
a
c
fi

a
x
k
u
b
.
n
ww
Li
w

//
:
tp
t
h

d
a
c

.c o

Manage User and Group Accounts and Related


System Files

User and Group Management Commands

I
P
L

i
t
er

n
o
i
t
a
c
fi

a
x
k
u
b
.
n
ww
Li
w

//
:
tp
t
h

d
a
c

.c o

Manage User and Group Accounts and Related


System Files

User and Group Management Commands

I
P
L

i
t
er

n
o
i
t
a
c
fi

a
x
k
u
b
.
n
ww
Li
w

//
:
tp
t
h

d
a
c

.c o

Objective 2: Automate System Administration Tasks by


Scheduling Jobs

Using cron
The cron facility consists of two programs:
Crond: This is the cron daemon, which is the process that executes
your instructions
Crontab: This is the cron table manipulation program

n
o
i all crontab
The cron daemon wakes up every minute and examines
t
ca
files, executing any commands scheduled for thatfitime.
m
i
o
t
c
r d.
e
C aca
x bk
u
.
n
w
i
w
L
w
I
//
:
P
t tp
L
h

Objective 2: Automate System Administration Tasks by


Scheduling Jobs

Using cron

I
P
L

i
t
er

n
o
i
t
a
c
fi

a
x
k
u
b
.
n
ww
Li
w

//
:
tp
t
h

d
a
c

.c o

Objective 2: Automate System Administration Tasks by


Scheduling Jobs

Using at
Execution of commands on a regular, periodic schedule
The at facility accepts commands from standard input or from a file.

I
P
L

i
t
er

n
o
i
t
a
c
fi

a
x
k
u
b
.
n
ww
Li
w

//
:
tp
t
h

d
a
c

.c o

Objective 2: Automate System Administration Tasks by


Scheduling Jobs

Using at

I
P
L

i
t
er

n
o
i
t
a
c
fi

a
x
k
u
b
.
n
ww
Li
w

//
:
tp
t
h

d
a
c

.c o

Objective 2: Automate System Administration Tasks by


Scheduling Jobs

I
P
L

i
t
er

n
o
i
t
a
c
fi

a
x
k
u
b
.
n
ww
Li
w

//
:
tp
t
h

d
a
c

.c o

Objective 3: Localization and Internationalization

Internationalization is the process of designing a software


application so that it can be adapted to various languages
and regions without engineering changes.
Localization is the process of adapting internationalized
n locale
software for a specific region or language by adding
o
i
t
a
specific components and translating text.
c
it fi com
r d.
e
C aca
x bk
u
.
n
w
i
w
L
w
I
//

LP

:
tt p
h

You might also like