Nama : Hamdan Lutfi M
Nim : 2015091048
Laporan SO Modul 9



PERCOBAAN
Percobaan 1: Ijin Akses
1. Melihat identitas diri melalui etc/passwd atau etc/group, informasi apa ditampilkan ?
# id
H:\TUGAS\SI 2015 B\Sistem Operasi\data\modul6-7\Screenshot from 2017-05-29 13_21_45.png
# grep <user> /etc/passwd
H:\TUGAS\SI 2015 B\Sistem Operasi\data\modul6-7\Screenshot from 2017-05-29 13_23_16.png
# grep [nomor group id] /etc/group
H:\TUGAS\SI 2015 B\Sistem Operasi\data\modul6-7\Screenshot from 2017-05-29 13_24_25.png

2. Memeriksa direktori home
# ls –ld /home/<user>H:\TUGAS\SI 2015 B\Sistem Operasi\data\modul6-7\Screenshot from 2017-05-29 13_25_15.png

3. Mengubah Ijin akses (chmod). Perhatikan ijin akses setiap perubahan!
# touch f1 f2 f3
H:\TUGAS\SI 2015 B\Sistem Operasi\data\modul6-7\Screenshot from 2017-05-29 13_41_51.png
# ls -l
H:\TUGAS\SI 2015 B\Sistem Operasi\data\modul6-7\Screenshot from 2017-05-29 13_42_07.png
# chmod u+x f1
H:\TUGAS\SI 2015 B\Sistem Operasi\data\modul6-7\Screenshot from 2017-05-29 13_42_27.png
# ls –l f1
H:\TUGAS\SI 2015 B\Sistem Operasi\data\modul6-7\Screenshot from 2017-05-29 13_42_43.png
# chmod g=w f1
H:\TUGAS\SI 2015 B\Sistem Operasi\data\modul6-7\Screenshot from 2017-05-29 13_43_01.png
# ls –l f1
H:\TUGAS\SI 2015 B\Sistem Operasi\data\modul6-7\Screenshot from 2017-05-29 13_43_25.png
# chmod o-r f1
H:\TUGAS\SI 2015 B\Sistem Operasi\data\modul6-7\Screenshot from 2017-05-29 13_47_54.png
# ls –l f1
H:\TUGAS\SI 2015 B\Sistem Operasi\data\modul6-7\Screenshot from 2017-05-29 13_48_23.png
# chmod a=x f2
H:\TUGAS\SI 2015 B\Sistem Operasi\data\modul6-7\Screenshot from 2017-05-29 13_48_36.png
# ls –l f2
H:\TUGAS\SI 2015 B\Sistem Operasi\data\modul6-7\Screenshot from 2017-05-29 13_48_50.png
# chmod u+x,g-r,o=w f3
H:\TUGAS\SI 2015 B\Sistem Operasi\data\modul6-7\Screenshot from 2017-05-29 13_49_44.png
# ls –l f3
H:\TUGAS\SI 2015 B\Sistem Operasi\data\modul6-7\Screenshot from 2017-05-29 13_49_56.png
# chmod 751 f1
H:\TUGAS\SI 2015 B\Sistem Operasi\data\modul6-7\Screenshot from 2017-05-29 13_50_14.png
# chmod 624 f2
H:\TUGAS\SI 2015 B\Sistem Operasi\data\modul6-7\Screenshot from 2017-05-29 13_50_25.png
# chmod 430 f3
H:\TUGAS\SI 2015 B\Sistem Operasi\data\modul6-7\Screenshot from 2017-05-29 13_50_37.png
# ls –l f1 f2 f3
H:\TUGAS\SI 2015 B\Sistem Operasi\data\modul6-7\Screenshot from 2017-05-29 13_50_54.png

4. Mengganti kepemilikan perintah masuk ke root digunakan pengganti kepemilikan tersebut.
# su root
H:\TUGAS\SI 2015 B\Sistem Operasi\data\modul6-7\Screenshot from 2017-05-29 13_52_52.png
# echo Hallo > f1
H:\TUGAS\SI 2015 B\Sistem Operasi\data\modul6-7\Screenshot from 2017-05-29 13_54_05.png


# chown <user-baru> f1
H:\TUGAS\SI 2015 B\Sistem Operasi\data\modul6-7\Screenshot from 2017-05-29 13_56_17.png
# ls –l f1
H:\TUGAS\SI 2015 B\Sistem Operasi\data\modul6-7\Screenshot from 2017-05-29 13_56_48.png

5. Ubahlah ijin akses home directory <user> student pada root sehingga <user-baru> student1 pada satu group dapat mengakses home direktory <user>.
# chmod g+rwx /home/<user>
H:\TUGAS\SI 2015 B\Sistem Operasi\data\modul6-7\Screenshot from 2017-05-29 14_02_33.png
# ls –l /home
H:\TUGAS\SI 2015 B\Sistem Operasi\data\modul6-7\Screenshot from 2017-05-29 13_56_28.png
# exit
H:\TUGAS\SI 2015 B\Sistem Operasi\data\modul6-7\Screenshot from 2017-05-29 14_12_57.png

6. Sekarang cobalah untuk subtitute user ke <user-baru>
# su <user-baru>
H:\TUGAS\SI 2015 B\Sistem Operasi\data\modul6-7\Screenshot from 2017-05-29 14_02_33.png
# ls –l f1
H:\TUGAS\SI 2015 B\Sistem Operasi\data\modul6-7\Screenshot from 2017-05-29 14_02_49.png
# cat f1
H:\TUGAS\SI 2015 B\Sistem Operasi\data\modul6-7\Screenshot from 2017-05-29 14_03_08.png

7. Mengubah group dengan perintah chgrp
# $ grep root /etc/group
H:\TUGAS\SI 2015 B\Sistem Operasi\data\modul6-7\Screenshot from 2017-05-29 14_03_26.png
# grep other /etc/group
H:\TUGAS\SI 2015 B\Sistem Operasi\data\modul6-7\Screenshot from 2017-05-29 14_03_41.png
# su
H:\TUGAS\SI 2015 B\Sistem Operasi\data\modul6-7\Screenshot from 2017-05-29 14_05_02.png
# chgrp root f3
#ls –l f3
H:\TUGAS\SI 2015 B\Sistem Operasi\data\modul6-7\Screenshot from 2017-05-29 14_11_28.png
# chgrp <group-baru> f3
H:\TUGAS\SI 2015 B\Sistem Operasi\data\modul6-7\Screenshot from 2017-05-29 14_12_30.png
# ls –l f3
H:\TUGAS\SI 2015 B\Sistem Operasi\data\modul6-7\Screenshot from 2017-05-29 14_12_50.png
# exit
H:\TUGAS\SI 2015 B\Sistem Operasi\data\modul6-7\Screenshot from 2017-05-29 14_12_57.png


Percobaan 2: Use Mask
1. Menentukan ijin akses awal pada saat file atau direktori dibuat
# touch mylife
H:\TUGAS\SI 2015 B\Sistem Operasi\data\modul6-7\Screenshot from 2017-05-29 14_13_31.png
#ls –l mylife
H:\TUGAS\SI 2015 B\Sistem Operasi\data\modul6-7\Screenshot from 2017-05-29 14_13_43.png

2. Melihat nilai masuk
# umask
H:\TUGAS\SI 2015 B\Sistem Operasi\data\modul6-7\Screenshot from 2017-05-29 14_13_50.png

3. Modifikasi nilai masuk
# umask 027
H:\TUGAS\SI 2015 B\Sistem Operasi\data\modul6-7\Screenshot from 2017-05-29 14_13_58.png

# umask
H:\TUGAS\SI 2015 B\Sistem Operasi\data\modul6-7\Screenshot from 2017-05-29 14_14_04.png
# touch file_baru
H:\TUGAS\SI 2015 B\Sistem Operasi\data\modul6-7\Screenshot from 2017-05-29 14_14_21.png
# mkdir mydir
H:\TUGAS\SI 2015 B\Sistem Operasi\data\modul6-7\Screenshot from 2017-05-29 14_14_30.png
# ls –l
H:\TUGAS\SI 2015 B\Sistem Operasi\data\modul6-7\Screenshot from 2017-05-29 14_14_40.png
# umask 077
H:\TUGAS\SI 2015 B\Sistem Operasi\data\modul6-7\Screenshot from 2017-05-29 14_14_51.png
# touch xfiles
H:\TUGAS\SI 2015 B\Sistem Operasi\data\modul6-7\Screenshot from 2017-05-29 14_15_03.png
# mkdir xdir
H:\TUGAS\SI 2015 B\Sistem Operasi\data\modul6-7\Screenshot from 2017-05-29 14_15_13.png
# ls –l

H:\TUGAS\SI 2015 B\Sistem Operasi\data\modul6-7\Screenshot from 2017-05-29 14_15_20.png

Komentar

Postingan populer dari blog ini