LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Change user name Mint 19.2 Cinnamon (https://www.linuxquestions.org/questions/linux-general-1/change-user-name-mint-19-2-cinnamon-4175660114/)

dwhb 08-31-2019 09:02 AM

Change user name Mint 19.2 Cinnamon
 
Hi
I am passing on a NUCi5 to my sister but can't seem to change the username I used when I installed for myself to my sister's name. If I add her as another user with same administrative privilege, I can delete myself but all my settings which I want to keep for her is lost.

Password can be changed, but I can't figure out how to change my name to hers. Only a single user is what I would like to be able to achieve. :banghead:

Any help would be appreciated. Thanks so much in advance.:hattip:

Firerat 08-31-2019 10:55 AM

man usermod

Quote:

-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.

-d, --home HOME_DIR
The user's new login directory.

If the -m option is given, the contents of the current home directory will be moved to the new home directory, which is created if
it does not already exist.



note it is a small L


read through teh whole manpage, it is not too long

Firerat 08-31-2019 10:59 AM

you might have to do this from another account

login as root ( if you can )
or create a new user ( with sudo access ), login , do the usermod then logout and delete the new user you created.


All times are GMT -5. The time now is 08:49 AM.