Brief
Surmise about user management on CentOS
See the below regarding basic commands
https://gist.github.com/cocoa-maemae/fd29e2e91d0a75226b09b89e2a367231
# How to add user groups
On centos, add a file under /etc/sudoers.d
e.g.
sudo cat /etc/sudoers.d/hoge
%hoge ALL=(ALL) NOPASSWD: ALL
In this example, the left hoge is a group name.
FYI
If sudo visudo is executed, the following can be seen.
## Read drop-in files from /etc/sudoers.d (the # here does not mean a comment)
#includedir /etc/sudoers.d
includedir is commented out, but this is an unique spec, files under /etc/sudoers.d are loaded automatically.
No comments:
Post a Comment