{"id":5591,"date":"2025-08-11T20:18:41","date_gmt":"2025-08-11T13:18:41","guid":{"rendered":"http:\/\/materi.smkn43jkt.sch.id\/?p=5591"},"modified":"2025-08-12T14:48:05","modified_gmt":"2025-08-12T07:48:05","slug":"manajemen-pengguna-di-linux-debian","status":"publish","type":"post","link":"http:\/\/materi.smkn43jkt.sch.id\/?p=5591","title":{"rendered":"Manajemen Pengguna di Linux Debian"},"content":{"rendered":"<h2>\ud83c\udfaf <strong>Tujuan Pembelajaran<\/strong><\/h2>\n<p>Setelah mengikuti materi ini, siswa\/peserta diharapkan dapat:<\/p>\n<ul>\n<li>Membuat akun pengguna baru di Linux Debian.<\/li>\n<li>Mengatur dan menghapus akun pengguna.<\/li>\n<li>Menetapkan hak akses (permission) terhadap file\/direktori.<\/li>\n<li>Memahami konsep user, grup, dan permission di sistem Linux.<\/li>\n<\/ul>\n<hr \/>\n<h2>\ud83d\udcda <strong>A. Konsep Dasar Manajemen Pengguna<\/strong><\/h2>\n<h3>1. Apa itu User di Linux?<\/h3>\n<p>User (pengguna) adalah entitas yang dapat mengakses dan menggunakan sistem operasi.<\/p>\n<h3>2. Jenis User:<\/h3>\n<table>\n<thead>\n<tr>\n<th>Jenis<\/th>\n<th>Penjelasan<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><strong>root<\/strong><\/td>\n<td>Superuser, memiliki akses penuh<\/td>\n<\/tr>\n<tr>\n<td><strong>User biasa<\/strong><\/td>\n<td>Pengguna umum tanpa hak administratif<\/td>\n<\/tr>\n<tr>\n<td><strong>Service user<\/strong><\/td>\n<td>Digunakan oleh layanan seperti <code>www-data<\/code>, <code>mysql<\/code>, dll<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h2>\ud83d\udee0\ufe0f <strong>B. Perintah Dasar Manajemen Pengguna<\/strong><\/h2>\n<h3>1. <strong>Menambahkan Pengguna Baru<\/strong><\/h3>\n<pre><code class=\"language-bash\">adduser namauser\r\n<\/code><\/pre>\n<p>Contoh:<\/p>\n<pre><code class=\"language-bash\">adduser siswa1\r\n<\/code><\/pre>\n<p>Sistem akan meminta password dan informasi tambahan.<\/p>\n<hr \/>\n<h3>2. <strong>Menghapus Pengguna<\/strong><\/h3>\n<pre><code class=\"language-bash\">deluser namauser\r\n<\/code><\/pre>\n<p>Contoh:<\/p>\n<pre><code class=\"language-bash\">deluser siswa1\r\n<\/code><\/pre>\n<p>Jika ingin menghapus home directory juga:<\/p>\n<pre><code class=\"language-bash\">deluser --remove-home siswa1\r\n<\/code><\/pre>\n<hr \/>\n<h3>3. <strong>Mengubah Password Pengguna<\/strong><\/h3>\n<pre><code class=\"language-bash\">passwd namauser\r\n<\/code><\/pre>\n<hr \/>\n<h3>4. <strong>Menambahkan Pengguna ke Grup Tertentu<\/strong><\/h3>\n<p>Contoh menambahkan ke grup <code>sudo<\/code>:<\/p>\n<pre><code class=\"language-bash\">usermod -aG sudo siswa1\r\n<\/code><\/pre>\n<hr \/>\n<h3>5. <strong>Melihat Daftar Grup<\/strong><\/h3>\n<pre><code class=\"language-bash\">groups siswa1\r\n<\/code><\/pre>\n<hr \/>\n<h2>\ud83d\udcc1 <strong>C. Hak Akses File &amp; Permission<\/strong><\/h2>\n<h3>1. Struktur Permission Linux<\/h3>\n<pre><code class=\"language-bash\">-rwxr-xr--  1 user group  file.txt\r\n<\/code><\/pre>\n<p>Artinya:<\/p>\n<table>\n<thead>\n<tr>\n<th>Simbol<\/th>\n<th>Arti<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>r<\/code><\/td>\n<td>read (baca)<\/td>\n<\/tr>\n<tr>\n<td><code>w<\/code><\/td>\n<td>write (tulis)<\/td>\n<\/tr>\n<tr>\n<td><code>x<\/code><\/td>\n<td>execute (eksekusi)<\/td>\n<\/tr>\n<tr>\n<td><code>-<\/code><\/td>\n<td>tidak ada izin<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<ul>\n<li>Pemilik file: <code>user<\/code><\/li>\n<li>Grup: <code>group<\/code><\/li>\n<li>Lainnya: <code>other<\/code><\/li>\n<\/ul>\n<hr \/>\n<h3>2. Mengubah Pemilik File<\/h3>\n<pre><code class=\"language-bash\">chown namauser:namagroup namafile\r\n<\/code><\/pre>\n<p>Contoh:<\/p>\n<pre><code class=\"language-bash\">chown siswa1:siswa1 laporan.txt\r\n<\/code><\/pre>\n<hr \/>\n<h3>3. Mengubah Hak Akses (chmod)<\/h3>\n<pre><code class=\"language-bash\">chmod [permission] namafile\r\n<\/code><\/pre>\n<table>\n<thead>\n<tr>\n<th>Kode<\/th>\n<th>Arti<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>7<\/td>\n<td>rwx<\/td>\n<\/tr>\n<tr>\n<td>6<\/td>\n<td>rw-<\/td>\n<\/tr>\n<tr>\n<td>5<\/td>\n<td>r-x<\/td>\n<\/tr>\n<tr>\n<td>4<\/td>\n<td>r&#8211;<\/td>\n<\/tr>\n<tr>\n<td>0<\/td>\n<td>&#8212;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Contoh:<\/p>\n<pre><code class=\"language-bash\">chmod 755 script.sh\r\n<\/code><\/pre>\n<p>Artinya:<\/p>\n<ul>\n<li>Owner: <code>rwx<\/code><\/li>\n<li>Group: <code>r-x<\/code><\/li>\n<li>Other: <code>r-x<\/code><\/li>\n<\/ul>\n<hr \/>\n<h3>4. Contoh Praktik<\/h3>\n<ol>\n<li>Buat user <code>praktikan1<\/code><\/li>\n<li>Buat file <code>data.txt<\/code> di <code>\/home\/praktikan1<\/code><\/li>\n<li>Beri hak akses hanya untuk user tersebut (<code>chmod 700<\/code>)<\/li>\n<li>Uji akses dari user lain<\/li>\n<\/ol>\n<hr \/>\n<h2>\ud83e\uddea <strong>D. Latihan Praktik<\/strong><\/h2>\n<h3>\ud83d\udcbb Tugas Praktik:<\/h3>\n<ol>\n<li>Tambahkan 2 user: <code>siswa1<\/code> dan <code>siswa2<\/code><\/li>\n<li>Buat file <code>ujian.txt<\/code> hanya bisa dibaca oleh <code>siswa1<\/code><\/li>\n<li>Tambahkan <code>siswa1<\/code> ke grup <code>admin<\/code><\/li>\n<li>Hapus user <code>siswa2<\/code> dan direktori home-nya<\/li>\n<\/ol>\n<hr \/>\n<h2>\ud83d\udccc <strong>Kesimpulan<\/strong><\/h2>\n<ul>\n<li>Manajemen user penting untuk keamanan dan pengaturan akses sistem.<\/li>\n<li>Gunakan perintah <code>adduser<\/code>, <code>deluser<\/code>, <code>usermod<\/code> untuk mengelola akun.<\/li>\n<li>Gunakan <code>chmod<\/code> dan <code>chown<\/code> untuk mengatur hak akses file.<\/li>\n<li>Permission yang benar menjaga keamanan dan privasi data pengguna.<\/li>\n<\/ul>\n<hr \/>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ud83c\udfaf Tujuan Pembelajaran Setelah mengikuti materi ini, siswa\/peserta diharapkan dapat: Membuat akun pengguna baru di Linux Debian. Mengatur dan menghapus akun pengguna. Menetapkan hak akses (permission) terhadap file\/direktori. Memahami konsep user, grup, dan permission di sistem Linux. \ud83d\udcda A. Konsep Dasar Manajemen Pengguna 1. Apa itu User di Linux? User (pengguna) adalah entitas yang dapat [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19,20,34,72],"tags":[],"_links":{"self":[{"href":"http:\/\/materi.smkn43jkt.sch.id\/index.php?rest_route=\/wp\/v2\/posts\/5591"}],"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\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/materi.smkn43jkt.sch.id\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5591"}],"version-history":[{"count":3,"href":"http:\/\/materi.smkn43jkt.sch.id\/index.php?rest_route=\/wp\/v2\/posts\/5591\/revisions"}],"predecessor-version":[{"id":5620,"href":"http:\/\/materi.smkn43jkt.sch.id\/index.php?rest_route=\/wp\/v2\/posts\/5591\/revisions\/5620"}],"wp:attachment":[{"href":"http:\/\/materi.smkn43jkt.sch.id\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5591"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/materi.smkn43jkt.sch.id\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5591"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/materi.smkn43jkt.sch.id\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5591"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}