Suppose I have a home directory called "website".
I want to create an sftp user to access that home folder and the sftp user is going to have a less obvious user name. There may be quite a few users like this so I am wondering if I can create these new sftp users without a home directory of their own and send them to the "website" directory.
I tried this by using usermod -m -d and then deleting the new users home folder but got access denied when logging in.
Best Answer
Groups!
Add the users you want to share this directory to the group.
Give group proper permissions to /some/dir. 775 is just an example.
Assign /some/dir as the home directory for your users.
Voila.