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...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 02-12-2011 #1
- Join Date
- Feb 2011
Usermod Cant to change home directory
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 ..
- 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 #3
- Join Date
- Jul 2008
- Anaheim, CA
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.