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)?

it can only be done logging in as root (or as a user belonging to root group). It can't be done logging is as the user itself (as the manpage correctly says), or as another user (which obviously would not have the permission to do so).

I see no way to do it without logging in at all... you could modify /etc/passwd and "push" it to the machine using wathever you want (scp for example), but this means logging in anyway)

Cheers

Mattia

--
Mattia Gandolfi
Global Professional Services
Red Hat Italia
http://www.redhat.com
begin:vcard
fn:Mattia Gandolfi
n:Gandolfi;Mattia
org:Red Hat Italia;EMEA Global Professional Services
adr:;;via Antonio da Recanate 1;Milano;MI;20124;Italy
email;internet:mgandolf@xxxxxxxxxx
title:Consultant
tel;work:+390297374652
tel;cell:+393346564553
x-mozilla-html:FALSE
url:http://www.redhat.com
version:2.1
end:vcard

-- 
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