Praktikum Chmod dan Chown
Langkah langkah :
1. Buka software Debian sehingga keluar prompt :
1. Buka software Debian sehingga keluar prompt :
sembarang login:
 2.Masuk ke user
root dengan mengetik root dan passwordnya
sembarang login:root
password : 
sehingga keluar user root
sebagai berikut :
root@sembarang
:~#  
3. Masuk ke user Home
dengan mengetik :
 root@sembarang
:~#  cd /home
 root@sembarang
:/home #  
 4. Buat 4 file
kosong dengan perintah touch
root@sembarang :/home
#  touch lintang
root@sembarang :/home
#  touch marfuah
root@sembarang :/home
#  touch bagus
root@semarang :/home
#  touch nehaya
root@sembarang :/home
#  touch yana
5. Lihat file file
tersebut dengan perintah ls -l
 root@sembarang
:/home #  ls -l
 akan muncul file
file di atas sebagai berikut :
-rw-r--r-- 1 root root 0
okt  21 12:38 bagus
-rw-r--r--
1 root root 0 okt  21 12:37 lintang
-rw-r--r-- 1 root root 0
okt  21 12:37 mafuah
-rw-r--r-- 1 root root 0 okt  21 12:38 nehaya
drwxr-xr-x 2 sembarang
sembarang 4096 okt  21 12:33 sembarang
-rw-r--r-- 1 root root 0
okt  21 12:38 yana
6. Ubahlah permission file file di atas dengan perintah sebagai berikut :
root@sembarang :/home # chmod 655 lintang
root@sembarang :/home #
chmod 455 marfuah
root@sembarang :/home #
chmod 465 bagus
root@sembarang :/home #
chmod 254 nehaya
root@sembarang :/home #
chmod 265 yana
7. Lihat file file
tersebut dengan perintah ls -l
 root@sembarang
:/home #  ls -l 
akan muncul file file di
atas sebagai berikut :
-rw-r-xr-x 1 root root 0 okt
21 12:38 bagus
-r--r-xr-x 1 root root 0 okt
21 12:37 lintang
-r--rw-r-x 1 root root 0 okt
21 12:37 marfuah 
--w-r-xr-- 1 root root 0 okt
21 12:38 nehaya
--w-r-xr-- 1 root root 0
okt 21 12:38 yana
8. Ubahlah kepemilikan ke empat file tersebut dengan perintah : chown
root@sembarang :/home #
chown owner821:group821 lintang
root@sembarang :/home #
chown owner822:group822  marfuah
root@sembarang :/home #
chown owner823:group823  bagus
 root@sembarang :/home # chown owner826:group826  nehaya 
root@sembarang :/home #
chown owner838:group838  yana
9. Lihat file file tersebut dengan perintah ls -l
 root@sembarang
:/home #  ls -l 
akan muncul file file di
atas sebagai berikut :
-rw-r-xr-x 1 owner 821 group821  okt 21 12:38 lintang 
-r--r-xr-x 1 owner 822 group822 okt
22 12:37 marfuah 
-r--rw-r-x 1 owner 823 group823 okt
21 12:37 bagus
--w-r-xr-- 1  owner 826 group826 okt 21 12:38 nehaya
--w-r-xr-- 1  owner 838 group838 okt 21 12:38 yana
Virus-free. www.avast.com
Tidak ada komentar:
Posting Komentar