Joachim Backes wrote: > Mattia Gandolfi wrote: >> arora.himanshu@xxxxxxxxx wrote: >>> Hi, >>> I want to change my home directory from /home/me to >>> /tmp/me without getting root involved. It also means that whether I >>> do ssh or scp or ftp or telnet it should see my home directory as >>> /tmp/me. Any suggestions ? >>> >>> Thanks, >>> >> >> usermod -dm /tmp/me <your_username> > > You are sure? The manpage says: > > CAVEATS > usermod will not allow you to change the name of a user who is > logged in. > > How to do it without logging in (as root or user)? > > That only applies if you are changing the name, not if you are using the other options. For example, if you were changing the name of the user who has the user number (UID) 513 from joe to frank, then you can not do it if joe is logged in. On the other hand, you need root permissions to change the home directory this way, so it will not do what you are after. Users are not supposed to be able to change their home directory. Mikkel -- Do not meddle in the affairs of dragons, for thou art crunchy and taste good with Ketchup! -- fedora-list mailing list fedora-list@xxxxxxxxxx To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list