restore user to /home2 not working

exlhost

Verified User
Joined
Jan 13, 2017
Messages
223
Location
NL
Hello all

We have setup a second home dir lets say /home2 of a diffirent drive / location

Creating new users on it and everything is working fine

We would like to restore a bigger user to this new home2 and we select the path before restoring but it keeps restoring the user to the normal /home direction

Anyone has a solution?

Is this workable or should we manually copy the files of this user?
 
Did you also created the home_override_list in directadmin?

BACKUP & RESTORE If specified, this value will be set in the user.conf during account creation. So DA will attempt to restore it to this same path. However, you must have already setup the home_override_list in the directadmin.conf, or the value will be ignored.
 
Yes

we select the new /home2 path before executing the restore from the dropdown list

We have this in the directadmin config
home_override_list=/home:/disk/home2

Where home2 is the second home directory

Or should it be only
home_override_list=/disk/home2
?
 
No it should be both the /home and /home2 otherwise you can't restore to /home anymore if you leave that out.
But if it works on creating a new user, it must be the same as in the package.
Is it /disk/home2 there too, or is it just /home2 or is it /mnt/home2 in there?

Also, for older users this will not change automatically, but you can check like stated in the docs:
CMD_SHOW_USER?user=username will show the *current* /home2 path if home_override_list is set (/etc/passwd) BUT if the user.conf create_user_home_override does not match the current home path from /etc/passwd, then a warning is shown in column 3: "Does not match setting: /home"

This command is in fact (I presume you know that)
https://yourdomain.com:2222/CMD_SHOW_USER?user=username
 
Back
Top