Re: usermod not moving home directory

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

 



Steven Stromer wrote:
T. Horsnell wrote:
On fresh install of FC6

usermod -d /home/subdir/[accountname] -m [username]

seems to execute without error, but neither creates the directory /home/subdir/[accountname], nor moves any of the files from the original location of /home/[accountname]. It does change the account's settings to point to /home/subdir/[accountname] as the location of the account's home directory. So, it seems like the -d switch is working, and it is the -m switch that is not performing properly.

FYI, the /home/subdir directory already exists, and I've tried creating the directory /home/subdir/[accountname], and then executing usermod as above, all with the same results.


Agreed. As far as I can tell, usermod behaves exactly as you describe.
Looks like a bug.

Terry.

Am I misunderstanding use of the -m switch? Any ideas? Thanks.

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list


Reported as bug. Thanks.

https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=213569

UPDATE BY ORIGINAL POSTER:
I have updated shadow-utils based on last night's update (11/1/06) to shadow-utils.i386 4.0.17-8.fc6 and usermod's -m switch now works properly again. However, in either the version that ships with FC6, shadow-utils - 2:4.0.17-5.i386, or an interim version (2:4.0.17-6 or 2:4.0.17-7, if they exist) the -m switch DID NOT WORK FOR ME. Update if you experience this problem.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux