hi-
Today I switched my linux username and changed to /home/newname. I am doing this because it is not secure to broadcast your username to the world.
At this link:
http://askubuntu.com/questions/34074...ge-my-username
I am wondering if there is a way to do it a little better for me.
Quote:
You can either keep a symlink for backward compatibility, e g ln -s /home/newname /home/oldname or you can change the file contents with sed -i.bak 's/*oldname*/*newname*/g' *list of files* It creates a backup for each file with a .bak extension.
I tried to do a symlink.
It is not working exactly the way I had hoped. I may not understand it.
When I do the command ls -l I had to make an alias command with awk to parse out the user when i display it. That isn't a big deal but I noticed the oldname and newname are in the printout before filtering it with awk.
Also, my old home directory (the one that matches my /home/oldname is not deleted).
I can log in and the desktop looks fine. I indeed have a new /home/newname.
At one point can I delete the /home/oldname.
Is it okay that ls -l is picking up both usernames (new and old) in separate columns?
I wanted to bounce this off a more experienced user to see if there are some minor adjustments I can do to improve not having 2 home directories and if it is okay for ls -l to display both the old and new user name.
thanks!
mtdew3q