{"id":510,"date":"2018-06-03T20:57:53","date_gmt":"2018-06-03T20:57:53","guid":{"rendered":"https:\/\/d1m0.com\/?p=510"},"modified":"2018-09-09T18:59:43","modified_gmt":"2018-09-09T18:59:43","slug":"lpic-1-system-security110-1","status":"publish","type":"post","link":"https:\/\/d1m0.com\/?p=510","title":{"rendered":"[LPIC-1] System Security(110.1)"},"content":{"rendered":"<p><strong>\u0422\u043e\u0437\u0438 \u0443\u0440\u043e\u043a \u043f\u043e\u043a\u0440\u0438\u0432\u0430 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u0430 \u043e\u0442 LPIC-1 110.1, \u043d\u0443\u0436\u0435\u043d \u0437\u0430 \u0438\u0437\u043f\u0438\u0442 102-400.<\/strong><br \/>\n\u0423\u0440\u043e\u043a\u0430 \u043f\u043e\u043a\u0440\u0438\u0432\u0430 \u0441\u043b\u0435\u0434\u043d\u0438\u0442\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u0438 \u0438 \u0444\u0430\u0439\u043b\u043e\u0432\u0435:<br \/>\n<em><strong>1.<\/strong><br \/>\nsu<br \/>\nsudo<br \/>\n\/etc\/sudoers<br \/>\npasswd<br \/>\n<strong>2.<\/strong><br \/>\nfind<br \/>\nfuser<br \/>\nlsof<br \/>\nnmap<br \/>\nchage<br \/>\nusermod<br \/>\nulimit<br \/>\n<strong>3.<\/strong><br \/>\nwho, w, last<\/em><\/p>\n<p><strong>1.<\/strong><br \/>\n\u041a\u043e\u0433\u0430\u0442\u043e \u0441\u0442\u0430\u0432\u0430 \u0432\u044a\u043f\u0440\u043e\u0441 \u0437\u0430 \u0441\u0438\u0433\u0443\u0440\u043d\u043e\u0441\u0442 \u0435\u0434\u043d\u043e \u043e\u0442 \u043d\u0430\u0439-\u0432\u0430\u0436\u043d\u0438\u0442\u0435 \u043d\u0435\u0449\u0430 \u0435 \u0434\u0430 \u0441\u0435 \u0438\u0437\u0431\u044f\u0433\u0432\u0430 \u0434\u0438\u0440\u0435\u043a\u0442\u043d\u043e\u0442\u043e \u0432\u043b\u0438\u0437\u0430\u043d\u0435 \u043a\u0430\u0442\u043e root \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0442\u0430, \u043e\u0441\u0432\u0435\u043d \u043a\u043e\u0433\u0430\u0442\u043e \u0435 \u043d\u0430\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u043d\u043e. \u041a\u043e\u0433\u0430\u0442\u043e \u0432\u0438 \u043f\u043e\u0442\u0440\u044f\u0431\u0432\u0430 \u0434\u043e\u0441\u0442\u044a\u043f \u0434\u043e root \u0430\u043a\u0430\u0443\u043d\u0442\u0430(\u043d\u0430\u043f\u0440. \u0437\u0430 \u0434\u0430\u0434\u0435\u043d\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0430) \u0435 \u043f\u0440\u0435\u043f\u043e\u0440\u044a\u0447\u0438\u0442\u0435\u043b\u043d\u043e \u0434\u0430 \u0441\u0435 \u0434\u043e\u0441\u0442\u044a\u043f\u0438 \u0447\u0440\u0435\u0437 su \u0438\u043b\u0438 sudo \u043a\u043e\u043c\u0430\u043d\u0434\u0438\u0442\u0435.<br \/>\n<!--more--><\/p>\n<p><strong>Su<\/strong><\/p>\n<p>\u0417\u0430 \u0434\u0430 \u0434\u043e\u0441\u0442\u044a\u043f\u0438\u043c \u0434\u0440\u0443\u0433 \u043f\u0440\u043e\u0444\u0438\u043b \u0441\u0435 \u0438\u0437\u043f\u043e\u043b\u0437\u0432\u0430 &#8220;su&#8221; \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u0442\u0430:<\/p>\n<blockquote><p>[boyan@boyanLaptop home]$  su root<br \/>\nPassword:<br \/>\n[root@boyanLaptop home]$\n<\/p><\/blockquote>\n<p>\u0422\u043e\u0432\u0430 \u0432\u0438 \u0434\u0430\u0432\u0430 &#8220;non-login&#8221; shell \u0437\u0430 \u0434\u0430\u0434\u0435\u043d\u0438\u044f \u0430\u043a\u0430\u0443\u043d\u0442. \u0422\u043e\u0432\u0430 \u043e\u0437\u043d\u0430\u0447\u0430\u0432\u0430, \u0447\u0435 \u043d\u044f\u043c\u0430\u0442\u0435 \u0434\u043e\u0441\u0442\u044a\u043f \u0434\u043e \u0442\u0435\u0445\u043d\u0438\u0442\u0435 \u043f\u0440\u043e\u043c\u0435\u043d\u043b\u0438\u0432\u0438 \u0438\u043b\u0438 shell \u043f\u0440\u043e\u043c\u0435\u043d\u0438(\u043d\u0435 \u0441\u0435 \u0438\u0437\u043f\u044a\u043b\u043d\u044f\u0432\u0430 ~\/.bash_profile). \u0410\u043a\u043e \u0438\u0441\u043a\u0430\u0442\u0435 login shell \u0441\u0435 \u0438\u0437\u043f\u043e\u043b\u0437\u0432\u0430 su \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u0442\u0430 \u0441 &#8220;-&#8221; \u0438\u043b\u0438 &#8220;-l&#8221; \u043e\u043f\u0446\u0438\u0438\u0442\u0435.<br \/>\n\u0421\u043b\u0435\u0434\u043d\u0438\u0442\u0435 \u0434\u0432\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u0438 \u0441\u0430 \u0435\u043a\u0432\u0438\u0432\u0430\u043b\u0435\u043d\u0442\u043d\u0438:<\/p>\n<blockquote><p>\nsu &#8211; boyan<br \/>\nsu -l boyan\n<\/p><\/blockquote>\n<p>\u0417\u0430 \u0434\u0430 \u0434\u043e\u0441\u0442\u044a\u043f\u0438\u0442\u0435 \u043f\u043e\u0442\u0440\u0435\u0431\u0438\u0442\u0435\u043b\u0441\u043a\u0438 \u0430\u043a\u0430\u0443\u043d\u0442 \u0435 \u043d\u0443\u0436\u043d\u043e \u0434\u0430 \u0432\u044a\u0432\u0435\u0434\u0435\u0442\u0435 \u0438\u043c\u0435\u0442\u043e \u043c\u0443, \u043d\u043e \u043f\u0440\u0438 root \u0430\u043a\u0430\u0443\u043d\u0442\u0430 \u0442\u043e\u0432\u0430 \u043d\u0435 \u0435 \u043d\u0443\u0436\u043d\u043e.<br \/>\n\u0421\u043b\u0435\u0434\u043d\u0438\u0442\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u0438 \u0441\u0430 \u0435\u043a\u0432\u0438\u0432\u0430\u043b\u043d\u0442\u043d\u0438:<\/p>\n<blockquote><p>\nsu &#8211; root<br \/>\nsu -l root<br \/>\nsu &#8211;<br \/>\nsu -l\n<\/p><\/blockquote>\n<p>\u041a\u043e\u0433\u0430\u0442\u043e \u043e\u0442 root \u0430\u043a\u0430\u0443\u043d\u0442\u0430 \u0432\u043b\u0438\u0437\u0430\u0442\u0435 \u0432 \u043d\u044f\u043a\u043e\u0439 \u0434\u0440\u0443\u0433 \u0430\u043a\u0430\u0443\u043d\u0442 \u043d\u0435 \u0441\u0435 \u0438\u0437\u0438\u0441\u043a\u0432\u0430 \u043f\u0430\u0440\u043e\u043b\u0430. \u0422\u043e\u0432\u0430 \u0432\u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0432\u0430 \u0434\u0430 \u0438\u0437\u043f\u043e\u043b\u0437\u0432\u0430\u0442\u0435 \u0432\u0441\u0438\u0447\u043a\u0438 \u0430\u043a\u0430\u0443\u043d\u0442\u0438, \u0431\u0435\u0437 \u0434\u0430 \u0438\u043c \u0437\u043d\u0430\u0435\u0442\u0435 \u043f\u0430\u0440\u043e\u043b\u0430\u0442\u0430, \u0438 \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u043d\u043e \u043f\u0440\u0438 \u0437\u0430\u0431\u0440\u0430\u0432\u044f\u043d\u0435\u0442\u043e \u043d\u0430 \u0441\u044a\u043e\u0442\u0432\u0435\u0442\u043d\u0430\u0442\u0430 \u043f\u0440\u043e\u043b\u0430 \u043c\u043e\u0436\u0435 \u0434\u0430 \u043f\u043e\u043b\u0437\u0432\u0430\u0442\u0435 \u0430\u043a\u0430\u0443\u043d\u0442\u0430, \u043a\u0430\u0442\u043e \u043e\u0442 root \u0432\u043b\u0435\u0437\u0435\u0442\u0435 \u0432 \u043d\u0435\u0433\u043e.<br \/>\n\u0412 \u0441\u043b\u0435\u0434\u043d\u0438\u044f \u043f\u0440\u0438\u043c\u0435\u0440 \u0441\u0435 \u043e\u043f\u0438\u0442\u0432\u0430\u043c \u0434\u0430 \u0432\u043b\u044f\u0437\u0430 \u0432 \u0434\u0430\u0434\u0435\u043d \u0430\u043a\u0430\u0443\u043d\u0442, \u043d\u043e \u0441\u044a\u043c \u043c\u0443 \u0437\u0430\u0431\u0440\u0430\u0432\u0438\u043b \u043f\u0430\u0440\u043e\u043b\u0430\u0442\u0430. \u0427\u0440\u0435\u0437 root,\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u0442\u0430 <strong>passwd<\/strong>, \u043c\u043e\u0433\u0430 \u0434\u0430 \u044f \u0441\u043c\u0435\u043d\u044f \u0431\u0435\u0437 \u0434\u0430 \u0432\u043b\u0438\u0437\u0430\u043c \u0432 \u043f\u0440\u043e\u0444\u0438\u043b\u0430.<\/p>\n<blockquote><p>\nboyanweb@boyan:\/home$ su tester<br \/>\nPassword:<br \/>\nsu: Authentication failure<br \/>\nboyanweb@boyan:\/home$ su root<br \/>\nPassword:<br \/>\nroot@boyan:\/home# passwd tester<br \/>\nEnter new UNIX password:<br \/>\nRetype new UNIX password:<br \/>\npasswd: password updated successfully\n<\/p><\/blockquote>\n<p>\u0410\u043a\u043e \u0441\u0435 \u043e\u043f\u0438\u0442\u0430\u0442\u0435 \u0434\u0430 \u0441\u043c\u0435\u043d\u0438\u0442\u0435 \u043f\u0430\u0440\u043e\u043b\u0430\u0442\u0430 \u0434\u043e\u043a\u0430\u0442\u043e \u0441\u0442\u0435 \u0432 \u0434\u0430\u0434\u0435\u043d \u0430\u043a\u0430\u0443\u043d\u0442, \u0449\u0435 \u0442\u0440\u044f\u0431\u0432\u0430 \u0434\u0430 \u0432\u044a\u0432\u0435\u0434\u0435\u0442\u0435 \u0438 \u0442\u0435\u043a\u0443\u0449\u0430\u0442\u0430 \u043f\u0430\u0440\u043e\u043b\u0430:<\/p>\n<blockquote><p>\n[boyan@boyanLaptop sbin]$  passwd<br \/>\nChanging password for user boyan.<br \/>\nChanging password for boyan.<br \/>\n(current) UNIX password:\n<\/p><\/blockquote>\n<p><strong>Sudo<\/strong><\/p>\n<p>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u044a\u0442 \u0441 \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u0442\u0430 su, \u0435 \u0447\u0435 \u0437\u0430 \u0434\u0430 \u0441\u0435 \u0438\u0437\u043f\u043e\u043b\u0437\u0432\u0430 \u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u0441\u0435\u043a\u0438 \u043f\u043e\u0442\u0440\u0435\u0431\u0438\u0442\u0435\u043b \u0434\u0430 \u0437\u043d\u0430\u0435 \u043f\u0430\u0440\u043e\u043b\u0430\u0442\u0430 \u043d\u0430 root \u043f\u043e\u0442\u0440\u0435\u0431\u0438\u0442\u0435\u043b\u044f. \u0427\u0435\u0441\u0442\u043e \u043d\u0430 \u043e\u0431\u0438\u043a\u043d\u043e\u0432\u0435\u043d \u043f\u043e\u0442\u0440\u0435\u0431\u0438\u0442\u0435\u043b \u043c\u043e\u0436\u0435 \u0434\u0430 \u043c\u0443 \u0441\u0435 \u043d\u0430\u043b\u043e\u0436\u0438 \u0434\u0430 \u0438\u0437\u043f\u044a\u043b\u043d\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0430, \u043a\u043e\u044f\u0442\u043e \u0438\u0437\u0438\u0441\u043a\u0430 root \u043f\u0440\u0430\u0432\u0430.<\/p>\n<p>\u041d\u0430 \u043d\u044f\u043a\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0438 \u0437\u0430 \u0440\u0435\u0441\u0442\u0430\u0440\u0438\u0440\u0430\u043d\u0435\u0442\u043e \u043d\u0430 network \u0441\u044a\u0440\u0432\u0438\u0441\u0430 \u043c\u043e\u0436\u0435 \u0434\u0430 \u0441\u0435 \u0438\u0437\u043f\u043e\u043b\u0437\u0432\u0430 \u0441\u043b\u0435\u0434\u043d\u0430\u0442\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0430:<\/p>\n<blockquote><p>\n\/etc\/rc.d\/init.d\/network restart\n<\/p><\/blockquote>\n<p>\u0417\u0430 \u0434\u0430 \u0438\u0437\u043f\u044a\u043b\u043d\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u0442\u0430 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u043f\u043e\u0442\u0440\u0435\u0431\u0438\u0442\u0435\u043b\u044f\u0442 \u0438\u043c\u0430 \u043d\u0443\u0436\u0434\u0430 \u043e\u0442 root \u043f\u0440\u0430\u0432\u0430. \u0417\u0430 \u0434\u0430 \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u043c \u043d\u0430 \u043f\u043e\u0442\u0440\u0435\u0431\u0438\u0442\u0435\u043b\u044f \u0434\u0430 \u0440\u0435\u0441\u0442\u0430\u0440\u0438\u0440\u0430 \u0441\u044a\u0440\u0432\u0438\u0441\u0430 \u0435 \u043d\u0443\u0436\u043d\u043e \u0434\u0430 \u0438\u0437\u043f\u043e\u043b\u0437\u0432\u0430\u043c\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u0442\u0430 <strong>visudo<\/strong>, \u043a\u043e\u044f\u0442\u043e \u043f\u0440\u043e\u043c\u0435\u043d\u044f \u0444\u0430\u0439\u043b\u0430 \/etc\/sudoers(\u0440\u0430\u0437\u043b\u0438\u043a\u0430\u0442\u0430 \u043c\u0435\u0436\u0443 visudo \u0438 vi \/etc\/sudoers \u0435, \u0447\u0435 visudo \u043f\u0440\u043e\u0432\u0435\u0440\u0435\u044f\u0432\u0430 \u0437\u0430 \u0433\u0440\u0435\u0448\u043a\u0438 \u0432 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u0430 \u043f\u0440\u0435\u0434\u0438 \u0437\u0430\u043f\u0430\u043c\u0435\u0442\u044f\u0432\u0430\u043d\u0435\u0442\u043e \u043d\u0430 \u0444\u0430\u0439\u043b\u0430). \u0410\u043a\u043e \u0438\u0441\u043a\u0430\u0442\u0435 \u0434\u0430 \u0438\u0437\u043f\u043e\u0437\u0432\u0430\u0442\u0435 \u0434\u0440\u0443\u0433 \u0435\u0434\u0438\u0442\u043e\u0440, \u0430 \u043d\u0435 vi, \u0442\u0440\u044f\u0431\u0432\u0430 \u0434\u0430 \u043f\u0440\u043e\u043c\u0435\u043d\u0438\u0442\u0435 EDITOR \u043f\u0440\u043e\u043c\u0435\u043b\u043d\u0438\u0432\u0430\u0442\u0430.<br \/>\n\u0417\u0430 \u0434\u0430 \u0441\u0435 \u0438\u0437\u043f\u043e\u043b\u0437\u0432\u0430 nano:<\/p>\n<blockquote><p>\nexport EDITOR=nano\n<\/p><\/blockquote>\n<p>\u0424\u0430\u0439\u043b\u044a\u0442 <strong>\/etc\/sudoers<\/strong> \u0438\u043c\u0430 \u043c\u043d\u043e\u0433\u043e \u043e\u043f\u0446\u0438\u0438, \u043d\u043e \u0437\u0430 LPI \u0435 \u043d\u0443\u0436\u043d\u043e \u0434\u0430 \u0437\u043d\u0430\u0435\u0442\u0435 \u043a\u0430\u043a \u0434\u0430 \u0434\u0430\u0434\u0435\u0442\u0435 \u0434\u043e\u0441\u0442\u044a\u043f \u0437\u0430 \u0432\u0441\u0438\u043a\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u0438(\u0438\u043b\u0438 \u0441\u0430\u043c\u043e \u043d\u044f\u043a\u043e\u0439) \u043d\u0430 \u0434\u0430\u0434\u0435\u043d \u043f\u043e\u0442\u0440\u0435\u0431\u0438\u0442\u0435\u043b. \u0410\u043a\u043e \u0438\u0441\u043a\u0430\u043c\u0435 \u043f\u043e\u0442\u0440\u0435\u0431\u0438\u0442\u0435\u043b\u044f tes\u0442 \u0434\u0430 \u043c\u043e\u0436\u0435 \u0434\u0430 \u0440\u0435\u0441\u0442\u0430\u0440\u0438\u0440\u0430 \u0441\u044a\u0440\u0432\u0438\u0441\u0430 networ\u043a:<\/p>\n<blockquote><p>\ntest ALL=(ALL) \/etc\/rc.d\/init.d\/network\n<\/p><\/blockquote>\n<p>\u0410 \u0430\u043a\u043e \u0438\u043c\u0430\u0442\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u044a\u0447\u043d\u043e \u0434\u043e\u0432\u0435\u0440\u0438\u0435 \u043d\u0430 test, \u043c\u043e\u0436\u0435 \u0434\u0430 \u043c\u0443 \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442\u0435 \u0434\u043e\u0441\u0442\u044a\u043f \u0434\u043e \u0432\u0441\u0438\u0447\u043a\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u0438:<\/p>\n<blockquote><p>\ntest ALL=(ALL) ALL\n<\/p><\/blockquote>\n<p>\u0421\u043b\u0435\u0434 \u0434\u043e\u0431\u0430\u0432\u044f\u043d\u0435\u0442\u043e \u043d\u0430 \u0441\u043b\u0435\u0434\u043d\u0438\u044f \u0440\u0435\u0434 \u0432 \u0444\u0430\u0439\u043b\u0430 \/etc\/sudoers:<\/p>\n<blockquote><p>\ntest ALL=(ALL) \/bin\/yum update\n<\/p><\/blockquote>\n<p>\u0417\u0430\u0431\u0435\u043b\u0435\u0436\u0435\u0442\u0435 \u0447\u0435 \u043f\u0440\u0438 \u0438\u0437\u043f\u044a\u043b\u043d\u044f\u0432\u0430\u043d\u0435\u0442\u043e \u043d\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u0442\u0430 \u0447\u0440\u0435\u0437 sudo, \u0442\u044f \u043d\u0435 \u0438\u0441\u043a\u0430 \u043f\u0430\u0440\u043e\u043b\u0430\u0442\u0430 \u043d\u0430 root, \u043a\u0430\u043a\u0442\u043e \u043e\u0431\u0438\u043a\u043d\u043e\u0432\u0435\u043d\u043e, \u0430 \u0442\u0430\u0437\u0438 \u043d\u0430 test<\/p>\n<blockquote><p>\n[root@boyanLaptop sbin]$  visudo<br \/>\n[root@boyanLaptop sbin]$  su test<br \/>\n[test@boyanLaptop sbin]$  sudo yum update<br \/>\n<strong>[sudo] password for test:<\/strong>\n<\/p><\/blockquote>\n<p>\u0410\u043a\u043e \u043e\u0431\u0430\u0447\u0435 \u043d\u0430\u0448\u0438\u044f\u0442 \u0441\u043c\u0435\u043b test \u043f\u043e\u0442\u0440\u0435\u0431\u0438\u0442\u0435\u043b \u0440\u0435\u0448\u0438 \u0434\u0430 \u043d\u0430\u0434\u0432\u0438\u0448\u0438 \u043f\u0440\u0430\u0432\u0430\u0442\u0430 \u0441\u0438 \u0438 \u0441\u0435 \u043e\u043f\u0438\u0442\u0430 \u0434\u0430 \u0438\u0437\u043f\u044a\u043b\u043d\u0438 \u0434\u0440\u0443\u0433\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u043e\u0442 yum, \u0442\u043e\u0439 \u0449\u0435 \u0431\u044a\u0434\u0435 \u043f\u043e\u0441\u0440\u0435\u0449\u043d\u0430\u0442 \u043e\u0442 \u0433\u0440\u0435\u0448\u043a\u0430:<\/p>\n<blockquote><p>\n[test@boyanLaptop sbin]$  sudo yum upgrade<br \/>\nSorry, user test is not allowed to execute &#8216;\/bin\/yum upgrade&#8217; as root on boyanLaptop.\n<\/p><\/blockquote>\n<p><strong>2.<\/strong><\/p>\n<p>\u0421\u043b\u0435\u0434 \u0438\u043d\u0441\u0442\u0430\u043b\u0438\u0440\u0430\u043d\u0435 \u043d\u0430 \u043a\u043e\u044f \u0434\u0430 \u0435 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0446\u0438\u044f \u043d\u0430 \u041b\u0438\u043d\u0443\u043a\u0441, \u043c\u043d\u043e\u0433\u043e \u043e\u0442 \u0444\u0430\u0439\u043b\u043e\u0432\u0435\u0442\u0435 \u0438\u043c\u0430\u0442 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u043d\u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u0435\u043d\u0438\u044f(permissions), \u0437\u0430 \u0443\u043b\u0435\u0441\u043d\u0435\u043d\u0438\u0435 \u043d\u0430 \u043d\u043e\u0440\u043c\u0430\u043b\u043d\u0438\u0442\u0435 \u043f\u043e\u0442\u0440\u0435\u0431\u0438\u0442\u0435\u043b\u0438. \u0422\u0430\u043a\u0438\u0432\u0430 \u043f\u043e\u0437\u0432\u043e\u043b\u0435\u043d\u0438\u044f \u0441\u0430<br \/>\nSUID-\u0426\u0438\u0444\u0440\u043e\u0432\u043e \u0437\u0430\u0434\u0430\u0434\u0435\u043d \u0447\u0440\u0435\u0437 4-\u041f\u043e\u0437\u0432\u043e\u043b\u044f\u0432\u0430 \u0434\u0430 \u0441\u0435 \u043f\u0443\u0441\u043a\u0430 \u043f\u0440\u043e\u0446\u0435\u0441\u0430 \u0447\u0440\u0435\u0437 \u043f\u0440\u0430\u0432\u0430\u0442\u0430 \u043d\u0430 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u0438\u043a\u0430.<br \/>\nSGID-\u0426\u0438\u0444\u0440\u043e\u0432\u043e \u0437\u0430\u0434\u0430\u0434\u0435\u043d \u0447\u0440\u0435\u0437 2-\u041f\u043e\u0437\u0432\u043e\u043b\u044f\u0432\u0430 \u0434\u0430 \u0441\u0435 \u043f\u0443\u0441\u043a\u0430 \u043f\u0440\u043e\u0446\u0435\u0441\u0430 \u0447\u0440\u0435\u0437 \u043f\u0440\u0430\u0432\u0430\u0442\u0430 \u043d\u0430 \u0433\u0440\u0443\u043f\u0430\u0442\u0430 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u0438\u043a, \u0430 \u0430\u043a\u043e \u0435 \u043d\u0430 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044f \u0437\u0430\u0434\u044a\u043b\u0436\u0430\u0432\u0430 \u0432\u0441\u0438\u0447\u043a\u0438 \u0444\u0430\u0439\u043b\u043e\u0432\u0435 \u0432 \u0441\u0430\u043c\u0430\u0442\u0430 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044f \u0434\u0430 \u0441\u0430 \u043d\u0430 \u043d\u0435\u044f \u0433\u0440\u0443\u043f\u0430.<br \/>\nSticky bit-\u041a\u043e\u0433\u0430\u0442\u043e \u0435 \u0437\u0430\u0434\u0430\u0434\u0435\u043d\u0430 \u043d\u0430 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044f \u043d\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0432\u0430 \u043d\u0430 &#8220;\u043d\u0435\u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u0438\u0446\u0438&#8221; \u0434\u0430 \u0442\u0440\u0438\u044f\u0442 \u0444\u0430\u0439\u043b\u043e\u0432\u0435.<\/p>\n<p>\u0412\u0430\u0436\u043d\u043e \u0435 \u043e\u0442 \u0432\u0440\u0435\u043c\u0435 \u043d\u0430 \u0432\u0440\u0435\u043c\u0435 \u0434\u0430 \u0441\u0435 \u043f\u0443\u0441\u043a\u0430 find \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0437\u0430 \u0434\u0430 \u0441\u0435 \u0432\u0438\u0434\u0438 \u043a\u043e\u0439 \u0444\u0430\u0439\u043b\u043e\u0432\u0435 \u0438\u043c\u0430\u0442 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u043d\u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u0435\u043d\u0438\u044f. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0437\u0430 \u0434\u0430 \u0432\u0438\u0434\u0438\u043c \u0432\u0441\u0438\u0447\u043a\u0438 \u0444\u0430\u0439\u043b\u043e\u0432\u0435 \u043d\u0430 root, \u043a\u043e\u0439\u0442\u043e \u0438\u043c\u0430\u0442 \u043f\u0440\u0430\u0432\u0430 4777, \u043c\u043e\u0436\u0435\u043c \u0434\u0430 \u0438\u0437\u043f\u043e\u043b\u0437\u0432\u0430\u043c\u0435 \u0441\u043b\u0435\u0434\u043d\u0430\u0442\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0430:<\/p>\n<blockquote><p>\nboyanweb@boyan:~$ sudo find \/ -user root -perm 4777<br \/>\n\/home\/boyanweb\/somefile\n<\/p><\/blockquote>\n<p>\u0418\u043b\u0438 \u043f\u044a\u043a \u0430\u043a\u043e \u0438\u0441\u043a\u0430\u043c\u0435 \u0434\u0430 \u043d\u0430\u043c\u0435\u0440\u0438\u043c \u0432\u0441\u0438\u0447\u043a\u0438 \u0444\u0430\u0439\u043b\u043e\u0432\u0435 \u043d\u0430 root, \u043a\u043e\u0439\u0442\u043e \u0438\u043c\u0430\u0442 SUID, \u0438 \u043e\u0442\u0434\u0435\u043b\u043d\u043e \u043d\u0430 \u0442\u043e\u0432\u0430 \u0432\u0441\u0438\u0447\u043a\u0438 \u0444\u0430\u0439\u043b\u043e\u0432\u0435 \u043f\u043e-\u0433\u043e\u043b\u0435\u043c\u0438 \u043e\u0442 100\u043c\u0431, \u043c\u043e\u0436\u0435\u043c \u0434\u0430 \u0438\u0437\u043f\u043e\u043b\u0437\u0432\u0430\u043c\u0435 \u0442\u0430\u0437\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u0430:<\/p>\n<blockquote><p>\nsudo  find \/ \\( -perm -4000 -fprintf \/root\/suid.txt &#8216;%#m %u %p\\n&#8217; \\) ,        \\( -size +100M -fprintf \/root\/big.txt &#8216;%-10s %p\\n&#8217; \\)\n<\/p><\/blockquote>\n<p><em>\u0411\u0435\u043b\u0435\u0436\u043a\u0430:\u0420\u0435\u0437\u0443\u043b\u0442\u0430\u0442\u0438\u0442\u0435 \u043e\u0442 \u0442\u0435\u0437\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u0438 \u0437\u0430\u0432\u0438\u0441\u044f\u0442 \u043e\u0442 \u0432\u0435\u0440\u0441\u0438\u044f\u0442\u0430 \u043d\u0430 find<\/em><\/p>\n<p>\u0418\u0437\u043f\u043e\u043b\u0437\u0432\u0430\u0439\u043a\u0438 -perm \u043e\u043f\u0446\u0438\u044f\u0442\u0430 \u043d\u0430 find \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u0442\u0430 \u0442\u0440\u044f\u0431\u0432\u0430 \u0434\u0430 \u0441\u0435 \u0432\u0437\u0435\u043c\u0435 \u0432 \u043f\u0440\u0435\u0434\u0432\u0438\u0434 \u0442\u043e\u0432\u0430 \u043a\u0430\u043a \u0441\u0435 \u0438\u0437\u043f\u043e\u043b\u0437\u0432\u0430.<br \/>\n-perm 4777. \u0429\u0435 \u043f\u043e\u043a\u0430\u0436\u0435 \u0432\u0441\u0438\u0447\u043a\u0438 \u0444\u0430\u0439\u043b\u043e\u0432\u0435 \u0441 \u043f\u0440\u0430\u0432\u0430 \u0442\u043e\u0447\u043d\u043e 4777.<br \/>\n-perm <strong>&#8211;<\/strong>4000. \u0429\u0435 \u043f\u043e\u043a\u0430\u0436\u0435 \u0432\u0441\u0438\u0447\u043a\u0438 \u0444\u0430\u0439\u043b\u0432\u0435 \u0441\u044a\u0441 \u0437\u0430\u0434\u0430\u0434\u0435\u043d\u043e SUID(4) \u0438 \u0447\u0438\u0438\u0442\u043e \u043f\u0440\u0430\u0432\u0430 \u0441\u0430 \u043f\u043e-\u0432\u0438\u0441\u043e\u043a\u0438 \u043e\u0442 \u0437\u0430\u0434\u0430\u0434\u0435\u043d\u0438\u0442\u0435.<\/p>\n<blockquote><p>\n<strong>sudo find \/ -user root -perm -4000<\/strong><br \/>\n\/usr\/bin\/passwd<br \/>\n\/usr\/bin\/mbmon<br \/>\n\/usr\/bin\/newgrp<br \/>\n\/usr\/bin\/gpasswd<br \/>\n\/usr\/bin\/newgidmap<br \/>\n\/usr\/bin\/chsh<br \/>\n\/usr\/sbin\/hddtemp<br \/>\n\/usr\/sbin\/pppd<br \/>\n\/bin\/fusermount<br \/>\n\/bin\/umount<br \/>\n\/bin\/ping6<br \/>\n\/bin\/ping<br \/>\n\/bin\/mount<br \/>\n\/bin\/ntfs-3g<br \/>\n<strong>\/bin\/su<br \/>\n\/home\/boyanweb\/somefile<\/strong>\n<\/p><\/blockquote>\n<blockquote><p>\nboyanweb@boyan:~$ ll \/bin\/su \/home\/boyanweb\/somefile<br \/>\n-rwsr-xr-x 1 root root 40128 May 17  2017 \/bin\/su*<br \/>\n-rwsrwxrwx 1 root root     0 Jun  3 21:14 \/home\/boyanweb\/somefile*\n<\/p><\/blockquote>\n<p><strong>\u0422\u044a\u0439 \u043a\u0430\u0442\u043e \u0437\u0430 \u0442\u0435\u0437\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u0438 \u0435 \u043d\u0443\u0436\u043d\u043e \u0434\u0430 \u0437\u043d\u0430\u0435\u0442\u0435 \u0441\u0430\u043c\u043e \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0442\u043e \u043d\u044f\u043c\u0430 \u0434\u0430 \u0441\u0435 \u0441\u043f\u0438\u0440\u0430\u043c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043d\u0430 \u0442\u044f\u0445.<\/strong><\/p>\n<p><strong>Chage<\/strong> \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u0442\u0430 \u043c\u043e\u0436\u0435 \u0434\u0430 \u0441\u0435 \u0438\u0437\u043f\u043e\u043b\u0437\u0432\u0430 \u0437\u0430 \u043f\u0440\u043e\u043c\u044f\u043d\u0430 \u043d\u0430 \u0441\u0440\u043e\u043a\u0430 \u043d\u0430 \u0433\u043e\u0434\u043d\u043e\u0441\u0442 \u043d\u0430 \u0434\u0430\u0434\u0435\u043d\u0430 \u043f\u0430\u0440\u043e\u043b\u0430 \u0438\u043b\u0438 \u0437\u0430 \u043f\u0440\u0435\u0433\u043b\u0435\u0436\u0434\u0430\u043d\u0435\u0442\u043e \u043d\u0430 \u0442\u0430\u0437\u0438 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f(\u0447\u0440\u0435\u0437 -l \u043e\u043f\u0446\u0438\u044f\u0442\u0430).<\/p>\n<blockquote><p>\n[test@boyanLaptop home]$  chage -l test<br \/>\nLast password change                                    : May 27, 2018<br \/>\nPassword expires                                        : May 29, 2018<br \/>\nPassword inactive                                       : Jun 01, 2018<br \/>\nAccount expires                                         : Oct 27, 2018<br \/>\nMinimum number of days between password change          : 1<br \/>\nMaximum number of days between password change          : 2<br \/>\nNumber of days of warning before password expires       : 3\n<\/p><\/blockquote>\n<p>root \u043c\u043e\u0436\u0435 \u0434\u0430 \u043f\u0440\u043e\u043c\u0435\u043d\u044f \u0442\u0435\u0437\u0438 \u0434\u0430\u043d\u043d\u0438 \u0434\u0438\u0440\u0435\u043a\u0442\u043e \u0447\u0440\u0435\u0437 chage .<\/p>\n<blockquote><p>\n[root@boyanLaptop home]$  chage test<br \/>\nChanging the aging information for test<br \/>\nEnter the new value, or press ENTER for the default<br \/>\n        Minimum Password Age [1]: 1<br \/>\n        Maximum Password Age [1]: <strong>1<\/strong><br \/>\n        Last Password Change (YYYY-MM-DD) [2018-05-27]:<br \/>\n        Password Expiration Warning [10]: 1<br \/>\n        Password Inactive [1]: 1<br \/>\n        Account Expiration Date (YYYY-MM-DD) [2018-10-27]: 2018-10-26\n<\/p><\/blockquote>\n<p>\u041f\u0440\u0438 \u0438\u0437\u0442\u0435\u043a\u043b\u0430 \u0432\u0430\u043b\u0438\u0434\u043d\u043e\u0441\u0442 \u043d\u0430 \u043f\u0430\u0440\u043e\u043b\u0430 \u043f\u0440\u0438 \u0441\u043b\u0435\u0434\u0432\u0430\u0449\u0438\u044f \u043e\u043f\u0438\u0442 \u0437\u0430 \u043b\u043e\u0433\u0438\u043d \u0441\u0435 \u043f\u043e\u043a\u0430\u0437\u0432\u0430 \u0442\u043e\u0432\u0430 \u0441\u044a\u043e\u0431\u0449\u0435\u043d\u0438\u0435:<\/p>\n<blockquote><p>\n[boyan@boyanLaptop home]$  su test<br \/>\nPassword:<br \/>\nYour account has expired; please contact your system administrator<br \/>\nsu: Authentication token expired\n<\/p><\/blockquote>\n<p><strong>Usermod<\/strong> \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u0442\u0430 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0432\u0430 \u0434\u0430 \u0441\u0435 \u043f\u0440\u043e\u043c\u0435\u043d\u044f\u0442 \u043d\u044f\u043a\u043e\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043d\u0430 \u0430\u043a\u0430\u0443\u043d\u0442\u0430:<br \/>\n-d -&gt; \u041f\u0440\u043e\u043c\u0435\u043d\u044f home \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044f\u0442\u0430 \u043d\u0430 \u0434\u0430\u0434\u0435\u043d\u0438\u044f \u043f\u043e\u0442\u0440\u0435\u0431\u0438\u0442\u0435\u043b.<br \/>\n-\u0435 -&gt; \u041f\u0440\u043e\u043c\u0435\u043d\u044f &#8220;\u0441\u0440\u043e\u043a\u0430 \u043d\u0430 \u0433\u043e\u0434\u043d\u043e\u0441\u0442&#8221; \u043d\u0430 \u043f\u043e\u0442\u0440\u0435\u0431\u0438\u0442\u0435\u043b\u044f.<br \/>\n-g -&gt; \u041f\u0440\u043e\u043c\u0435\u043d\u044f \u0433\u043b\u0430\u0432\u043d\u0430\u0442\u0430 \u0433\u0440\u0443\u043f\u0430 \u043d\u0430 \u043f\u043e\u0442\u0440\u0435\u0431\u0438\u0442\u0435\u043b\u044f.<br \/>\n-G -&gt; \u041f\u0440\u043e\u043c\u0435\u043d\u044f\/\u0414\u043e\u0431\u0430\u0432\u044f\/\u041f\u0440\u0435\u043c\u0430\u0445\u0432\u0430 \u0432\u0442\u043e\u0440\u043e\u0441\u0442\u0435\u043f\u0435\u043d\u043d\u0438\u0442\u0435 \u0433\u0440\u0443\u043f\u0438 \u043d\u0430 \u043f\u043e\u0442\u0440\u0435\u0431\u0438\u0442\u0435\u043b\u044f.<br \/>\n-s -&gt; \u041f\u0440\u043e\u043c\u0435\u043d\u044f \u043f\u044a\u0442\u044f \u043a\u044a\u043c \u0448\u0435\u043b\u043b-\u0430 \u043d\u0430 \u043f\u043e\u0442\u0440\u0435\u0431\u0438\u0442\u0435\u043b\u044f.<br \/>\n-u -&gt; \u041f\u0440\u043e\u043c\u0435\u043d\u044f UID \u043d\u0430 \u043f\u043e\u0442\u0440\u0435\u0431\u0438\u0442\u0435\u043b\u044f.<br \/>\n-L -&gt; \u0417\u0430\u043a\u043b\u044e\u0447\u0432\u0430 \u0430\u043a\u0430\u0443\u043d\u0442.(\u0421\u043b\u0430\u0433\u0430 ! \u043f\u0440\u0435\u0434 \u043f\u0430\u0440\u043e\u043b\u0430\u0442\u0430 \u0432 \/etc\/passwd)<br \/>\n-U -&gt; \u041e\u0442\u043a\u043b\u044e\u0447\u0432\u0430 \u0430\u043a\u0430\u0443\u043d\u0442.(\u041f\u0440\u0435\u043c\u0430\u0445\u0432\u0430 ! \u043e\u0442 \u043f\u0430\u0440\u043e\u043b\u0430\u0442\u0430 \u0432 \/ect\/passwd)<\/p>\n<p><strong>ulimit<\/strong> \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0432\u0430 \u043d\u0430\u0447\u0438\u043d \u0437\u0430 \u0437\u0430\u0434\u0430\u0432\u0430\u043d\u0435 \u043d\u0430 \u043b\u0438\u043c\u0438\u0442\u0438 \u0437\u0430 \u043d\u044f\u043a\u043e\u0439 \u043f\u043e\u0442\u0440\u0435\u0431\u0438\u0442\u0435\u043b\u0438. \u0417\u0430 \u0434\u0430 \u043f\u0440\u0435\u0433\u043b\u0435\u0434\u0430\u0442\u0435 \u043b\u0438\u043c\u0438\u0442\u0438\u0442\u0435 \u043d\u0430 \u0434\u0430\u0434\u0435\u043d\u0438\u044f \u0430\u043a\u0430\u0443\u043d\u0442 \u043e\u0442 \u043a\u043e\u0439\u0442\u043e \u0441\u0442\u0435 \u0432\u043b\u0435\u0437\u043b\u0438 \u0441\u0435 \u0438\u0437\u043f\u043e\u0437\u043b\u0432\u0430 ulimit -a.<\/p>\n<blockquote><p>boyanweb@boyan:~$ ulimit -a<br \/>\ncore file size          (blocks, <strong>-c<\/strong>) 0<br \/>\ndata seg size           (kbytes, <strong>-d<\/strong>) unlimited<br \/>\nscheduling priority             (<strong>-e<\/strong>) 0<br \/>\nfile size               (blocks, <strong>-f<\/strong>) unlimited<br \/>\npending signals                 (<strong>-i<\/strong>) 23708<br \/>\nmax locked memory       (kbytes, <strong>-l<\/strong>) 64<br \/>\nmax memory size         (kbytes, <strong>-m<\/strong>) unlimited<br \/>\nopen files                      (<strong>-n<\/strong>) 1024<br \/>\npipe size            (512 bytes, <strong>-p<\/strong>) 8<br \/>\nPOSIX message queues     (bytes, <strong>-q<\/strong>) 819200<br \/>\nreal-time priority              (<strong>-r<\/strong>) 0<br \/>\nstack size              (kbytes, <strong>-s<\/strong>) 8192<br \/>\ncpu time               (seconds, <strong>-t<\/strong>) unlimited<br \/>\nmax user processes              (<strong>-u<\/strong>) 23708<br \/>\nvirtual memory          (kbytes, <strong>-v<\/strong>) unlimited<br \/>\nfile locks                      (<strong>-x<\/strong>) unlimited\n<\/p><\/blockquote>\n<p>\u0412\u0441\u044f\u043a\u0430 \u043e\u0442 \u0442\u0435\u0437\u0438 \u043e\u043f\u0446\u0438\u0438 \u043c\u043e\u0436\u0435 \u0434\u0430 \u0441\u0435 \u043f\u0440\u043e\u043c\u0435\u043d\u044f \u0441 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u0442\u0435 \u0432 <strong>\u0443\u0434\u0435\u0431\u0435\u043b\u0435\u043d\u043e<\/strong> \u0437\u043d\u0430\u0446\u0438.<\/p>\n<p><strong>netstat<\/strong> \u0438\u0437\u043a\u0430\u0440\u0432\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0437\u0430 network \u0432\u0440\u044a\u0437\u043a\u0438\u0442\u0435 routing \u0442\u0430\u0431\u043b\u0438\u0446\u0438\u0442\u0435, \u043a\u0430\u043a\u0442\u043e \u0438 \u043c\u043d\u043e\u0433\u043e \u0434\u0440\u0443\u0433\u0438 \u043d\u0435\u0449\u0430.<\/p>\n<p><strong>fuser<\/strong> \u043f\u043e\u043a\u0430\u0437\u0432\u0430 \u043a\u043e\u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0438 \u0438\u0437\u043f\u043e\u043b\u0432\u0430\u0442 TCP \u0438\u043b\u0438 UDP \u0441\u043e\u043a\u0435\u0442\u0438, \u043a\u0430\u043a\u0442\u043e \u0438 \u043a\u043e\u0439 \u043f\u0440\u043e\u0446\u0435\u0441 \u0438\u0437\u043f\u043b\u0437\u0432\u0430 \u0434\u0430\u0434\u0435\u043d\u0430 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044f \u0438\u043b\u0438 \u0444\u0430\u0439\u043b.<\/p>\n<p><strong>lsof<\/strong> \u043d\u0430\u043a\u0440\u0430\u0442\u043a\u043e \u0437\u0430 List Open Files. \u041f\u043e\u043a\u0430\u0437\u0432\u0430 \u043a\u043e\u0438 \u0444\u0430\u0439\u043b\u043e\u0432\u0435 \u0441\u0430 \u043e\u0442\u0432\u043e\u0440\u0435\u043d\u0438 \u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0438\u0442\u0435 \u043e\u0442 \u043a\u043e\u0438\u0442\u043e \u0441\u0430 \u043e\u0442\u0432\u043e\u0440\u0435\u043d\u0438\/\u0438\u0437\u043f\u043e\u043b\u0437\u0432\u0430\u043d\u0438.<\/p>\n<p><strong>3.<\/strong><br \/>\n<strong>Who<\/strong>, <strong>w<\/strong> \u0438 <strong>last<\/strong> \u0441\u0430 \u043f\u043e\u0434\u043e\u0431\u043d\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u0438:<br \/>\nWho-&gt; \u041f\u043e\u043a\u0430\u0437\u0432\u0430 \u043a\u043e\u0439 \u0435 \u043b\u043e\u0433-\u0438\u043d\u043d\u0430\u0442.<\/p>\n<blockquote><p>\nboyanweb@boyan:~$ who<br \/>\nroot     tty1         2018-04-10 16:02<br \/>\nboyanweb pts\/0        2018-06-03 20:57 (192.168.1.2)<br \/>\nboyanweb pts\/8        2018-06-03 23:13 (192.168.1.3)\n<\/p><\/blockquote>\n<p>w-&gt; \u041f\u043e\u043a\u0430\u0437\u0432\u0430 \u043a\u043e\u0439 \u0435 \u043b\u043e\u0433-\u0438\u043d\u043d\u0430\u0442, \u043a\u0430\u043a\u0432\u043e \u043f\u0440\u0430\u0432\u0438 \u043a\u0430\u043a\u0442\u043e \u0438 \u044a\u043f\u0442\u0430\u0439\u043c\u044a\u0442 \u043d\u0430 \u043c\u0430\u0448\u0438\u043d\u0430\u0442\u0430.<\/p>\n<blockquote><p>boyanweb@boyan:~$ w<br \/>\n 23:15:50 up 54 days,  7:14,  3 users,  load average: 0.29, 0.22, 0.21<br \/>\nUSER     TTY      FROM             LOGIN@   IDLE   JCPU   PCPU WHAT<br \/>\nroot     tty1                      10Apr18 54days  0.14s  0.06s bash<br \/>\nboyanweb pts\/0    192.168.1.2      20:57    1:34m  0.25s  0.25s -bash<br \/>\n<strong>boyanweb pts\/8    192.168.1.3      23:13    6.00s  0.10s  0.00s w<\/strong>\n<\/p><\/blockquote>\n<p>last-&gt; \u041f\u043e\u043a\u0430\u0437\u0432\u0430 \u043b\u0438\u0441\u0442 \u0441 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u043e \u043b\u043e\u0433-\u0438\u043d\u043d\u0430\u0442\u0438\u0442\u0435 \u043f\u043e\u0442\u0440\u0435\u0431\u0438\u0442\u0435\u043b\u0438.<\/p>\n<blockquote><p>boyanweb@boyan:~$ last<br \/>\nboyanweb pts\/8        192.168.1.3      Sun Jun  3 23:13   still logged in<br \/>\nboyanweb pts\/8        192.168.1.3      Sun Jun  3 23:12 &#8211; 23:12  (00:00)<br \/>\nboyanweb pts\/0        192.168.1.2      Sun Jun  3 20:57   still logged in<br \/>\nboyanweb pts\/0        192.168.1.2      Sun Jun  3 00:49 &#8211; 03:41  (02:52)<br \/>\nboyanweb pts\/0        192.168.1.2      Sat Jun  2 14:33 &#8211; 16:45  (02:11)\n<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\u0422\u043e\u0437\u0438 \u0443\u0440\u043e\u043a \u043f\u043e\u043a\u0440\u0438\u0432\u0430 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u0430 \u043e\u0442 LPIC-1 110.1, \u043d\u0443\u0436\u0435\u043d \u0437\u0430 \u0438\u0437\u043f\u0438\u0442 102-400. \u0423\u0440\u043e\u043a\u0430 \u043f\u043e\u043a\u0440\u0438\u0432\u0430 \u0441\u043b\u0435\u0434\u043d\u0438\u0442\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u0438 \u0438 \u0444\u0430\u0439\u043b\u043e\u0432\u0435: 1. su sudo \/etc\/sudoers passwd 2. find fuser lsof nmap chage usermod ulimit 3. who, w, last 1. \u041a\u043e\u0433\u0430\u0442\u043e \u0441\u0442\u0430\u0432\u0430 \u0432\u044a\u043f\u0440\u043e\u0441 \u0437\u0430 \u0441\u0438\u0433\u0443\u0440\u043d\u043e\u0441\u0442 \u0435\u0434\u043d\u043e \u043e\u0442 \u043d\u0430\u0439-\u0432\u0430\u0436\u043d\u0438\u0442\u0435 \u043d\u0435\u0449\u0430 \u0435 \u0434\u0430 \u0441\u0435 \u0438\u0437\u0431\u044f\u0433\u0432\u0430 \u0434\u0438\u0440\u0435\u043a\u0442\u043d\u043e\u0442\u043e \u0432\u043b\u0438\u0437\u0430\u043d\u0435 \u043a\u0430\u0442\u043e root \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0442\u0430, \u043e\u0441\u0432\u0435\u043d &#8230;<\/p>\n<p><a href=\"https:\/\/d1m0.com\/?p=510\" class=\"more-link\">Continue reading &lsquo;[LPIC-1] System Security(110.1)&rsquo; &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-510","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/d1m0.com\/index.php?rest_route=\/wp\/v2\/posts\/510","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/d1m0.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/d1m0.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/d1m0.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/d1m0.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=510"}],"version-history":[{"count":14,"href":"https:\/\/d1m0.com\/index.php?rest_route=\/wp\/v2\/posts\/510\/revisions"}],"predecessor-version":[{"id":525,"href":"https:\/\/d1m0.com\/index.php?rest_route=\/wp\/v2\/posts\/510\/revisions\/525"}],"wp:attachment":[{"href":"https:\/\/d1m0.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=510"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/d1m0.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=510"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/d1m0.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=510"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}