when i open new users terminal it starts in old users home
Hi
I added a new user. But if I start a terminal session on gnome or file browser or something it always starts in the home directory of another user. If i do "cd" it jumps back to the home dir correctly. Any ideas? |
Take a look at /etc/passwd -- you've (possibly) re-used the UID (that's the number, not the name).
The fields in /etc/passwd are
Note that your system uses shadow passwords -- there should only be an x in the optional encrypted password field (and don't monkey with it!). If you do have duplicate entries (as above), you'll need to use the usermod utility to fix the one you just added (leave the old one alone); the "fix" is to change the UID to one that is not used. Most systems start UIDs at 1000 and go up by one for each additional user, so if the duplicate is, say, 1010 and there is not 1011, simply change the new UID to 1011. The user accounts are found at the bottom of /etc/passwd. Note that you can, if you're careful, manually edit /etc/passwd as root or with sudo. Make a backup copy first, then edit (carefully!) with your favorite text editor. Also note that if the problem is a duplicate UID and you change the new user UID you will need to run Code:
chown -R username /home/username |
Ok I will try this, thanks alot!
|
All times are GMT -5. The time now is 06:21 AM. |