{"id":5330,"date":"2022-07-05T13:12:56","date_gmt":"2022-07-05T06:12:56","guid":{"rendered":"http:\/\/materi.smkn43jkt.sch.id\/?p=5330"},"modified":"2026-02-19T11:27:48","modified_gmt":"2026-02-19T04:27:48","slug":"how-to-change-home-directory-in-linux-ubun","status":"publish","type":"post","link":"http:\/\/materi.smkn43jkt.sch.id\/?p=5330","title":{"rendered":"Mengganti directory di linux ubuntu"},"content":{"rendered":"<p>Hari ini, dengan alasan tertentu saya jadi mengganti <strong>home directory<\/strong> dari user di ubuntu server, yaitu user helpdesk. adapun caranya sebagai berikut:<\/p>\n<p>1. Login sebagai sudo privileges atau root.<\/p>\n<p>2. edit file \/etc\/passwd dengan editor kesukaan anda, kalo saya suka memakai vi<\/p>\n<blockquote><p>#vi \/etc\/passwd<\/p><\/blockquote>\n<p>3. Misalkan user helpdesk secara default home directory ada di \/home\/helpdesk, tapi akan saya rubah ke directori \/usr\/helpdesk. Caranya:<\/p>\n<p>Cari baris nama user yang akan diganti home directorynya:<\/p>\n<blockquote><p>helpdesk:x:1004:1004:help desk,,,:\/home\/helpdesk:\/bin\/bash<\/p><\/blockquote>\n<p>kemudian ganti dengan directory yang diinginkan<\/p>\n<blockquote><p>helpdesk:x:1004:1004:help desk,,,:\/usr\/helpdesk:\/bin\/bash<\/p><\/blockquote>\n<p>4. SImpan dan keluar dari editor dengan cara:<\/p>\n<blockquote><p>:wq!<\/p><\/blockquote>\n<p>sumber : https:\/\/ruswandar.wordpress.com\/2013\/09\/25\/how-to-change-home-directory-in-linux\/<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hari ini, dengan alasan tertentu saya jadi mengganti home directory dari user di ubuntu server, yaitu user helpdesk. adapun caranya sebagai berikut: 1. Login sebagai sudo privileges atau root. 2. edit file \/etc\/passwd dengan editor kesukaan anda, kalo saya suka memakai vi #vi \/etc\/passwd 3. Misalkan user helpdesk secara default home directory ada di \/home\/helpdesk, [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[],"_links":{"self":[{"href":"http:\/\/materi.smkn43jkt.sch.id\/index.php?rest_route=\/wp\/v2\/posts\/5330"}],"collection":[{"href":"http:\/\/materi.smkn43jkt.sch.id\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/materi.smkn43jkt.sch.id\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/materi.smkn43jkt.sch.id\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/materi.smkn43jkt.sch.id\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5330"}],"version-history":[{"count":3,"href":"http:\/\/materi.smkn43jkt.sch.id\/index.php?rest_route=\/wp\/v2\/posts\/5330\/revisions"}],"predecessor-version":[{"id":5629,"href":"http:\/\/materi.smkn43jkt.sch.id\/index.php?rest_route=\/wp\/v2\/posts\/5330\/revisions\/5629"}],"wp:attachment":[{"href":"http:\/\/materi.smkn43jkt.sch.id\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5330"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/materi.smkn43jkt.sch.id\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5330"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/materi.smkn43jkt.sch.id\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5330"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}