[id]Kemarin dikejutkan dengan sebuah kasus di Ubuntu 13.04. Saat mau menginstall printer, ternyata password root yang saya masukkan tidak diterima. Ketika lewat Terminal dimasukkan perintah “sudo su”, malah keluar tulisan “… is not in the sudoers file”. Setelah saya teliti, ternyata user account saya berubah dari Administrator menjadi Standard. Intinya, saya kehilangan akun Administrator saya, sehingga tidak punya hak akses root.
Di Ubuntu, ini bisa jadi masalah yang pelik. Karena beberapa hal mengharuskan akses root, termasuk menginstall aplikasi-aplikasi baru, hingga perintah-perintah penting di Terminal.
Rupanya solusinya cukup mudah, meskipun sempat bingung juga.
Langkah 1. Restart komputer.
Langkah 2. Masuk ke GRUB dan pilih Recovery Mode
Langkah 3. Pilih mode root. Di sini kita akan dibawa pada Ubuntu versi teks.
Langkah 4. Ketikkan perintah-perintah berikut:
mount -o rw,remount /
adduser <username> sudo
exit
Pada <username> silakan masukkan username Anda. Misal username Anda adalah “linux”, maka perintahnya menjadi adduser linux sudo.
Sekarang, Anda sudah mendapatkan kembali hak akses sebagai Administrator.[/id]
[en]Yesterday I was shocked by an error in my Ubuntu 13.04. When I was installing a printer, Ubuntu didn’t accept my root password. Via Terminal, I typed “sudo su” there was a message “… is not in the sudoers file”. After I checked, I found that my user account changed from Administrator to Standard. In short, I lost my Administrator account and my root privilege access.
In Ubuntu, this can be an emergency problem, because you need a root access to do a lot of important command.
The solution is very much simple.
Step 1. Restart the computer.
Step 2. Enter the GRUB and choose Recovery Mode.
Step 3. Choose root mode. Ubuntu will bring you to a text command windows.
Step 4. Type these commands:
mount -o re,remount /
adduser <username> sudo
exit
Type your own username. For example, if your username is “linux”, the command: adduser linux sudo. Now, you have our Administrator account again.[/en]
=======<0>=======
Jika tulisan saya berguna untuk Anda, bolehlah sedikit saweran untuk menyemangati saya berkarya.
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
