101 4.5 manage file permissions and ownership
TRANSCRIPT
Core
Lin
ux fo
r Re
d H
at a
nd F
edor
a le
arni
ng u
nder
GN
U F
ree
Doc
umen
tatio
n Li
cens
e -
Copy
left
(c) A
cáci
o O
livei
ra 2
012
Ev
eryo
ne
is p
erm
itte
d to
co
py
and
dis
trib
ute
verb
atim
co
pie
s o
f th
is li
cen
se d
ocu
me
nt,
cha
ngin
g is
allo
wed
Linux Essenciais and System Administration
Core
Lin
ux fo
r Re
d H
at a
nd F
edor
a le
arni
ng u
nder
GN
U F
ree
Doc
umen
tatio
n Li
cens
e -
Copy
left
(c) A
cáci
o O
livei
ra 2
012
Ev
eryo
ne
is p
erm
itte
d to
co
py
and
dis
trib
ute
verb
atim
co
pie
s o
f th
is li
cen
se d
ocu
me
nt,
cha
ngin
g is
allo
wed
Key Knowledge Areas
Manage access permissions on regular and special files as well as directories. Use access modes such as suid, sgid and the sticky bit to maintain security. Know how to change the file creation mask. Use the group field to grant file access to group members.
Devices, Linux Filesystems, Filesystem Hierarchy Standard
Manage file permissions and ownership
Terms and Utilities
chmod umask chown chgrp
2
Core
Lin
ux fo
r Re
d H
at a
nd F
edor
a le
arni
ng u
nder
GN
U F
ree
Doc
umen
tatio
n Li
cens
e -
Copy
left
(c) A
cáci
o O
livei
ra 2
012
Ev
eryo
ne
is p
erm
itte
d to
co
py
and
dis
trib
ute
verb
atim
co
pie
s o
f th
is li
cen
se d
ocu
me
nt,
cha
ngin
g is
allo
wed
Manage file permissions and ownership
Users, groups, superuser
3
Core
Lin
ux fo
r Re
d H
at a
nd F
edor
a le
arni
ng u
nder
GN
U F
ree
Doc
umen
tatio
n Li
cens
e -
Copy
left
(c) A
cáci
o O
livei
ra 2
012
Ev
eryo
ne
is p
erm
itte
d to
co
py
and
dis
trib
ute
verb
atim
co
pie
s o
f th
is li
cen
se d
ocu
me
nt,
cha
ngin
g is
allo
wed
Manage file permissions and ownership
groups
4
Core
Lin
ux fo
r Re
d H
at a
nd F
edor
a le
arni
ng u
nder
GN
U F
ree
Doc
umen
tatio
n Li
cens
e -
Copy
left
(c) A
cáci
o O
livei
ra 2
012
Ev
eryo
ne
is p
erm
itte
d to
co
py
and
dis
trib
ute
verb
atim
co
pie
s o
f th
is li
cen
se d
ocu
me
nt,
cha
ngin
g is
allo
wed
Manage file permissions and ownership
Security levels
5
Core
Lin
ux fo
r Re
d H
at a
nd F
edor
a le
arni
ng u
nder
GN
U F
ree
Doc
umen
tatio
n Li
cens
e -
Copy
left
(c) A
cáci
o O
livei
ra 2
012
Ev
eryo
ne
is p
erm
itte
d to
co
py
and
dis
trib
ute
verb
atim
co
pie
s o
f th
is li
cen
se d
ocu
me
nt,
cha
ngin
g is
allo
wed
Manage file permissions and ownership
Permissions – /etc/passwd
6
Core
Lin
ux fo
r Re
d H
at a
nd F
edor
a le
arni
ng u
nder
GN
U F
ree
Doc
umen
tatio
n Li
cens
e -
Copy
left
(c) A
cáci
o O
livei
ra 2
012
Ev
eryo
ne
is p
erm
itte
d to
co
py
and
dis
trib
ute
verb
atim
co
pie
s o
f th
is li
cen
se d
ocu
me
nt,
cha
ngin
g is
allo
wed
Manage file permissions and ownership
Directory and File permissions
7
Core
Lin
ux fo
r Re
d H
at a
nd F
edor
a le
arni
ng u
nder
GN
U F
ree
Doc
umen
tatio
n Li
cens
e -
Copy
left
(c) A
cáci
o O
livei
ra 2
012
Ev
eryo
ne
is p
erm
itte
d to
co
py
and
dis
trib
ute
verb
atim
co
pie
s o
f th
is li
cen
se d
ocu
me
nt,
cha
ngin
g is
allo
wed
Manage file permissions and ownership
chmod
8
Core
Lin
ux fo
r Re
d H
at a
nd F
edor
a le
arni
ng u
nder
GN
U F
ree
Doc
umen
tatio
n Li
cens
e -
Copy
left
(c) A
cáci
o O
livei
ra 2
012
Ev
eryo
ne
is p
erm
itte
d to
co
py
and
dis
trib
ute
verb
atim
co
pie
s o
f th
is li
cen
se d
ocu
me
nt,
cha
ngin
g is
allo
wed
Manage file permissions and ownership
chmod
9
Core
Lin
ux fo
r Re
d H
at a
nd F
edor
a le
arni
ng u
nder
GN
U F
ree
Doc
umen
tatio
n Li
cens
e -
Copy
left
(c) A
cáci
o O
livei
ra 2
012
Ev
eryo
ne
is p
erm
itte
d to
co
py
and
dis
trib
ute
verb
atim
co
pie
s o
f th
is li
cen
se d
ocu
me
nt,
cha
ngin
g is
allo
wed
Manage file permissions and ownership
chmod symbolic codes
10
Core
Lin
ux fo
r Re
d H
at a
nd F
edor
a le
arni
ng u
nder
GN
U F
ree
Doc
umen
tatio
n Li
cens
e -
Copy
left
(c) A
cáci
o O
livei
ra 2
012
Ev
eryo
ne
is p
erm
itte
d to
co
py
and
dis
trib
ute
verb
atim
co
pie
s o
f th
is li
cen
se d
ocu
me
nt,
cha
ngin
g is
allo
wed
Manage file permissions and ownership
chmod octal commands
11
Core
Lin
ux fo
r Re
d H
at a
nd F
edor
a le
arni
ng u
nder
GN
U F
ree
Doc
umen
tatio
n Li
cens
e -
Copy
left
(c) A
cáci
o O
livei
ra 2
012
Ev
eryo
ne
is p
erm
itte
d to
co
py
and
dis
trib
ute
verb
atim
co
pie
s o
f th
is li
cen
se d
ocu
me
nt,
cha
ngin
g is
allo
wed
Manage file permissions and ownership
umask
12
Core
Lin
ux fo
r Re
d H
at a
nd F
edor
a le
arni
ng u
nder
GN
U F
ree
Doc
umen
tatio
n Li
cens
e -
Copy
left
(c) A
cáci
o O
livei
ra 2
012
Ev
eryo
ne
is p
erm
itte
d to
co
py
and
dis
trib
ute
verb
atim
co
pie
s o
f th
is li
cen
se d
ocu
me
nt,
cha
ngin
g is
allo
wed
Manage file permissions and ownership
chown
13
Core
Lin
ux fo
r Re
d H
at a
nd F
edor
a le
arni
ng u
nder
GN
U F
ree
Doc
umen
tatio
n Li
cens
e -
Copy
left
(c) A
cáci
o O
livei
ra 2
012
Ev
eryo
ne
is p
erm
itte
d to
co
py
and
dis
trib
ute
verb
atim
co
pie
s o
f th
is li
cen
se d
ocu
me
nt,
cha
ngin
g is
allo
wed
Manage file permissions and ownership
chgrp
14