Professional Documents
Culture Documents
F ch,'cot{space)/sYsroot/
F touch(space)/.autorela bel
) exit
Hostname
Ping example.com
1) lrletwork SetuP:
2) Configure Selinux?
. I vim(space) /etc/selinux/config
: > SELINUX=enforcing
\--
, 'F enter
/ > enter
I > +100t\4
Fw
I
l
\
II
) fdisk -l
4) Create a new 150M8 swap partitlon f
ls.?
F free -m
F fdisk -l
) fdisk (space)/dev^db
l
I
!
Ft
) swapon(space) -a
F vim(space) /etc/fstab
* Verification:
) free -m
F fdisk -l
5) Create a repositary for
F vim /etc/yum.repos.d/iant.repo
\
\
F gpgcheck=0
) yum repolist
6) create the fcrl!owing user,group and group memberships:
o A Group named sysgrp
to A user andrew who belongs to sysgrp as a secondary group
o A user susan also belongs to sysgrp as a secondary group
o A user sarah who does not have access to an interactive sheil on
system and who not a member of sysgrp
o Andrewrsusanrsarah password=,rpostrolt,,
* Verification:
F cd /redhat/sysgrp
) touch xyz.txt i
) vim /etc/yum.repos.d/rhca.repo
I
? I
) vim /etc/auto.home
classroom.example.com ?
F yum install chrony
F vim /etc/chrony.conf
* Verification: !
1
(,
';
\
i
F
I
I
chrcnyc sources -V (check reach level=17)
13) Copy the file /etc/fstsb to lvarltmp configure the permlssion of
1
I
,
) cci /var/tmp
F fdrsk /dev/vdb
I
I
F +802M
Ft
,F partx(space) /dev/vdb
i
l
I
F vgcreate (space) -s (space)16M(space) datacontainer(space)
/dev/vdb3
) vgdisplay (check groupname, size)
(spaceidataconta iner
\F tntt b
14) Resize the logical voluine, logica!-data and it filesystem to 400M8.
Make sure that thc filesystem contents rernalrr intact.
> {if i:5:'.:tl';-Th l
t Verification:
15) Add the user tatusan wlth usenid 2985. Find the fiie which ownecl
by user julice and copy the fire into /root/findresults directory.
I
I
l8)Search ttre string sarah in the /etc/passwd file and save the output in
/root/lines.
F grep (space) sarah(space) /etc/passwd (space) >(space) /root/lines
I
I
9 ) TA*: i:7 f-t'". (, )1r,1.,6,.. ,,v- ,t-it)ij,/- r..o",x g;rr_r.0. *, q (-1rr '1 1 .i ,. i:
I
I
I
i I