Is there a way to change ssh/sftp folders
I have recently set up a CentOS file server, and I'm trying to limit my users' access in ssh and sftp, to non-OS related files. I have set up my file server so that CentOS runs on a small HDD, and my File server all my publicly available files are on one, large HDD. what I'm trying to do is limit my users who ssh and sftp in, to my second drive. by default, ssh and FTP bring users to /home/*user*/. I'm trying to make it so that when they ssh in it by default brings them to /media/*file server*/
Ideally, I'd like to keep all user files inside the OS drive, and all their navigation inside the File sever; but the latter is the more important so, if I can't have the best of both worlds, I'll settle for that. any help is appreciated! thanks in advance!