[Buildroot] Successfully creating a new user

Marc Murphy marcmltd at marcm.co.uk
Tue Oct 10 21:25:35 UTC 2017


>-----Original Message-----
>From: buildroot [mailto:buildroot-bounces at busybox.net] On Behalf Of Jan
>Schmidt
>Sent: 09 October 2017 22:29
>To: buildroot at busybox.net
>Subject: Re: [Buildroot] Successfully creating a new user
>
>On 09.10.2017 23:01, Marc Murphy wrote:
>> Hello,
>> Currently using buildroot-2017.02 and trying to add a user.
>>
>> I have been reading through the documentation about adding new users to
>my image and declared the path to the users file using
>BR2_ROOTFS_USERS_TABLES, this points to a file new_users in my
>board/boardname folder.
>>
>> To test I used the defined example user:
>> test 8000 wheel -1 = - /bin/sh - Test user
>
>> test:x:8000:10:Test user^M:/:/bin/sh
>>
>> What is generating the ^M ??
>> Even if I edit passwd and remove the ^M I can't log in.
>
>
>Hi Marc,
>
>"Test user" is the last column at your file. Could it be, that you saved it DOS
>formatted with CRLF line ending?
>
>jan
>
Hi Jan
I have had another go and recreated everything, this time it worked :)

As you say it could be a windows/linux battle for line ending.....
Previously I used Visual Studio to edit the file I created with touch and vi.
This time I just used vi.

Onto folder permissions now.

Thanks again
Marc
>_______________________________________________
>buildroot mailing list
>buildroot at busybox.net
>http://lists.busybox.net/mailman/listinfo/buildroot



More information about the buildroot mailing list