Linux sudo configuration Without Password

Source: Internet
Author: User

[Tom @ Agilysys: etc] $ vi/etc/sudoers

#

# Adding HOME to env_keep may enable a user to run unrestricted
# Commands via sudo.
#
# Defaults env_keep + = "HOME"

Defaults secure_path =/sbin:/bin:/usr/sbin:/usr/bin

# 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

# Allows members of the 'sys 'group to run networking, software,
# Service management apps and more.
# % Sys all = networking, software, services, storage, delegating, processes, locate, drivers

# Allows people in group wheel to run all commands
% Wheel all = (all) All

# Same thing without a password
% Wheel all = (all) nopasswd: All

# Allows members of the Users Group to mount and unmount
# CDROM as root
# % Users all =/sbin/Mount/mnt/CDROM,/sbin/umount/mnt/CDROM

# Allows members of the Users Group to shutdown this system
# % Users localhost =/sbin/shutdown-H now

# Read drop-in files from/etc/sudoers. D (the # here does not mean a comment)
# Includedir/etc/sudoers. d

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.