I have some questions about using SSH as a fileserver. I hope you can help me answer the following :
I am setting up a file server. I use ssh for this purpose because I think it is the best option for linux users.
It seems simple enough to just do chmod 0600 on the users directory. The real problem is setting permissions on all the stuff he should NOT have permission to. Obviously he needs access to the ssh commands or else he won't be able to use the server for the upload/download purpose. Does this mean I should restrict all the commands he should not ? And how would this affect the system as a whole ?
I looked up chroot as an option, but I think there might be better options out there ?
I am not scared of the user doing bad things. The problem would be someone getting access to the server trough the users account.
Install gentoo
allow only sftp with `ForceCommand internal-sftp`
before this feature was added it could be done with a restricted shell
>>62456295
thank you so much !
This probably saved me hours if not days of wonky setup process and messing around with chroot
>>62456180
reminds me of
>set up vsftp
>make a basic ass user account with proper home directory blah blah
>ftp in
>mfw its showing root directory
>mfw this other account can see all of the directories on the computer
>chroot jail and all kinds of shit
>mfw it can still see all of this other shit
I hadnt fucked with the permissions for anything.
I had to manually go though and chmod -R everything it wasnt supposed to be able to see.. I feel violated.