Categories
OpenBSD

play with doas system utility

Openbsd have doas to enable user execute program as another user. This is similar to linux’s sudo but actually doas is much simpler because most user dont use 99% of sudo features ( i read that on internet …)

man page for doas (man doas)

doas need configuration files /etc/doas.conf

man doas.conf to see detail and sample

i set my user to be able to execute all program as root in my doas.conf

test the setting by doing ls to /root

without doas, ls /root will fail with error message permission denied.

with doas, ls /root will run just OK.

so is it the same like sudo or not ?

hmmmm …

 

Categories
OpenBSD

Mengubah Tanggal di OpenBSD (Set Date Time )

Mengubah tanggal dan waktu di OpenBSD melalui shell bisa menggunakan perintah sbb :

date yyyyMMddhhmm

misalkan mau mengubah ke tanggal 25 may 2017 jam 15:27 maka lakukan sbb :

su digunakan untuk mendapatkan wewenang root supaya perintah date tidak gagal. Asumsinya kita login menggunakan user biasa ya …

simple !