{"id":5977,"date":"2024-03-29T15:19:53","date_gmt":"2024-03-29T15:19:53","guid":{"rendered":"https:\/\/pohang.eduwp.kr\/?p=5977"},"modified":"2026-04-20T04:31:04","modified_gmt":"2026-04-20T04:31:04","slug":"4%ec%a3%bc%ec%b0%a8","status":"publish","type":"post","link":"https:\/\/pohang.eduwp.kr\/?p=5977","title":{"rendered":"4\uc8fc\ucc28"},"content":{"rendered":"<p><strong>\uc0ac\uc6a9\uc790\uc640 \uadf8\ub8f9 \uc124\uba85<\/strong><\/p>\n<p>\uc2dc\uc2a4\ud15c \uc0ac\uc6a9\uc790\uac00 \ucd5c\uc0c1\uc704 (root, super user, system administrator)<\/p>\n<p>\ub9ac\ub205\uc2a4\ub294 \uc5ec\ub7ec\uba85\uc758 \uc0ac\uc6a9\uc790\uac00 \uc874\uc7ac\ud55c\ub2e4. (\uc0ac\uc6a9\uc790\ubcf4\ub2e4\ub294 \ubcf5\uc218\uc758 \uacc4\uc815\uc774 \uc880 \ub354 \uba85\ud655\ud55c \uc758\ubbf8)<\/p>\n<ul>\n<li>\uadf8\ub8f9A : userA, userB, userC<\/li>\n<li>\uadf8\ub8f9B : \uc0ac\uc6a9\uc7901, \uc0ac\uc6a9\uc7902, \uc0ac\uc6a9\uc7903<\/li>\n<li>\uadf8\ub8f9C : userQ, userW, userR\u00a0 , programA, programB\u00a0 (\uc0ac\ub78c\ubfd0\ub9cc \uc544\ub2c8\ub77c \ud504\ub85c\uadf8\ub7a8\ub3c4 \uacc4\uc815\uc744 \uac00\uc9c8 \uc218 \uc788\ub2e4)<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>#cat \/etc\/passwd \ubb38\uc11c\ub97c \ud1b5\ud574\uc11c \ud604\uc7ac \ub9cc\ub4e4\uc5b4\uc9c4 \uacc4\uc815\uc744 \ud655\uc778\ud560 \uc218 \uc788\ub2e4.<\/p>\n<p>#cat \/etc\/shadow \ubb38\uc11c\ub97c \ud1b5\ud574\uc11c \ud604\uc7ac \ud328\uc2a4\uc6cc\ub4dc\ub97c \ud655\uc778\ud560 \uc218 \uc788\uace0 \ud328\uc2a4\uc6cc\ub4dc\ud654 \ub418\uc5b4 \uc788\uc74c<\/p>\n<p>#cat \/ect\/group \uadf8\ub8f9\uc744 \uc0b4\ud3b4\ubcfc\uc218 \uc788\ub2e4.<\/p>\n<hr \/>\n<p>\uc0ac\uc6a9\uad8c\ud55c \uc124\uba85<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"\" src=\"https:\/\/velog.velcdn.com\/images%2Fjeongmin1625%2Fpost%2F4dc8d857-2f61-4626-9a69-e0d297fae768%2Fimage.png\" alt=\"Linux \uc0ac\uc6a9\uad8c\ud55c\" width=\"657\" height=\"199\" \/><\/p>\n<p>8\uc9c4\ud45c\uae30\ubc95<\/p>\n<p>7 7 7 \uc124\uba85 , \ud37c\ubbf8\uc158<\/p>\n<p>rwx : 4 2 1<\/p>\n<p>rwx : 4 2 1<\/p>\n<p>rwx : 4 2 1<\/p>\n<p>&nbsp;<\/p>\n<hr \/>\n<p>\uc758\ubbf8\ud45c\uae30\ubc95<\/p>\n<p>#chmod go+rx &lt;dir&gt;\u00a0 \uadf8\ub8f9\uacfc \uc624\ub108\uc5d0\uac8c \uc77d\uae30\uc640 \uc2e4\ud589\uc744 \ucd94\uac00\ud55c\ub2e4.<\/p>\n<p>#chmod a+x\u00a0 \ubaa8\ub4e0 \uc0ac\uc6a9\uc790\uc5d0\uac8c \uc2e4\ud589\uad8c\ud55c\uc744 \ubd80\uc5ec\ud55c\ub2e4.<\/p>\n<p>&nbsp;<\/p>\n<p>\uae30\uc874\uc758 \uad8c\ud55c\uc744 \uac00\uc9c0\uace0 \uc18d\uc131\uc744 \uc870\uc815\ud55c\ub2e4.<\/p>\n<p>u=user<\/p>\n<p>g = group<\/p>\n<p>o = others<\/p>\n<p>a = all<\/p>\n<p>+ = add permission<\/p>\n<p>&#8211; = remove<\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n<p>ububntu\ub294 \uae30\ubcf8\uc801\uc73c\ub85c 1000\ubc88 \uadf8\ub8f9\uc5d0 \ud3ec\ud568\ub418\uc5b4 \uc788\uace0 \uac19\uc740 \uadf8\ub8f9\uc73c\ub85c \uc0ac\uc6a9\uc790\ub97c \ucd94\uac00\ud558\ub294 \uba85\ub839\uc5b4 \uc2e4\uc2b5<\/p>\n<p>#adduser newuser1 \uba85\ub839\uc5b4 \ucc28\uadfc\ucc28\uadfc \uc785\ub825\ud558\uae30<\/p>\n<p>\uc0ac\uc6a9\uc790\ub97c \ucd94\uac00\ud558\uace0 \uc6b0\ubd84\ud22c \ud658\uacbd\uc124\uc815\uc5d0\uc11c \uc0ac\uc6a9\uc790\ub97c \ubcc0\uacbd\ud574\ubcf4\uae30<\/p>\n<p>(su \uba85\ub839\uc5b4\ub85c \ubcc0\uacbd\ud574\ubcf4\uae30) swich user \uc0ac\uc6a9\uc790\ub97c \ubcc0\uacbd\uc2dc\ud0a8\ub2e4.<\/p>\n<p>\uc77c\ubc18\uc801\uc73c\ub85c su\ub9cc \uc785\ub825\ud558\uba74 super user\ub77c\ub294 \uc758\ubbf8\ub85c \uad00\ub9ac\uc790 \uc811\uc18d\uc744 \uc758\ubbf8\ud55c\ub2e4.<\/p>\n<p>&nbsp;<\/p>\n<p>#su &#8211; username<\/p>\n<p>\uc0dd\uc131\ub41c \ud3f4\ub354\ub97c \ud655\uc778\ud574\ubcf4\uae30<\/p>\n<hr \/>\n<p>adduser\u00a0 \/ useradd\u00a0 \u00a02\uac00\uc9c0 \ucc28\uc774\uc810<\/p>\n<p>adduser \uc0ac\uc6a9\uc790\ucd94\uac00\ud558\uae30<\/p>\n<p>deluser\u00a0 \uc0ac\uc6a9\uc790\uc81c\uac70\ud558\uae30 (\uc635\uc158\uc774 \ub9ce\uc74c, \ub370\uc2a4\ud06c\ud0d1\uc5d0\uc11c \ud654\uba74 \ub85c\uadf8\uc778\ud558\uba74 \ud504\ub85c\uc138\uc2a4\uac00 \ub3cc\uc544\uc11c \uc644\uc804\ud55c \uc0ad\uc81c\uac00 \ub418\uc9c0 \uc54a\uc74c, exit \uc720\uc800\ub85c \ube60\uc838\ub098\uc628 \ud6c4 \ud574\uc57c\ud568)<\/p>\n<p>deluser [name] &#8211;remove-home\u00a0 (\uac00\uc7a5 \uc77c\ubc18\uc801\uc778 \uc0ad\uc81c \uba85\ub839\uc5b4)<\/p>\n<hr \/>\n<p>2\uac1c\uc758 \uadf8\ub8f9\uc744 \ub9cc\ub4e4\uace0<\/p>\n<p>\ud130\ubbf8\ub110\uc744 2\uac1c \ub744\uc6b4\ud6c4 \uac01\uac01\uc758 \ub2e4\ub978 \uadf8\ub8f9\uc5d0\uc11c \ud30c\uc77c \uc811\uadfc\ud560\ub54c \ucc28\ub2e8\ub418\ub294 \ud654\uba74 \uc2e4\uc2b5<\/p>\n<p>chmod\ub85c \uc18d\uc131\uc744 \ubc14\uafb8\uace0 \uac19\uc740 \uadf8\ub8f9 \uc0ac\uc6a9\uc790\uac00 \ud30c\uc77c \uc811\uadfc\uac00\ub2a5\ud55c \ubd80\ubd84 \uc2e4\uc2b5<\/p>\n<p>\ud604\uc7ac \uadf8\ub8f9 \uc870\ud68c\u00a0 #groups<\/p>\n<p>\uadf8\ub8f9 \ucd94\uac00 #addgroup<\/p>\n<p>\uadf8\ub8f9\ubaa9\ub85d #cat \/etc\/group<\/p>\n<hr \/>\n<p>bash \uc2a4\ud06c\ub9bd\ud2b8 \uac04\ub2e8 \uc2e4\uc2b5<\/p>\n<p>#echo $PATH \uacbd\ub85c , \uc2e4\ud589 \uc6b0\uc120 \uc21c\uc704, \ud658\uacbd\ubcc0\uc218 \ubcf4\uc5ec\uc8fc\uae30<\/p>\n<p>#which pwd\u00a0 -&gt; \uc5b4\ub514\uc5d0 \uc788\ub294 \uba85\ub839\uc5b4\uc778\uc9c0 \ucc3e\uc544\uc90c<\/p>\n<p>&nbsp;<\/p>\n<p>nano\ub97c \uc774\uc6a9\ud574\uc11c \uac04\ub2e8\ud55c \uc2a4\ud06c\ub9bd\ud2b8 \ub9cc\ub4e4\uae30<\/p>\n<p>#!\/bin\/bash \uc2a4\ud06c\ub9bd\ud2b8 \ub9cc\ub4e4\uae30<\/p>\n<p>ls<\/p>\n<p>whoami<\/p>\n<p>pwd<\/p>\n<p>ls -al<\/p>\n<hr \/>\n<p>\uc0dd\uc131\ud6c4 \uc2e4\ud589 \uac70\ubd80 , \uc2e4\ud589\ud560 \uc218 \uc788\ub294 \uad8c\ud55c \ubcc0\uacbd<\/p>\n<p>chmod \uc0ac\uc6a9<\/p>\n<p>&nbsp;<\/p>\n<p>\uc2a4\ud06c\ub9bd\ud2b8 \uc2e4\ud589\ud558\ub294 \ubc29\ubc95<\/p>\n<p>\uad8c\ud55c \ubcc0\uacbd, \uc808\ub300\uacbd\ub85c \uc2e4\ud589, \uc0c1\ub300\uacbd\ub85c \uc2e4\ud589<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uc0ac\uc6a9\uc790\uc640 \uadf8\ub8f9 \uc124\uba85 \uc2dc\uc2a4\ud15c \uc0ac\uc6a9\uc790\uac00 \ucd5c\uc0c1\uc704 (root, super user, system administrator) \ub9ac\ub205\uc2a4\ub294 \uc5ec\ub7ec\uba85\uc758 \uc0ac\uc6a9\uc790\uac00 \uc874\uc7ac\ud55c\ub2e4. (\uc0ac\uc6a9\uc790\ubcf4\ub2e4\ub294 \ubcf5\uc218\uc758 \uacc4\uc815\uc774 \uc880 \ub354 \uba85\ud655\ud55c \uc758\ubbf8) \uadf8\ub8f9A : userA, userB, userC \uadf8\ub8f9B : \uc0ac\uc6a9\uc7901,&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,4],"tags":[],"class_list":["post-5977","post","type-post","status-publish","format-standard","category-uncategorized","category-4"],"_links":{"self":[{"href":"https:\/\/pohang.eduwp.kr\/index.php?rest_route=\/wp\/v2\/posts\/5977","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pohang.eduwp.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pohang.eduwp.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pohang.eduwp.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pohang.eduwp.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5977"}],"version-history":[{"count":6,"href":"https:\/\/pohang.eduwp.kr\/index.php?rest_route=\/wp\/v2\/posts\/5977\/revisions"}],"predecessor-version":[{"id":6024,"href":"https:\/\/pohang.eduwp.kr\/index.php?rest_route=\/wp\/v2\/posts\/5977\/revisions\/6024"}],"wp:attachment":[{"href":"https:\/\/pohang.eduwp.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5977"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pohang.eduwp.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5977"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pohang.eduwp.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5977"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}