Results 1 to 3 of 3
hi ,
usermod -d /mnt/sda2/home/uo u
usermod: user u is currently logged in
i was try to change home directory via /etc/passwd but nothing happen ..
Linux Ubuntu...
- 02-12-2011 #1Just Joined!
- Join Date
- Feb 2011
- Posts
- 3
Usermod Cant to change home directory
hi ,
usermod -d /mnt/sda2/home/uo u
usermod: user u is currently logged in
i was try to change home directory via /etc/passwd but nothing happen ..
Linux Ubuntu
- 02-12-2011 #2
You can't change your home directory when you're logged in. You will have to log in as another user first. You can add a new user with admin rights, log out, then log in as the other user and make the directory change. After insuring everything works, you can delete the temporary user if you want, or leave it intact just in case.
- 02-13-2011 #3Linux Newbie
- Join Date
- Jul 2008
- Location
- Anaheim, CA
- Posts
- 114
I've found that I can't modify the user if they've logged in already, whether or not they are currently logged in. I would personally restart the computer, use another TTY, log in as root in the TTY, and handle it from there, without logging in as the user to be modified.


Reply With Quote
