1 / 4

Izin Mengakses File (1)

Izin Mengakses File (1). Unix membagi 3 kelas yang berhak mengakses sebuah file : Owner, yaitu pemakai yangmenciptakan file

ivana
Download Presentation

Izin Mengakses File (1)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Izin Mengakses File (1) Unix membagi 3 kelas yang berhak mengakses sebuah file : Owner, yaitu pemakai yangmenciptakan file Group, kelompok dari sejumlah pemakai (setiap pemakai mempunyai group misalnyasejumlah orang yang terlibat dalam sebuah proyek mempunyai group yang sama dan berhak mengakses suatu file dengan hak akses yang sama). Other, pemakai diluar owner dan group. UNIX juga memberikan 3 jenis model akses terhadap sebuah file,yaitu : Read adalah izin untuk membaca file atau nama file yang ada pada sebuah direktori Write adalah izin untuk memodifikasi, menciptakan atau menghapus entri di direktori. Execute, adalah izin untuk mengeksekusi file (file executable seperti who, cal, atau file shell script).

  2. Izin Mengakses File (2) • r w x r w x r w x owner Group Other • Tanda yang digunakan untuk mengakses file adalah : r = hak read w = hak write x = hak execute - = tak ada izin • r w x r w x - - x Menyatakan bahwa owner dan group mempunyai izin read, write dan execute, tetapi other hanya memiliki izin execute • r w x - - - - - - Menyatakan bahwa owner mempunyai izin read, write dan execute, tetapi group & other sama sekali tidak memiliki akses file

  3. Mengubah Model Akses & Kepemilikan File (1) • Perintah yang berkaitan dengan model akses dn kepemiliki file atau direktori yaitu ; • Chmod (change mode) • Chown (change owner) • Chgrp (change group) • Format perintah chmod • Chmod mode [file] [direktori] mengunakan mode berupa 3 digit kode oktal untuk menyatakan hak aksesnya misal : $ chmod 640 fx  berarti memberikan hak akses read write pada owner dan hak akses read pada group 110 100 000 6 4 0 • Chmod [ugoa]{+|-|=} [rwx|ugo] [file\direktori] chmod u-x fx  menghapus hak execute pada user (owner) chmod go=rw fx  memberikan hak read & write pada user group &other

  4. Mengubah Model Akses & Kepemilikan File (2) • Format perintah chgrp Chgrp group_baru file • Misal : $ls -1 fx  melihat format isi dari file fx -rw-rw-r- 1 kadir unix1 Chgrp root fx  merubah group dari file -rw-rw-r- 1 kadir root • Format perintah chown Chown owner_baru file • Misal : $ls -1 fx  melihat format isi dari file fx -rw-rw-r- 1 kadir unix1 Chown sinta fx  merubah owner ke user lain -rw-rw-r- 1 sinta root

More Related