2012
12.20

Recently I needed to “rename” a user (mischa_new -> mischa-new). Personally I find changing only the name a bit ugly and confusing. So this is how I addressed it:

Change username

usermod -l mischa-new mischa_new;

Change home directory (move)

usermod -d /home/mischa-new -m mischa-new;

Change group name

groupmod -n mischa-new mischa_new;

No Comment.

Add Your Comment