In linux, how does one allow ordinary users to use sudo without entering a password?
Source: Internet
Author: User
However, when using sudo, you still need to enter the password after setting it. Therefore, after testing, we found that, you also need to create a user group sudo (the name may not necessarily allow common users to use the sudo permission in linux, but does not need to enter the password. in linux, how can common users use the sudo permission without having to enter the password. I can see a lot of information on the Internet, but I can only add the following lines in/etc/sudoers: username ALL = (ALL) NOPASSWD: ALL, but when I actually use sudo, after setting the username, you still need to enter the password. after testing, we found that you also need to create a user group sudo (the name may not have to be sudo) and add username to this group. # Groupadd sudo # userchmod-G sudo username
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.