Damn Small Linux (DSL) Forums

Damn Small Linux => Other Help Topics => Topic started by: jcdq on August 09, 2016, 07:28:19 AM



Title: Change user name at boot
Post by: jcdq on August 09, 2016, 07:28:19 AM
Hello, friends!
How can I change user name (and passwd) at boot?


Title: Re: Change user name at boot
Post by: CNK on August 11, 2016, 10:52:11 PM
I'm not sure how you would change the default User Name "DSL" which is started at boot to something else (though you can of course change the password associated with it using the passwd command). There will be a way, but I'm not sure of it.

However if you are happy for the system to change from user DSL to user jcdq during the boot process, you can put an "su jcdq" command at the end of /opt/bootlocal.sh. In theory it will then pause the boot process and ask you for a password, then resume as normal. If it doesn't resume as normal, you will have to look at where in the OS configuration files X is started.

If, as is usual, your home directory as user jcdq is different to /home/dsl, you will need to copy equivalent configuration files to you jcdq home directory, eg. .xinitrc, .jwmrc ...


Title: Change user name at boot
Post by: jcdq on August 12, 2016, 04:42:32 AM
Thank you, CNK. This information is useful for me!  ;D


Title: Change user name at boot
Post by: Lizavials on January 22, 2017, 10:33:29 PM
OK, that explains it.  I thought I was "not" seeing things.  I approved your post, assuming that you knew whereof you spake.  And, I do now see the option to change user name.


Powered by SMF 1.1.20 | SMF © 2013, Simple Machines