* [Buildroot] adding users in readonly file system
@ 2013-09-11 6:06 sajjadi335
2013-09-11 18:40 ` Michael Rommel
2013-09-11 21:04 ` Arnout Vandecappelle
0 siblings, 2 replies; 3+ messages in thread
From: sajjadi335 @ 2013-09-11 6:06 UTC (permalink / raw)
To: buildroot
Hi
I have searched for a while for this, but have not been able to find
anything. I am not familiar with how linux manages users. So this might be
something obvious I don't know.
My problem is I have an embedded system with a readonly root fs, and I want
to
- add a user to the system.
- Change both the root and the user password.
How could that be done?
--
View this message in context: http://buildroot-busybox.2317881.n4.nabble.com/adding-users-in-readonly-file-system-tp51085.html
Sent from the Buildroot (busybox) mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] adding users in readonly file system
2013-09-11 6:06 [Buildroot] adding users in readonly file system sajjadi335
@ 2013-09-11 18:40 ` Michael Rommel
2013-09-11 21:04 ` Arnout Vandecappelle
1 sibling, 0 replies; 3+ messages in thread
From: Michael Rommel @ 2013-09-11 18:40 UTC (permalink / raw)
To: buildroot
Hi,
if you are using buildroot to create the readonly fs, you have two options:
- either add the user to the appropriate files in the "target" or output/target
subdirectory, where the source files are that are used to create the real
file system image under "images"
- use the menu item "System Configuration" -> "Root filesystem
overlay directories" to keep your edited files separate, but have them
incorporated into your final image during/after your build.
Michael.
--
Michael Rommel, Erlangen, Germany
On Sep 11, 2013, at 8:06 , sajjadi335 <sajjadi335@yahoo.com> wrote:
> Hi
>
> I have searched for a while for this, but have not been able to find
> anything. I am not familiar with how linux manages users. So this might be
> something obvious I don't know.
> My problem is I have an embedded system with a readonly root fs, and I want
> to
> - add a user to the system.
> - Change both the root and the user password.
> How could that be done?
>
>
>
> --
> View this message in context: http://buildroot-busybox.2317881.n4.nabble.com/adding-users-in-readonly-file-system-tp51085.html
> Sent from the Buildroot (busybox) mailing list archive at Nabble.com.
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20130911/c1303bb0/attachment.html>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] adding users in readonly file system
2013-09-11 6:06 [Buildroot] adding users in readonly file system sajjadi335
2013-09-11 18:40 ` Michael Rommel
@ 2013-09-11 21:04 ` Arnout Vandecappelle
1 sibling, 0 replies; 3+ messages in thread
From: Arnout Vandecappelle @ 2013-09-11 21:04 UTC (permalink / raw)
To: buildroot
On 11/09/13 08:06, sajjadi335 wrote:
> Hi
>
> I have searched for a while for this, but have not been able to find
> anything. I am not familiar with how linux manages users. So this might be
> something obvious I don't know.
> My problem is I have an embedded system with a readonly root fs, and I want
> to
> - add a user to the system.
> - Change both the root and the user password.
> How could that be done?
The users are in /etc/passwd and the passwords in /etc/shadow. If you
need to be able to modify these at runtime, you can move them to
$(TARGET_DIR)/tmp in the post-build script and make symlinks to them.
Regards,
Arnout
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286500
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-09-11 21:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-11 6:06 [Buildroot] adding users in readonly file system sajjadi335
2013-09-11 18:40 ` Michael Rommel
2013-09-11 21:04 ` Arnout Vandecappelle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox