I installed Fedora 19 recently but wasn't paying attention when setting up the username portion of the installation. As a result I had an abbreviated form of my full name as a user name.
So I used the system utility to change is to my preferred username. Problem is my home directory is still named my old username and at lightdm logon I have to type in my new username and password ( which is the same). The logon screen doesn't offer me my new name, but still offers the old name. Anyway to fix ???
Thanks
Am 09.07.2013 01:58, schrieb Frank McCormick:
I installed Fedora 19 recently but wasn't paying attention when setting up the username portion of the installation. As a result I had an abbreviated form of my full name as a user name.
So I used the system utility to change is to my preferred username. Problem is my home directory is still named my old username and at lightdm logon I have to type in my new username and password ( which is the same). The logon screen doesn't offer me my new name, but still offers the old name. Anyway to fix ???
* log out * CTRL+ALT+F2 * login as root in the terminal * mv /home/olderuser /home/newuser * nano /etc/passwd * edit the line with your user, looks like below * systemctl restart lightdm.service
if you don't have "nano" installed use vi or whatever console editor or "yum install nano" __________________________
column 5 is the real name column 6 the homedir column 7 the edfault shell
[harry@srv-rhsoft:~]$ cat /etc/passwd | grep harry harry:x:500:501:Reindl Harald:/home/harry:/usr/bin/bash
On 07/08/2013 08:05 PM, Reindl Harald wrote:
Am 09.07.2013 01:58, schrieb Frank McCormick:
I installed Fedora 19 recently but wasn't paying attention when setting up the username portion of the installation. As a result I had an abbreviated form of my full name as a user name.
So I used the system utility to change is to my preferred username. Problem is my home directory is still named my old username and at lightdm logon I have to type in my new username and password ( which is the same). The logon screen doesn't offer me my new name, but still offers the old name. Anyway to fix ???
- log out
- CTRL+ALT+F2
- login as root in the terminal
- mv /home/olderuser /home/newuser
- nano /etc/passwd
- edit the line with your user, looks like below
- systemctl restart lightdm.service
if you don't have "nano" installed use vi or whatever console editor or "yum install nano" __________________________
column 5 is the real name column 6 the homedir column 7 the edfault shell
[harry@srv-rhsoft:~]$ cat /etc/passwd | grep harry harry:x:500:501:Reindl Harald:/home/harry:/usr/bin/bash
Did all the above but lightdm still only offers a login under my real name. I'd like to get it back to how it was earlier...that is my login name as my username..not as my real name.
frank:x:1000:1000:Frank McCormick:/home/frank:/bin/bash
It appears Lightdm uses only the real name as a choice..anything else and you have to type in in as "other"
On 07/08/2013 08:37 PM, Frank McCormick wrote:
On 07/08/2013 08:05 PM, Reindl Harald wrote:
Am 09.07.2013 01:58, schrieb Frank McCormick:
I installed Fedora 19 recently but wasn't paying attention when setting up the username portion of the installation. As a result I had an abbreviated form of my full name as a user name.
So I used the system utility to change is to my preferred username. Problem is my home directory is still named my old username and at lightdm logon I have to type in my new username and password ( which is the same). The logon screen doesn't offer me my new name, but still offers the old name. Anyway to fix ???
- log out
- CTRL+ALT+F2
- login as root in the terminal
- mv /home/olderuser /home/newuser
- nano /etc/passwd
- edit the line with your user, looks like below
- systemctl restart lightdm.service
if you don't have "nano" installed use vi or whatever console editor or "yum install nano" __________________________
column 5 is the real name column 6 the homedir column 7 the edfault shell
[harry@srv-rhsoft:~]$ cat /etc/passwd | grep harry harry:x:500:501:Reindl Harald:/home/harry:/usr/bin/bash
Did all the above but lightdm still only offers a login under my real name. I'd like to get it back to how it was earlier...that is my login name as my username..not as my real name.
frank:x:1000:1000:Frank McCormick:/home/frank:/bin/bash
It appears Lightdm uses only the real name as a choice..anything else and you have to type in in as "other"
Yup. Had to re-edit passwd and change my real name to my-almost-real-name and then lightdm offers to let him login.
Teach me to doze while installing :)
On Mon, Jul 08, 2013 at 07:58:06PM -0400, Frank McCormick wrote:
I installed Fedora 19 recently but wasn't paying attention when setting up the username portion of the installation. As a result I had an abbreviated form of my full name as a user name.
So I used the system utility to change is to my preferred username. Problem is my home directory is still named my old username and at lightdm logon I have to type in my new username and password ( which is the same). The logon screen doesn't offer me my new name, but still offers the old name. Anyway to fix ???
I think this is normal, because too many things could go wrong in moving files around. The non-GUI "usermod" tool will do it, tough.
After the fact, you can log in as root, make sure nothing is running as your user account (use ps and kill), and then
usermod username --move-home --home /home/username username
should do it.
On Mon, 8 Jul 2013, Frank McCormick wrote:
I installed Fedora 19 recently but wasn't paying attention when setting up the username portion of the installation. As a result I had an abbreviated form of my full name as a user name.
So I used the system utility to change is to my preferred username. Problem is my home directory is still named my old username and at lightdm logon I have to type in my new username and password ( which is the same). The logon screen doesn't offer me my new name, but still offers the old name. Anyway to fix ???
Thanks
I do it the lazy way.
1) backup the user directory 2) delete the user using userdel -r 3) create the acct you want using useradd -m 4) add whatever stuff you want from the backup to the new directory, use chmod and chgrp as appropriate
billo