{"id":139,"date":"2012-08-08T18:07:23","date_gmt":"2012-08-08T09:07:23","guid":{"rendered":"http:\/\/auctionpro.co.kr\/WPress\/?p=139"},"modified":"2013-06-12T17:41:28","modified_gmt":"2013-06-12T08:41:28","slug":"%ea%b3%84%ec%a0%95%ec%b6%94%ea%b0%80-%ec%82%ad%ec%a0%9c","status":"publish","type":"post","link":"https:\/\/www.auctionpro.co.kr\/?p=139","title":{"rendered":"\uacc4\uc815\ucd94\uac00 \uc0ad\uc81c"},"content":{"rendered":"<p>0. \uacc4\uc815 \uac80\uc0c9 -&gt; grep test \/etc\/passwd<\/p>\n<p>1. \uacc4\uc815\ucd94\uac00<\/p>\n<p>$&gt; useradd -u [\uc720\uc800ID] -g [\uadf8\ub8f9ID or \uadf8\ub8f9\uba85] -s [\uc0ac\uc6a9\ub418\ub294 SHELL] -d [\uc720\uc800 Home \ub514\ub809\ud1a0\ub9ac] \uacc4\uc815\uc774\ub984<br \/>\n$&gt; passwd \uacc4\uc815\uc774\ub984<\/p>\n<p>ex) <span style=\"color: #0000ff;\">useradd -u 501 -g 500 -s \/bin\/ksh -d \/home\/user02 user02<\/span><\/p>\n<p>passwd user02<\/p>\n<p>\ucd94\uac00\ud55c \uacc4\uc815\uc815\ubcf4\ub294 \/etc\/passwd \ud30c\uc77c\uc5d0 \uae30\ub85d\ub428<\/p>\n<p># \ucc38\uace0 : Shell\uc758 \uc885\ub958\ub97c \ud655\uc778\ud558\ub294 \uba85\ub839\uc5b4\ub294 &#8216;cat \/etc\/shells&#8217; \uc774\ub2e4.<\/p>\n<p>2. \uacc4\uc815\ub9ac\uc2a4\ud2b8<\/p>\n<p>$&gt; cat \/etc\/passwd<\/p>\n<p>cat \uba85\ub839\uc744 \ud1b5\ud574 \/etc\/passwd \ud30c\uc77c\uc758 \ub0b4\uc6a9\uc744 \ud655\uc778<\/p>\n<p>\uc704\uc758 \uadf8\ub9bc\uc5d0\uc11c [oracle, webapp]\ub294 \uc720\uc800\uba85, [x]\ub294 \uc720\uc800 \ud328\uc2a4\uc6cc\ub4dc, [501:602]\ub294 \uc720\uc800ID, [500,600]\ub294 \uadf8\ub8f9ID,<br \/>\n[\/home\/oracle,\/home\/webapp]\ub294 \uc720\uc800 \ud648\ub514\ub809\ud1a0\ub9ac, [\/bin\/ksh]\uc740 \uc0ac\uc6a9\ud558\ub294 Shell\uc774\ub2e4.<br \/>\n\uc720\uc800ID\ub294 \uc2dc\uc2a4\ud15c\uc5d0\uc11c \uc0ac\uc6a9\ud558\ub294 \uc720\uc800\uba85\uc758 \uc2dd\ubcc4\ucf54\ub4dc\uc774\ub2e4.<br \/>\n[x]\uc758 \ud328\uc2a4\uc6cc\ub4dc\ub294 \ubcf4\uc548\uc0c1 \/etc\/shadow \ud30c\uc77c\uc5d0 \uae30\ub85d\ub418\uc5b4 \uc788\ub2e4.<\/p>\n<p>3. \uacc4\uc815\uc0ad\uc81c<\/p>\n<p>$&gt; userdel \uacc4\uc815\uc774\ub984<br \/>\n<span style=\"color: #0000ff;\">userdel \uacc4\uc815\uc774\ub984 -r\u00a0<\/span><\/p>\n<p>\uc720\uc800 \ud648\ub514\ub809\ud1a0\ub9ac\ub97c \uc0ad\uc81c\ud560 \uacbd\uc6b0 [-r] \uc635\uc158\uc744 \uc8fc\uba74 \uac19\uc774 \uc0ad\uc81c\uac00 \ub41c\ub2e4.<\/p>\n<p>4. \uacc4\uc815\uc218\uc815<br \/>\nusermod [\uc635\uc158] \ub85c\uadf8\uc778 \uacc4\uc815<\/p>\n<p>-c comment : \uc0ac\uc6a9\uc790 \uc774\ub984 \ub610\ub294 \uc815\ubcf4<br \/>\n-d home_directory : \uc0ac\uc6a9\uc790 \uacc4\uc815 \ud648 \ub514\ub809\ud1a0\ub9ac<br \/>\n-e expire_date : \uc0ac\uc6a9\uc790 \uacc4\uc815 \uc720\ud6a8 \uae30\uac04<br \/>\n-f inactive_time : \ube44\ud65c\uc131 \uae30\uac04<br \/>\n-g initial_group : \uae30\ubcf8 \uadf8\ub8f9<br \/>\n-G grout : \ub2e4\uc74c \uadf8\ub8f9<br \/>\n-s shell : \uae30\ubcf8 \ub85c\uadf8\uc778 \uc140<br \/>\n-u uid : \uc0ac\uc6a9\uc790 \uacc4\uc815 uid<\/p>\n<p>usermod\u00a0\u2013d \/home\/user\u00a0\u2013m user<br \/>\nusermod\u00a0\u2013e 2003-04-05 user<br \/>\nusermod\u00a0\u2013f 3 user<br \/>\nusermod\u00a0\u2013g users user<\/p>\n<p>\uadf8\ub8f9\uc870\ud68c<\/p>\n<p>cat \u2013n \/etc\/group<\/p>\n<p>\uadf8\ub8f9\uc0dd\uc131<br \/>\ngroupadd [-g GID [-o]] \uadf8\ub8f9 id (-o : GID 499\uc774\ud558 \uac12\uc73c\ub85c \uc9c0\uc815)<\/p>\n<p>[-r] \uadf8\ub8f9 id 499\uc774\ud558 \uac12\uc73c\ub85c \uc790\ub3d9 \uc9c0\uc815<\/p>\n<p>[-f] \uac15\uc81c\ub85c \uc0dd\uc131<br \/>\ngroupadd \u2013g 900 toheart (900 \u2013 groupid \/ toheart \u2013 \uadf8\ub8f9\uba85)<\/p>\n<p>\uadf8\ub8f9\ubcc0\uacbd<\/p>\n<p>groupmod [-g gid [-o]] gid\ubcc0\uacbd<\/p>\n<p>[-n] \uc0c8\ub85c\uc6b4 \uadf8\ub8f9\uba85\uc73c\ub85c \ubcc0\uacbd<\/p>\n<p>groupmod \u2013g 700 toheart<br \/>\ngroupmod \u2013n kkum toheart<\/p>\n<p>\uadf8\ub8f9\uc0ad\uc81c<\/p>\n<p>groupdel group\uba85<\/p>\n<div>$ sudo vi \/etc\/sudoers<\/div>\n<div>[sudo] password for falinux:<\/div>\n<div><\/div>\n<div>#<\/div>\n<div># This file MUST be edited with the &#8216;visudo&#8217; command as root.<\/div>\n<div>#<\/div>\n<div># Please consider adding local content in \/etc\/sudoers.d\/ instead of<\/div>\n<div># directly modifying this file.<\/div>\n<div>#<\/div>\n<div># See the man page for details on how to write a sudoers file.<\/div>\n<div>#<\/div>\n<div>Defaults env_reset<\/div>\n<div><\/div>\n<div># Host alias specification<\/div>\n<div><\/div>\n<div># User alias specification<\/div>\n<div><b>adduserfa ALL=(ALL:ALL) ALL<\/b>\u00a0\u00a0 \u00a0 \u00a0 \u00a0 &lt;&lt;&#8212;&#8212;&#8212; <b>adduserfa\u00a0<\/b>\uc77c\ubc18 \uac8c\uc815\uc744 \ub4f1\ub85d\ud55c\ub2e4.<\/div>\n<div><\/div>\n<div># Cmnd alias specification<\/div>\n<div><\/div>\n<div># User privilege specification<\/div>\n<div>root ALL=(ALL:ALL) ALL<\/div>\n<div><\/div>\n<div># Members of the admin group may gain root privileges<\/div>\n<div>%admin ALL=(ALL) ALL<\/div>\n<div><\/div>\n<div># Allow members of group sudo to execute any command<\/div>\n<div>%sudo ALL=(ALL:ALL) ALL<\/div>\n<div><\/div>\n<div>#includedir \/etc\/sudoers.d<\/div>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>0. \uacc4\uc815 \uac80\uc0c9 -&gt; grep test \/etc\/passwd 1. \uacc4\uc815\ucd94\uac00 $&gt; useradd -u [\uc720\uc800ID] -g [\uadf8\ub8f9ID or \uadf8\ub8f9\uba85] -s [\uc0ac\uc6a9\ub418\ub294 SHELL] -d [\uc720\uc800 Home \ub514\ub809\ud1a0\ub9ac] \uacc4\uc815\uc774\ub984 <a class=\"mh-excerpt-more\" href=\"https:\/\/www.auctionpro.co.kr\/?p=139\" title=\"\uacc4\uc815\ucd94\uac00 \uc0ad\uc81c\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[11],"tags":[],"class_list":["post-139","post","type-post","status-publish","format-standard","hentry","category-centos"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\uacc4\uc815\ucd94\uac00 \uc0ad\uc81c - AuctionPro<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.auctionpro.co.kr\/?p=139\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\uacc4\uc815\ucd94\uac00 \uc0ad\uc81c - AuctionPro\" \/>\n<meta property=\"og:description\" content=\"0. \uacc4\uc815 \uac80\uc0c9 -&gt; grep test \/etc\/passwd 1. \uacc4\uc815\ucd94\uac00 $&gt; useradd -u [\uc720\uc800ID] -g [\uadf8\ub8f9ID or \uadf8\ub8f9\uba85] -s [\uc0ac\uc6a9\ub418\ub294 SHELL] -d [\uc720\uc800 Home \ub514\ub809\ud1a0\ub9ac] \uacc4\uc815\uc774\ub984 [...]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.auctionpro.co.kr\/?p=139\" \/>\n<meta property=\"og:site_name\" content=\"AuctionPro\" \/>\n<meta property=\"article:published_time\" content=\"2012-08-08T09:07:23+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2013-06-12T08:41:28+00:00\" \/>\n<meta name=\"author\" content=\"golgol\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\uae00\uc4f4\uc774\" \/>\n\t<meta name=\"twitter:data1\" content=\"golgol\" \/>\n\t<meta name=\"twitter:label2\" content=\"\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/?p=139#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/?p=139\"},\"author\":{\"name\":\"golgol\",\"@id\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/#\\\/schema\\\/person\\\/d3dbae599b06cd55f5b14a3e2116f7a2\"},\"headline\":\"\uacc4\uc815\ucd94\uac00 \uc0ad\uc81c\",\"datePublished\":\"2012-08-08T09:07:23+00:00\",\"dateModified\":\"2013-06-12T08:41:28+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/?p=139\"},\"wordCount\":248,\"commentCount\":0,\"articleSection\":[\"[OS]CentOS\"],\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.auctionpro.co.kr\\\/?p=139#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/?p=139\",\"url\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/?p=139\",\"name\":\"\uacc4\uc815\ucd94\uac00 \uc0ad\uc81c - AuctionPro\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/#website\"},\"datePublished\":\"2012-08-08T09:07:23+00:00\",\"dateModified\":\"2013-06-12T08:41:28+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/#\\\/schema\\\/person\\\/d3dbae599b06cd55f5b14a3e2116f7a2\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/?p=139#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.auctionpro.co.kr\\\/?p=139\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/?p=139#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\uacc4\uc815\ucd94\uac00 \uc0ad\uc81c\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/#website\",\"url\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/\",\"name\":\"AuctionPro\",\"description\":\"\uc625\uc158\ud504\ub85c\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/#\\\/schema\\\/person\\\/d3dbae599b06cd55f5b14a3e2116f7a2\",\"name\":\"golgol\",\"url\":\"https:\\\/\\\/www.auctionpro.co.kr\\\/?author=6\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\uacc4\uc815\ucd94\uac00 \uc0ad\uc81c - AuctionPro","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.auctionpro.co.kr\/?p=139","og_locale":"ko_KR","og_type":"article","og_title":"\uacc4\uc815\ucd94\uac00 \uc0ad\uc81c - AuctionPro","og_description":"0. \uacc4\uc815 \uac80\uc0c9 -&gt; grep test \/etc\/passwd 1. \uacc4\uc815\ucd94\uac00 $&gt; useradd -u [\uc720\uc800ID] -g [\uadf8\ub8f9ID or \uadf8\ub8f9\uba85] -s [\uc0ac\uc6a9\ub418\ub294 SHELL] -d [\uc720\uc800 Home \ub514\ub809\ud1a0\ub9ac] \uacc4\uc815\uc774\ub984 [...]","og_url":"https:\/\/www.auctionpro.co.kr\/?p=139","og_site_name":"AuctionPro","article_published_time":"2012-08-08T09:07:23+00:00","article_modified_time":"2013-06-12T08:41:28+00:00","author":"golgol","twitter_card":"summary_large_image","twitter_misc":{"\uae00\uc4f4\uc774":"golgol","\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04":"1\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.auctionpro.co.kr\/?p=139#article","isPartOf":{"@id":"https:\/\/www.auctionpro.co.kr\/?p=139"},"author":{"name":"golgol","@id":"https:\/\/www.auctionpro.co.kr\/#\/schema\/person\/d3dbae599b06cd55f5b14a3e2116f7a2"},"headline":"\uacc4\uc815\ucd94\uac00 \uc0ad\uc81c","datePublished":"2012-08-08T09:07:23+00:00","dateModified":"2013-06-12T08:41:28+00:00","mainEntityOfPage":{"@id":"https:\/\/www.auctionpro.co.kr\/?p=139"},"wordCount":248,"commentCount":0,"articleSection":["[OS]CentOS"],"inLanguage":"ko-KR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.auctionpro.co.kr\/?p=139#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.auctionpro.co.kr\/?p=139","url":"https:\/\/www.auctionpro.co.kr\/?p=139","name":"\uacc4\uc815\ucd94\uac00 \uc0ad\uc81c - AuctionPro","isPartOf":{"@id":"https:\/\/www.auctionpro.co.kr\/#website"},"datePublished":"2012-08-08T09:07:23+00:00","dateModified":"2013-06-12T08:41:28+00:00","author":{"@id":"https:\/\/www.auctionpro.co.kr\/#\/schema\/person\/d3dbae599b06cd55f5b14a3e2116f7a2"},"breadcrumb":{"@id":"https:\/\/www.auctionpro.co.kr\/?p=139#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.auctionpro.co.kr\/?p=139"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.auctionpro.co.kr\/?p=139#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/www.auctionpro.co.kr\/"},{"@type":"ListItem","position":2,"name":"\uacc4\uc815\ucd94\uac00 \uc0ad\uc81c"}]},{"@type":"WebSite","@id":"https:\/\/www.auctionpro.co.kr\/#website","url":"https:\/\/www.auctionpro.co.kr\/","name":"AuctionPro","description":"\uc625\uc158\ud504\ub85c","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.auctionpro.co.kr\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Person","@id":"https:\/\/www.auctionpro.co.kr\/#\/schema\/person\/d3dbae599b06cd55f5b14a3e2116f7a2","name":"golgol","url":"https:\/\/www.auctionpro.co.kr\/?author=6"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/139","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=139"}],"version-history":[{"count":0,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/139\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=139"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=139"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=139"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}