ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ltib] adduser through startup script


From: Rick Hunnicutt
Subject: Re: [Ltib] adduser through startup script
Date: Fri, 21 Feb 2014 11:36:53 -0800 (PST)

Thank you Stuart, great idea!


On Friday, February 21, 2014 12:57 AM, Stuart Hughes <address@hidden> wrote:
Hi Rick,

It would probably be better to override the /etc/passwd and /etc/shadow by placing copies with your pre-defined user/password in config/platform/_your_platform_/merge/etc/....

The simplest way to do this is to get it working on your target then copy the files from the target into the merge directory.

Regards, Stuart

On 20/02/14 20:13, Rick Hunnicutt wrote:
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
address@hidden
https://lists.nongnu.org/mailman/listinfo/ltib




reply via email to

[Prev in Thread] Current Thread [Next in Thread]