•  Home
  •  Dashboard
  •  Company
    • About Us
    • Blog
    • Careers
    • Contact Us
    • Data Centers
    • Looking Glass
    • Network
    • Reseller
  •  Hosting Services
    • Infrastructure
      • iColocation
    • Compute
      • cMetal
      • cVirtual
    • Storage
      • sObject
      • sBlock
    • Networking
      • nCDN
      • nIP Transit
      • nWavelength
    • Protection
      • pBackup
      • pDDoS
  •  Solutions
    • Ecommerce
    • Finance
    • Gaming
    • Hosting
    • Management
    • Security
    • System Integrator
  •  Support
    • Community
    • Knowledge Base
    • Open A Ticket
  •  USA & Canada: 800-933-1517
  •  International: 626-549-2801
  •  Email: sales@psychz.net
  • Services
    • new-colocation-header-img
      Infrastructure
      • iColocation
    • new-compute-header-img
      Compute
      • cMetal
      • cVirtual
    • new-storage-header-img
      Storage
      • sObject
      • sBlock
    • new-networking-header-img
      Networking
      • nCDN
      • nIP Transit
      • nWavelength
    • new-protection-header-img
      Protection
      • pBackup
      • pDDoS
  • Solutions
    • Ecommerce
    • Security
    • Gaming
    • Hosting
    • Management
    • Finance
    • System Integrator
  • Dashboard

How to add user to sudoers?

  • Home
  • Client
  • Qa Forum
  • How to add user to sudoers?

Posted By: Test | 1 Replies | Last Reply On: Sep 23, 2015 14:49:24

sudoers, users

How to add user to sudoers?

Psychz - Luis

Votes: 0Posted On: Sep 23, 2015 14:49:24
 

Mark,

In all Linux systems giving regular users the privilege to run root level commands is part of setting up a secure system. It is never recommended to allow normal users the ability to operate root level commands due to potential compromises to the user level that can lead to a system wide comprise. Visudo can be used to allow normal users the permissions to run root level commands while still being login as the user account.   

Running the command visudo will open the visudo conf editor which allows the root user to add users to the sudoers list. Search for the follow lines and edit-add the user admin to the visudo list.

 

 ## Next comes the main part: which users can run what software on
 ## which machines (the sudoers file can be shared between multiple
 ## systems).
 ## Syntax:
 ##
 ##      user    MACHINE=COMMANDS
 ##
 ## The COMMANDS section may have other options added to it.
 ##
 ## Allow root to run any commands anywhere
 root    ALL=(ALL)       ALL
 admin ALL=(ALL)    ALL

 

Ubuntu and Debian format might change but normally the visudo editor gives examples how to add users to the vsudoers list.

Was this reply helpful?

Related topics

  • Add user to sudoers Centos
  • Centos - Add User To Group
  • Is it possible to add more hardware to the Colocation servers. If so how?
  • How to change user password in Linux?
  • Delete User In Linux
  • CDN and Load Balancer: Ultimate combination for efficient content delivery
  • CDN Hosting and why Every website should utilize a CDN
  • In Comparison: Windows VS Linux
  • The Ultimate Guide to Choosing the Best Data Center Location
  • Benefits of a multi-CDN environment
  • Firewalld commands for CentOS 7 and CentOS 8
  • How to temporarily/permanently enable DDoS IP diversion for a Single IP Address?
  • Guide to establish a GRE Tunnel and BGP peering session on MikroTik RouterOS
  • Enable/Disable HTTP2
  • How to move existing domain from one CDN device to another
Copyright © 2025 Psychz Networks,
A Profuse Solutions Inc Company
Hosting Services
Infrastructure
  • iColocation
Compute
  • cMetal
  • cVirtual
Storage
  • sObject
  • sBlock
Networking
  • nCDN
  • nIP Transit
  • nWavelength
Protection
  • pBackup
  • pDDoS
Company
  • About Us
  • Blog
  • Careers
  • Contact Us
  • Data Centers
  • Looking Glass
  • Network
  • Reseller
Policies
  • Acceptable Usage Policy
  • Privacy Policy
  • Service Level Agreement
  • Terms and Conditions
Support
  • Community
  • Knowledge Base
  • Open A Ticket
Get In Touch
  • Psychz Networks,
    A Profuse Solutions Company
    611 Wilshire Blvd #300
    Los Angeles,California 90017
    USA
  • US/Canada: 800-933-1517
  • International: 626-549-2801