Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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

  2. #2
    Linux Enthusiast sgosnell's Avatar
    Join Date
    Oct 2010
    Baja Oklahoma
    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.

  3. #3
    Linux Newbie
    Join Date
    Jul 2008
    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.

  4. $spacer_open

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts