I'm trying to create a new user in Linux file system. The file system is read only. I'm not allowed to remount with read/write permission.I tried overlayfs by mounting the read only partition to read/write partition using the below commandmount -t overlay overlay -o lowerdir=/etc,upperdir=/data/etc,workdir=/data/overlayfs_workdir  /etcbut I'm getting the following error when I tried to create a new userroot@a1:~# luseradd testuserError creating group `testuser': error creating `/etc/group-': Text file busyAny thoughts on how to fix this error?
How to create a new user in read only file system?
linux
The problem is that overlay file system doesn't support renaming files.There is a CONFIG_OVERLAY_FS_REDIRECT_DIR kernel configuration which enables this feature and available for kernel version above 4.10, but our Linux kernel version is 3.9; So this is not an option for us.https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/filesystems/overlayfs.txtAnother approach is to change the default path in /etc/libuser.conf of shadow and user files to a read/write directory instead of /etc and copy the files there.Thus all the changes and renaming are done in read/write directory and this path is given as upper directory to mount overlay command.mount -t overlay overlay -o lowerdir=/etc,upperdir=/data/etc,workdir=/data/overlayfs_workdir  /etc