useradd pamuser
echo "pamuser:Pam2022" | chpasswd
echo "pamuser ALL=(root) NOPASSWD: /bin/grep, /usr/bin/passwd, /bin/egrep" >> /etc/sudoers
No comments:
Post a Comment