Hi,
I bumped into something today. When adding new users and groups from the command line,
I went back to the webUI just to save the settings.
However, after a reboot of the box, these settings are not persistent.
How do I make useradd, usermod, and groupadd changes persistent after a reboot? By the way, is there a command-line version of the webUI "Save Settings" feature?
On Thursday, 3 March 2016 14:52:35 UTC, Daniel Kho wrote:Hi,
I bumped into something today. When adding new users and groups from the command line,And what happens if you create them using the Setup->Users webUI?In which filesystem is the Alt-F folder? A plain non-encrypted filesystem?And where is the 'Users' folder? Alt-F keeps the users homedir in a folder called 'Users' that is linked to /home when the filesystem is discovered during hotplugging.
I went back to the webUI just to save the settings.You can use 'loadsave_settings' from the command line, try it just to see its usage.
However, after a reboot of the box, these settings are not persistent.Settings are stored in flash, and loaded into the root filesystem (in memory) at boot time; when the 'Alt-F' folder is discovered during disk hotplug it starts being used, shadowing the corresponding files and folders from the root (memory based) filesystem.How do I make useradd, usermod, and groupadd changes persistent after a reboot? By the way, is there a command-line version of the webUI "Save Settings" feature?Use 'loadsave-settings'.The box "identity" is stored in flash, not disk, so that you can swap disks at will. There are some limitations on this original design, which was originated by the fact that hot swapping disks was mechanically easy to do on the DNS-321/323/325; that is not true anymore on the new 320L/327L, although you can still hot-plug/remove disks.So you can't think of Alt-F as a classical disk-based linux distro.
I did something like this:
sudo groupadd dev;
sudo usermod -l user-name1 username
sudo usermod -g dev user-name1;
sudo useradd -g dev user-name2;
sudo usermod -a -G users user-name1;
sudo usermod -a -G users user-name2;
Previously I have created all the required user directories already, and these are persistent:
sudo mkdir /home/user-name1;
sudo mkdir /home/user-name2;
- dan
How do I make useradd, usermod, and groupadd changes persistent after a reboot? By the way, is there a command-line version of the webUI "Save Settings" feature?Use 'loadsave-settings'.