Quantcast
Channel: useradd from jenkins user error: useradd: cannot lock /etc/passwd; try again later - Server Fault
Browsing latest articles
Browse All 2 View Live

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 Article



useradd 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
Browsing latest articles
Browse All 2 View Live




Latest Images