Welcome!
Important information
-- Spectre and Meltdown vulnerabilities
-- Change in MX sources

News
-- MX Linux on social media: here
-- Mepis support still here

Current releases
-- MX-17.1 Final release info here
-- antiX-17 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

change original installation username

Help for Current Versions of MX
Post Reply
Message
Author
arky217
Forum Novice
Forum  Novice
Posts: 38
Joined: Mon Jun 19, 2017 6:00 pm

change original installation username

#1 Post by arky217 » Mon Nov 05, 2018 8:40 pm

If I use the MX snapshot tool to create an .iso file of my installation that I have configured
exactly like I want it and I want to use that .iso to create a live USB to install MX on another
person's computer so that the installation is exactly like mine, there appears to be is no provision
in the installation to use a different username.

I don't want to select the new user snapshot option when creating the .iso file because then I would have
to do all the configuration again (setting up the desktop, configuring the browser, etc.).

So, my question is, can I change the original installation username after the installation,
or will that completely screw up the system ?

If it is possible, is the following the correct command to do so ?

usermod -l login-name old-name (where login-name would be the new username and old-name the current one)

And if that will work, do I need to do anything else ?

For example, will that command also change the previous username folder under the home folder
to the new username or will I have to do that as well ?

User avatar
fehlix
Forum Guide
Forum Guide
Posts: 2068
Joined: Wed Apr 11, 2018 5:09 pm

Re: change original installation username

#2 Post by fehlix » Mon Nov 05, 2018 9:13 pm

arky217 wrote:
Mon Nov 05, 2018 8:40 pm
So, my question is, can I change the original installation username after the installation,
or will that completely screw up the system ?

If it is possible, is the following the correct command to do so ?

usermod -l login-name old-name (where login-name would be the new username and old-name the current one)

And if that will work, do I need to do anything else ?

For example, will that command also change the previous username folder under the home folder
to the new username or will I have to do that as well ?
Such an option is not realy provided. Esp. after the fact. You coul do somethin in preparation.
But afterwards, lot#s of changes, e.g with the settings e.g.
man usermod | grep -A3 -- --login
-l, --login NEW_LOGIN
The name of the user will be changed from LOGIN to NEW_LOGIN. Nothing else
is changed. In particular, the user's home directory or mail spool should
probably be renamed manually to reflect the new login name.
You might try create a new user, copy over with MX-user the whole home from demo to that new user,
and see how far you can go with that new user.
I know, that's a bit missing, to provide a bullet prove rename my user, so evrything will work afterwards.
...
:puppy:
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

User avatar
dolphin_oracle
Forum Veteran
Forum Veteran
Posts: 9655
Joined: Sun Dec 16, 2007 1:17 pm

Re: change original installation username

#3 Post by dolphin_oracle » Mon Nov 05, 2018 9:15 pm

as fehlix said, there will be lots of changes. at a minimum, you'll need to rename the home folder I think. and if you've got things in the home folder that use specific paths (conky, bluetooth) you might need to change some file paths as well. that might also include some of the Xfce configuration files, depending on what kind of customizations you've done.

when I do snapshots for other people to use, I sync back any changed config files in the home folder back to /etc/skel/.config. files in that directory become the basis for new user home folders, and you'll find the mx defaults in there. If you do that, then you can use the non-personal snapshot version and the installer will present the normal user creation screen at the end of the install.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad T530 - MX-17
lenovo s21e & 100s - antiX-17, MX17(live-usb)
FYI: mx "test" repo is not the same thing as debian testing repo.

Post Reply

Return to “MX Help”