On Thursday, February 21, 2013 11:26:20 AM UTC-8,
jgonz...@gmail.com wrote:
> I create a script to create an account on a remote server that does not let you log into the server with the root account. I was able to create the account but I have not been able to put in a password for the account I created. I then just took the command su - root -c "echo -e "Ch9ng3m3\nCh9ng3m3\n" | passwd joh" out of the script and ran it on the remote server locally command line on the server and it still does not work. When I log in as root and run the command echo -e "Ch9ng3m3\nCh9ng3m3\n" | passwd joh it does work.
I forgot to show the error I am getting. The builds account run root commands on the server.
$ id
uid=500(builds) gid=501(builds) groups=501(builds),10(wheel) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
$ su - root -c "echo -e "Ch9ng3m3\nCh9ng3m3\n" | passwd joh"
Changing password for user joh.
New password: Retype new password: Password change aborted.
New password: Password change aborted.
New password: Password change aborted.
passwd: Have exhausted maximum number of retries for service
$