Jumat, 12 Oktober 2018

Praktikum Chmod dan Chown

Langkah langkah :
1. Buka software Debian sehingga keluar prompt :
debian123 login:
 2.Masuk ke user root dengan mengetik root dan passwordnya
debian123 login:root
password : 
sehingga keluar user root sebagai berikut :
root@debian123 :~#  
3. Masuk ke user Home dengan mengetik :

 root@debian123 :~#  cd /home
 root@debian123 :/home #  
 4. Buat 4 file kosong dengan perintah touch
root@debian123 :/home #  touch zaenal
root@debian123 :/home #  touch yudi
root@debian123 :/home #  touch yumanto
root@debian123 :/home #  touch wahyudin
5. Lihat file file tersebut dengan perintah ls -l
 root@debian123 :/home #  ls -l

 akan muncul file file di atas sebagai berikut :
-rw-r--r-- 1 root root 0 oct 12 11:20 wahyudin
-rw-r--r-- 1 root root 0 oct 12 11:19 yudi 
-rw-r--r-- 1 root root 0 oct 12 11:19 yumanto
-rw-r--r-- 1 root root 0 oct 12 11:19 zaenal 

6. Ubahlah permission file file di atas dengan perintah sebagai berikut :

root@debian123 :/home # chmod 655 wahyudin
root@debian123 :/home # chmod 455 yudi
root@debian123 :/home # chmod 465 yumanto 
root@debian123 :/home # chmod 254 zaenal
7. Lihat file file tersebut dengan perintah ls -l
 root@debian123 :/home #  ls -l 

akan muncul file file di atas sebagai berikut :
-rw-r-xr-x 1 root root 0 oct 12 11:20 wahyudin
-r--r-xr-x 1 root root 0 oct 12 11:19 yudi 
-r--rw-r-x 1 root root 0 oct 12 11:19 yumanto
--w-r-xr-- 1 root root 0 oct 12 11:19 zaenal 

8.  Ubahlah kepemilikan ke empat file tersebut dengan perintah : chown


root@debian123 :/home # chown pati:jawatengah wahyudin
root@debian123 :/home # chown serang:banten yudi
root@debian123 :/home # chown malang:jawatimur yumanto 
root@debian123 :/home # chown bandung:jawabarat zaenal

9. Lihat file file tersebut dengan perintah ls -l
 root@debian123 :/home #  ls -l 

akan muncul file file di atas sebagai berikut :
-rw-r-xr-x 1 pati jawatengah0 oct 12 11:20 wahyudin
-r--r-xr-x 1 serang banten 0 oct 12 11:19 yudi 
-r--rw-r-x 1 malang jawatimur 0 oct 12 11:19 yumanto
--w-r-xr-- 1 bandung jawabarat 0 oct 12 11:19 zaenal 


Tidak ada komentar:

Posting Komentar