Useful Commands Linux

List all users with UID >= 1000 awk -F: '($3 >= 1000) {printf "%s:%s\n",$1,$3}' /etc/passwd Add User: #adduser ranto Add user to Sudo Group #usermod -aG sudo┬áranto Verify user can use sudo: #su – ranto ranto$┬ásudo ls -la /root...

Read More..

Install SNMP Service/Daemon on CentOS

Diimplementasikan pada: OS CentOS 6.9 Pastikan anda login sebagai root, dan lakukan step berikut: yum -y install net-snmp net-snmp-utils mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.orig nano /etc/snmp/snmpd.conf rocommunity public sysLocation STRING sysContact STRING sysName STRING /etc/init.d/snmpd start chkconfig snmpd on Seharusnya sudah bisa diakses oleh SNMP Lookup Server, jika masih belum, pastikan allow...

Read More..