Re: how to get username use another home directory

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

 



Globe Trotter wrote:
> Thanks! I wonder that myself, sometimes, but it is for historical
> reasons. In the days that there was no rpms, I used to keep locally
> installed programs there and did not want it wiped out with every
> new tinkering. I still use some of them, but all options are set to
> use /usr/local/trotter, etc.

>>     # usermod -m --home /usr/local/trotter trotter
>>
>> The -m option moves the current home dir to the new dir.
>> Obviously, you don't want trotter logged in when you do this.
>
> Thanks! However, does it not wipe out the /usr/local/trotter
> directory. I just want to get rid of the /home/trotter and make
> everything point to /usr/local/trotter directory (which exists from
> an earlier installation).
>
> I haven't actually tried this, but am just wondering.

I would guess that it would, in which case you'd want to omit the -m
option.  But I can't say that I've tried this anytime in recent
memory.

> Isn't it is a better option to allow for a home directory to be
> chosen at installation? I have never figured out why Fedora does not
> allow this choice (with a default).

I suppose it is very uncommon for folks wanting to change the location
of /home.  Usually you would just make /home a separate partition to
achieve this (and may very well do the same for /usr/local).  Those
options are available in the installer, of course.

If you wanted to make useradd and system-config-users default to a
different location for user home dirs, you can do that as well by
editing /etc/default/useradd and changing the HOME setting.  That
could be done via kickstart even.

Basically, I think that what you want is generally outside of the
majority of use cases.  And when you're in that position, you
sometimes have to do a little tinkering on your own. :)

-- 
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Happiness is good health and a bad memory.
    -- Ingrid Bergman (1917-1982)

Attachment: pgpTsSQt609M9.pgp
Description: PGP signature

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[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