Re: Changing home directory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux