I want to change the default home directory of a user from this:
User: john
Default home: /home/john
To this:
User: john
Home: /var/www/project/new-home
How could i do that?
What i've tried so far is use usermod:
usermod -m -d /var/www/project/john john
It worked for one user, but i've got two users, john & sarah, and when i tried the same for sarah it said:
usermod: no changes