Skip to main content

User not in the sudoers file This incident will be reported

User not in the sudoers file This incident will be reported can happens dues to multiple reasons and it’s up to us that how we identify the issue. We know that in UNIX like systems root is the super user account. It is a great mistake, if you have only and only root user in your operating system because a single mistake or wrong command can cause a great problem as well.

User not in the sudoers file This incident will be reported

Well, back to point, on Debian based Linux flavors this error can be a reason of broken sudo or easy term corrupted sudoers. Broken sudoers has multiple reason, most important are as below;
  1. User must resides in the sudo or admin group and one should not remove it.
  2. The /etc/sudoers file was altered to prevent users in sudo or admin group from elevating their privileges to that of root using sudo command.
  3. Confirm if the correct permission (dr--r----- or 0440) are setup on /etc/sudoers.
We need the sudo command to gain super user privileges to perform various task, if we face deny usage of sudo due to any reason, many of our crucial task might get delayed. I will discuss possible solutions in this post, if you have something more to share, please show up in comments and let me to add this in the post.

Solutions:

  • Sudo Privileges : You need to confirm that either you username has the sudoer privileges or you need to ask the system Administrator to add this user to sudoer. Here is the simple command, when can let you to check this;
    • sudo -l -U ftpadmin
     

  • Invoke Suoder Privileges : If you are assure that you are have the admin or sudoer priviledges than it might need us to to invoke sudoer privileges by simply adding su before any command. It will prompt for the root password and you can get your work done.
    • [root@localhost ~]# su [command]

Comments

Popular posts from this blog

Event 7026 : Service Control Manager Logfile : System - cdrom

You may be face  Event 7026 on your Windows systems and as this Event shows that " The following boot-start or system-start driver(s) failed to load: cdrom ", you may be wonder that why it is happening while system don't have any CDROM connected with it. In my scenario, I start explore and comes to know that in registry, cdrom service is set to 1 that indicate that it is a system / boot type device. Cause: Normally this error / Event ID indicates that there were priviously a CDROM was installed and now Physical Drive is no more connected but its services is up and running. Solution: You simple need to disable or set to manual cdrom in registry as under; Click on Start > RUN > Type regedit  and Press Enter   Navigate to  HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\cdrom Find Subkey Name Start Type REG_DWORD Set its Data Type to 3 ( Manual ) or 4  (  Disable  ) Important Link: http://support.microsoft.c...

Setting up per connection Limit Bandwidth on MikroTik Router

Generally, I do not prefer to add any unwanted restriction on the network user until its required due to some Administration reason. I know, there are more ways to tackle this setting up per connection Limit Bandwidth on MikroTik Router question comes into one’s mind but I resolve my concern while using MikroTik PCQs feature in MikroTik Queue Type and then calling this Queue Type to Simple Queue. There are more options for setting up per connection Limit Bandwidth on MikroTik Router but please share your concern to add anything else in this article. Let’s start to add our configurations; I am using WinBox for this Article but you can use anything you are convenient to use. Let’s start Step by Step procedure for Setting up per connection Limit Bandwidth on MikroTik Router, any version.  Setup Queue Types After Successful Login, click on Queues menu. Navigate to Queue Types and Press Add + (Plus Sign) to add a new Queue Type. Type a Name like in my scenario,...

Linux Admin - Nginx Server Interview Question and Answers

What is Nginx Server? Nginx (pronounced "engine x") is an open source web server and a reverse proxy server for HTTP, SMTP, POP3, and IMAP protocols, with a strong focus on high concurrency, performance and low memory usage. What is the Best Usage of Ngins Server? Nginx can deploy dynamic HTTP content on a network using FastCGI, SCGI handlers for scripts, WSGI application servers or Phusion Passenger module, and it can serve as a software load balancer. What’s the Difference between Apache Web Server and Nginx? Nginx uses an asynchronous event-driven approach to handling requests, instead of the Apache HTTP Server model that defaults to a threaded or process-oriented approach. Nginx's event-driven approach can provide more predictable performance under high loads. Describe Some Best Features of Nginx? Simultaneous Connections with low memory, Auto Indexing, Load Balancing, Reverse Proxy with Caching, Fault Tolerance What is the Configuration File for Nginx and...