Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.


  Search this Thread
Old 12-18-2015, 01:51 AM   #1
LQ Newbie
Registered: Dec 2015
Posts: 1

Rep: Reputation: Disabled
Question Managing(adding/deleting,etc) users in a squashfs(RO file system) with a small R/W partition

I'm using squashfs as the file system on a board which is RO, along with a small jffs2 partition which is R/W. The files corresponding to user management, i.e /etc/passwd, /etc/group & /etc/shadow are all located on the RO partition. Now, there's no way a user may add, delete or modify his credentials using commands such as useradd, usermod,etc.
I'm looking for a way to provide user management options in this system (maybe by using the jffs2 partion?). I'm aware of 2 possible solutions-

1. Move the etc/{passwd,group,shadow} files to the R/W partition & symlink them to the RO partion.
2. Bind mount these files with their respective copies in on the R/W partion.

The problem with solution 1 is that commands like useradd don't accept symlinks & even if they do(by modifying their source) I'm not sure how either solution will be able to edit the /home/{username} directory while adding/deleting/modifying the home directory name as it's RO.

Squashfs is commonly used for small & embedded systems, so what exactly is the solution that is preferred for such scenarios?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
In a cpp application I am deleting a file on a partition, but space is not freeing.. adlingepa Linux - Newbie 3 06-05-2015 05:37 PM
deleting system users antcuenco Linux - Newbie 9 08-18-2010 04:22 AM
Regarding squashfs file system and encryption ashok kumar reddy Linux - General 0 11-20-2009 12:41 AM > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 07:34 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration