[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

I have some questions about using SSH as a fileserver. I hope

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 5
Thread images: 2

File: sftp.png (180KB, 505x439px) Image search: [Google]
sftp.png
180KB, 505x439px
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
>>
File: thanks.jpg (91KB, 600x781px) Image search: [Google]
thanks.jpg
91KB, 600x781px
>>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.
Thread posts: 5
Thread images: 2


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.