Hello all:

I want to add a user that is available on the target system. I understand this 
has to be done through a startup script but I'm not able to get it to work. I 
best option I have found is:

    printf "password123\npassword123\n" | adduser myuser

The user gets added (in /etc/passwd and /etc/shadow) but the password is not 
accepted. The out is:

Changing password for myuser
New password:
Retype password:
passwd: password for myuser is unchanged

I have read that adduser may use /dev/tty instead of stdin? I'd appreciate any 
help in getting this to work.

Thanks,

Rick H
_______________________________________________
LTIB home page: http://ltib.org

Ltib mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/ltib

Reply via email to