↧
Answer by Freddy for useradd from jenkins user error: useradd: cannot lock...
You could add user jenkins to the wheel group with sudo privileges (as root) usermod -aG wheel jenkins and then use this in your script echo "jenkins-password" | sudo -S /usr/sbin/useradd -p "pass"...
View Articleuseradd from jenkins user error: useradd: cannot lock /etc/passwd; try again...
I run a shell script (Centos 6.7) from jenkins containing this command, in order import root environment: env -i `cat /home/admin/root_environment.sh` /home/admin/create_user.sh The root_environment...
View Article