You are on page 1of 3

Putri Norma Gupita 0810680051

Assignment(1) useradd= menambah user baru usermod= memodifikasi user yang sudah ada userdel=menghapus user yang sudah ada Groupadd= menambah goup baru groupmod= memodifikasi group yang sudah ada gpasswd= mengganti password group yang sudah ada groupdel= menghapus group yang sudah ada

Assignment(2)

Masuk sebagai root


[falconnie@dir ~]$ su Password: [root@dir falconnie]#su [root@dir ~]#

Membuat direktory eureka


[root@dir ~]#mkdir eureka

Membuat group dengan nama eureka


[root@dir ~]#groupadd eureka

Membuat user dan memasukkan user tersebut ke group eureka


[root@dir [root@dir [root@dir [root@dir [root@dir [root@dir ~]# ~]# ~]# ~]# ~]# ~]# useradd useradd useradd useradd useradd useradd alice -g eureka -e 2011-10-25 bob -g eureka -e 2011-10-25 sally -g eureka -e 2011-10-25 peter -g eureka -e 2011-10-25 greg -g eureka -e 2011-10-25 paul -g eureka -e 2011-10-25

Mengeset password 123456 ke seluruh user yang dibuat


[root@dir ~]# passwd alice Changing password for user alice New UNIX password:

BAD PASSWORD : It is to simplistic/systematic Retype new UNIX password: passwd: All authentication tokens updated successfully [root@dir ~]# passwd bob Changing password for user bob New UNIX password: BAD PASSWORD : It is to simplistic/systematic Retype new UNIX password: passwd: All authentication tokens updated successfully [root@dir ~]# passwd sally Changing password for user sally New UNIX password: BAD PASSWORD : It is to simplistic/systematic Retype new UNIX password: passwd: All authentication tokens updated successfully [root@dir ~]# passwd peter Changing password for user peter New UNIX password: BAD PASSWORD : It is to simplistic/systematic Retype new UNIX password: passwd: All authentication tokens updated successfully [root@dir ~]# passwd greg Changing password for user greg New UNIX password: BAD PASSWORD : It is to simplistic/systematic Retype new UNIX password: passwd: All authentication tokens updated successfully [root@dir ~]# passwd paul Changing password for user paul New UNIX password: BAD PASSWORD : It is to simplistic/systematic Retype new UNIX password: passwd: All authentication tokens updated successfully [root@dir ~]# alice : eureka [root@dir ~]# bob : eureka [root@dir ~]# sally : eureka [root@dir ~]# peter : eureka [root@dir ~]# greg : eureka [root@dir ~]# paul : eureka groups alice groups bob groups sally groups peter # groups greg groups paul

Membuat folder home ke user yang dibuat

[root@dir [root@dir [root@dir [root@dir [root@dir [root@dir

~]# ~]# ~]# ~]# ~]# ~]#

usermod alice -d /home/eureka/ usermod bob -d /home/eureka/ usermod sally -d /home/eureka/ usermod peter -d /home/eureka/ usermod greg -d /home/eureka/ usermod paul -d /home/eureka/

Membuat crontab agar user tersebut dihapus pada tanggal 25 Oktober 2011
[root@dir ~]# crontab -e no crontab for root - using an empty one /*isi crontab*/ 00 00 25 10 * userdel 00 00 25 10 * userdel 00 00 25 10 * userdel 00 00 25 10 * userdel 00 00 25 10 * userdel 00 00 25 10 * userdel alice bob sally peter greg paul

crontab: installing new crontab

You might also like