•  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

如何将用户添加到sudoers文件?

  • Home
  • Client
  • Qa Forum
  • 如何将用户添加到sudoers文件?

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

sudoers, users

如何将用户添加到sudoers文件?

Psychz - Luis

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

标记,

在所有的Linux系统中,给普通用户运行根级别命令的权限是设置安全系统的一部分。由于可能导致系统范围内的用户级别的潜在危害,所以绝对不允许普通用户操作根级别命令。 Visudo可以用于允许普通用户在仍然以用户帐户登录的情况下运行根级别命令的权限。

运行命令visudo将打开visudo conf编辑器,允许root用户将用户添加到sudoers列表。搜索以下行并编辑 - 将用户管理员添加到visudo列表。

##接下来是主要部分:哪些用户可以运行什么软件
##哪些机器(sudoers文件可以在多个之间共享
##系统)。
## 句法:
##
## user MACHINE = COMMANDS
##
## COMMANDS部分可能添加了其他选项。
##
##允许root在任何地方运行任何命令
根ALL =(ALL)ALL
admin ALL =(ALL)ALL

Ubuntu和Debian格式可能会改变,但通常visudo编辑器可以给出例如何将用户添加到vsudoers列表中。

Was this reply helpful?

Related topics

  • 顶级屏幕录制软件
  • 开源代理服务器解决方案
  • sBlock - Intro
  • SSH without Password
  • Quad Cores Dedicated Server
  • Psychz Features & Product Update For October 2023
  • Manage Gzip
  • Linux Antivirus Software
  • Learn All About Database Sharding
  • How to setup a Dedicated Server for Space Engineers
  • Fastest Dedicated Server Hosting
  • EasyApache 4:比以前更好?
  • Dedicated Server for Online Game
  • Create CDN Domain
  • CDN Hosting and why Every website should utilize a CDN
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