On a server, I have mounted a big drive on /home2
in order to store all the user accounts.
Supposedly in order to set the default directory to /home2
, we are supposed to edit /etc/default/useradd
Inside is a line (commented out)
#HOME=/home
which I change to:
HOME=/home2
Yet subsequently, useradd -m
continues to create users home directories in /home
. For the moment, I just mounted the new drive as /home
, and that did work obviously.
Can anyone tell me what I am doing wrong?
0 Answers