User Not in Sudoers File

 


“User Not in Sudoers File – Linux Sudo Permission Denied Error”

Introduction

While working as an Oracle DBA, especially during Oracle Grid Infrastructure or Database installation, you may encounter this common Linux error:

learnomate is not in the sudoers file.
This incident will be reported.
This error typically appears when trying to execute administrative commands using sudo in Linux, but the user does not have proper sudo privileges.

Solution:

You need to boot into GRUB → edit mode
  1. Restart system
  2. Open GRUB menu
  3. Select Ubuntu line
  4. Press e (edit)

Now find this line:

linux   /boot/vmlinuz....

At the end of that line, replace:

ro quiet splash

with:

rw init=/bin/bash

Then boot using:
✅ Ctrl + X or F10

✅ After boot you will get root shell directly

Now run:

1) Remount properly
mount -o remount,rw /
2) Set root password
passwd root
3) Give sudo access to your user
usermod -aG sudo learnomate
4) Reboot
exec /sbin/reboot -f

Important

After reboot, login and test:

sudo su -

Conclusion

If you want to build a strong career as an Oracle DBA, mastering Linux is not optional — it is essential. Combining Linux expertise with Oracle database administration skills makes you highly valuable in the IT industry.

Start learning Linux today and strengthen your Oracle DBA foundation.

Comments

Popular posts from this blog

Oracle Background Processes

Troubleshooting Techniques for Oracle Database Issues

Oracle RAC Background Processes