0% found this document useful (0 votes)
77 views7 pages

RHCSA NODE1 Task

Node task

Uploaded by

rj25r8r9bm
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
77 views7 pages

RHCSA NODE1 Task

Node task

Uploaded by

rj25r8r9bm
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 7
4 TP confiquxation- : ee oe ip adore “show [Lip a ele nmcli_connechon show nmcli_connection_modity connection. name! ipV.addresses 172.25 . 260. peiae 4] amcli_connecrion modify“ connection-name __ ay gus 172. 25.250. 254 |nmaclt_connection_modity " connection -name” ipV4.dns 172.28. 254, 254 oe nmai_connection modify" “connection name” ipv4.metnod_manval __ — nmclt_ connection up * connection-name” _Configuation of Yum repos= Le As _lete |yorn.repos.d - ae View liste of Files_in this path poe m |b lo Wy i © cd_letc lyum. repos. _ divectory. _ at oe ving filename, vepo ___— seen ral lenabled= 4 = http:ll content. ‘example .com | rhel 8.0]. Xx 86_64/ dvd_| Base 0s _ __|name = alc gpadeck =D wo i st ——_|le Ser zl) content. com [rhe 8.9] _ [Server 2 X86 _ 64 | dvd /AppStream enabled = 1 QPacheck = 0 ce name = YZ yam Ist /yum xepolist | Http Fort= Labeling - 7 +l ssh _ Sstrvera ae lab netseaydity— ports start ae *|SuU_ — aan = systemctl_stotus httpd. service. To _check_it the service _is achve or inactive systemctl_is- active httpal ee sealert_ -a_ /vay/loq /audit /audit.log ae tw je ly |e To check the error (warnings) , solution is also displayed. se Semanage port -4£ | grep httpd - 1+ bP To cheek it the port is added in “the list = £1 |b lo semonage port -a —t http port_t -p ttp 8? Add port 82 systemct| enable —-now hited. service }On th i: just enabl eee -_.systemct| is-achive Wttpd — OD jw _systemcti Is- enabled _httpal i | Fiveraall= rad -- permanent ~-add-port = 82/4 top -tiveroall- cmd --veload | cot _/vax [rorow tm index. nitval, 1 — Curl http: || severa.|alo. example. com: $2. "pasted natasha — | cat letc| passwd = = 4 a4 2 3 + 5. vseradd harry oo & t. BIA 4 passa hayry. : = “| cot lete | passved = : "| usexmod -aq_sysadms natasha ss 4p.cat letc group = _useamod _-a4 sysadms harry - Wh cat ete Igroup — 12, ysevadd_sava_ oe ee | passved sarah - = useymed -s /Sbin|nologin sarah ee | cot_letcl passvod 1S) 5. Crontal - | crontab -€ 2 */4 * a * % logger " €X200 in preqiess. — min ant dare Mon Weekday, _vomuand. = gi 20 17 3: tail {vay llog Lea Cron , sen aL .0tr - Mon echo” Hello” coe be mikdty_/home | mn 2 ts =Ad /home oa es i Jnome|managey. SI As an [home Iwagmagte i S. chmod 2770 _/home Imanager = 7, Synchronizarion_ot +t of time [NTP Service] _ I timedatecth a vic ine 2 vimn__lete/ chrony. cont coe ie 93) sexver__Classwoom.¢xample. com iourst : start chyony¢ 5 eedatect! 8 Access Contyo) list [ACL] - t_¢p _letelfstab ax | tmp] 2 gettacl /var/tmp/ fstab & Cat /etc! passvad 4 usevadd saan. 5 Passwad sovah - 6: setfacl_=m_vi sarah: Y= Ivarl-tenp | #stae 7. getfacl /var/tmp/ fstab 8 setfoc| —m_v: sharey + - > — Atom | /vaxl / b hen ———lh.getfacl_/vay tmp itstaa ; Managing. user - — | @od_/etc/ passwd _ » as usevadd.-U 9112 ooby _cat_/etc/passvod | It the question ts +o roe, Me. oa ae then. seusermod -v" Command , otherwise give | assign. id to the _usey at the tiwe ot crtation,_ lo, Final Command= Lmkdir _/voot |harry - Files. 21 tind | -vser_havvy = exec pik /root |harry- “files \3 c = H © “Pattern inding= - Hl grep ‘en’ lusy/share | dict lroords Si root I foes Backup | archive — toy_-cyjf _/root /back kyp-tor. bo22 jus! local i ls /root/. tov _-cvIt_ lool | oacyp. tay, HZ luse Hocal : ie “= Sales | | SMF bo |v |= bs As [oot | tar -cvzt_brool /oacup. tor. gz hasy Jlocal ids ns . 4 2% lab _netstorage - avtots stave a | ssh rool @ sevvera____ —_— _ dy ym_install outs = — Flim letclavt.mnaater.dl [divect. auto's a PF —_ lecclaute. dive 4 vim_letclavto.dived - _ by lexternal _ =r, sync, -totype pe. ___ server. Lalo . example. com + shares f | Te ee /di ives | ble coe ooat eee ——i] coh wnatiblsen — _ @) Us -4 _Zextemal a E W naivecr + putts yum install autos. = oe vim _lete Lauto. master. d / Lb. Jinternal__/ete / avty. ind — tie a) vim _leke Lato. indiv oe tr, sync, tetyp= nfs “ sevverlo. | ‘lab. él eystemett_reooot 4] ssn rook @servera él sy = opevatoy. die -A/h pp) ts -4__/internal /wesl™ a

You might also like