Konfigurasi User Disk Quota
Contoh soal:
- Buat user dengan direktori di /data/[user]
- Terapkan quota untuk user
Jawab:
Configuration summary
root@nas-srv1:~#apt get install quota quotatool
root@nas-srv1:~#pico /etc/fstab
...
/dev/sdb1 /data ext4 defaults,usrquota 0 0
root@nas-srv1:~#reboot
root@nas-srv1:~#quotacheck -um /data
root@nas-srv1:~#quotaon -uv /data
root@nas-srv1:~#quotaon -p -a
root@nas-srv1:~#edquota -u nasohi #set quota for a user 'nasohi'
# specify quota. the example below set 1G for it
User used soft hard grace used soft hard grace
----------------------------------------------------------------------
nasohi -- 0 1024000 1024000 0 0 0
root@nas-srv1:~#repquota -a
Screencast:
root@nas-srv1:~#pico /etc/fstab
...
/dev/sdb1 /data ext4 defaults,usrquota 0 0
root@nas-srv1:~#reboot
root@nas-srv1:~#quotacheck -um /data
root@nas-srv1:~#quotaon -uv /data
root@nas-srv1:~#quotaon -p -a
root@nas-srv1:~#edquota -u nasohi #set quota for a user 'nasohi'
# specify quota. the example below set 1G for it
User used soft hard grace used soft hard grace
----------------------------------------------------------------------
nasohi -- 0 1024000 1024000 0 0 0
root@nas-srv1:~#repquota -a
Screencast:
Komentar