As I said, once I get this done right I'll want to write a little How-To guide (possibly editing this very thread). My observations:
After this is done a service can be enabled on the created tree by issuing (taking dbus for an example):
OBSERVATION
When enabling a service on my new user tree the following will happen:
QUESTION
- obarun-install creates a root user with a password prompted by the script and in the last step a custom named super user with root privileges with a password prompted by the script.
- The root user will be assigned an ID of 0 whereas the resulting super user will be assigned an ID of 1000.
- The root user will be assigned two 66 trees by default, one for booting the system, one for its own services; the super user will not be assigned any tree
- The root user will have a working scandir by default the super user will not
spiderman@ obarun ~ % 66-tree -ncE AwesomeTreeForSpecificDE
where -n wants to say "new tree", -c makes it the "current" tree and -E "enables" it. This is a no brainer and works flawlessly.After this is done a service can be enabled on the created tree by issuing (taking dbus for an example):
spiderman@ obarun ~ % 66-enable -S dbus-user
where -S will "start" that service in the same run.OBSERVATION
When enabling a service on my new user tree the following will happen:
66-enable: info: Enabled successfully: dbus-user
66-enable: fatal: scandir: /run/66/scandir/1000 is not running: No such file or directory
This is easy enough to understand but I'm not sure what to do now. The most intuitive thing was me trying to create the scandir for that user:
spiderman@ obarun ~ % 66-scandir -c
This indeed created /run/66/scandir/1000/* but it will not be started anyways. When i start the scandir with the -u option, it is a foreground process and will render the console inaccessible. Also after a reboot the scandir will be destroyed and I need to create it again.QUESTION
- What is the correct way to handle this?
- Are there more necessary steps to create a user from ground up other than creating the users tree and getting its scandir up and running?