10 years ago, the article _fedora10root Login

fedora10 system root user and ordinary users to use sudo command
1. Problem: fedora10 default is not able to log in directly as root user
Solution:
we can first regular user to log on
$ su
#vi /etc/pam.d/gdm
delete a row ! auth required pam_succeed_if.so user = root quiet
cancellation can log back in as root
2. question: ordinary users superuser privileges sudo to perform
#visudo
locate the following line, add the appropriate line below to set the root user's row
# the Allow root to the any RUN # commands Anywhere 
root ALL = (ALL) ALL
lydstory ALL = (ALL) NOPASSWD: AL
in lydstory user:
$ sudo Service Start httpd
command directly executed successfully, the configuration is correct.

Guess you like

Origin www.cnblogs.com/hshy/p/10927699.html