Friday, December 28, 2012

RedHat: sudo enablement

there are 2 files should be changed:

/etc/sudoers

1. Add user:
aniu01 ALL=(ALL) ALL
or
aniu01 ALL= NOPASSWD: /sbin
or
aniu01, %ccusers ALL= NOPASSWD: /sbin/pvscan, /sbin/vgscan
2. Add group
%wheel ALL=(ALL) ALL
or
%ccusers ALL= NOPASSWD: /sbin/pvscan, /sbin/vgscan

/etc/pam.d/su
add below entry:
auth            required        pam_ccusers.so use_uid

No comments:

Post a Comment