How can I put a user in a default directory when the logs in via SSH on Ubuntu? Currently, users are in ~
but I want them in something like /path/to/something
. How is this configured? The machine will always have the path.
Many thanks :).
How can I put a user in a default directory when the logs in via SSH on Ubuntu? Currently, users are in ~
but I want them in something like /path/to/something
. How is this configured? The machine will always have the path.
Many thanks :).
If you want to keep the users home directory but change the dirextory where they login to then you would have to add a cd /path/to/something
at the end of the /etc/profile
or $HOME/.profile
If you want to change the home directory of a user, you can use:
$ sudo usermod -d /path/to/new/home username