adding users in readonly file system
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.
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.
Signature · 1 line
Michael Rommel, Erlangen, Germany
Quoted 13 lines · On Sep 11, 2013, at 8:06 , sajjadi335 <[email protected]> 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?
Quoted 7 lines
--
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>
Quoted 10 lines · 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
Signature · 6 lines
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