BASH:允许用户的FTP文件到我的服务器没有透露FTP登录凭证给他们 [英] BASH: allow users to FTP files to my server without revealing FTP login credentials to them

查看:178
本文介绍了BASH:允许用户的FTP文件到我的服务器没有透露FTP登录凭证给他们的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个的bash脚本编写的OSX程序。我想使任何人谁拥有这个程序下载到能够将文件FTP到我的服务器(和它与他们的帐户相关联,方便他们存取过程中的东西,)而不允许FTP登录/访问凭证的用户访问。我该怎么做呢?

I have an OSX program written with BASH scripts. I want to enable anyone who has this program downloaded to be able to FTP files to my server (and associate it with their account for them to access the stuff, of course) WITHOUT allowing the user access to the FTP login/access credentials. How do I do this?

我已经有BASH /壳牌,Java和程序C ++的经验,所以如果可以用这些编程语言之一,这将是preferable来完成。然而,任何合适的答案将是足够的。

I already have experience with BASH/Shell, Java, and Procedural C++, so if it can be done with one of these programming languages, that would be preferable. However, Any suitable answer will suffice.

如果有可能提供一个企业 - 或安全的FTP登录凭证的专业水平,这将是最有帮助的。

if it is possible to provide an enterprise- or professional-level of security for the FTP login credentials, that would be most helpful.

我不需要在管理用户帐户或管理他们的访问独占他们的信息咨询。我只提到,说明将在其中操作的上下文。用户数量不确定的需要能够在同一台服务器上访问和存储他们的东西。

I don't need advice on managing user accounts or managing their access to exclusively their information. I only mentioned that to illustrate the context in which it will operate. An indefinite number of users need to be able to access and store their things on the same server.

这个功能不需要基于FTP的解决方案。任何合适的解决方案将是足够的。

This functionality doesn't REQUIRE an FTP-based solution. Any suitable solution will suffice.

推荐答案

如果应用程序需要,需要凭据的远程系统的访问,凭据必须存储在某个地方在应用程序中。

If an application needs an access to a remote system that requires credentials, the credentials have to be stored somewhere in the application.

所有你能做的就是做出艰难的凭据在应用程序中找到(它们混淆)。

All you can do is to make the credentials hard to find in the application (obfuscate them).

什么是特别困难的,如果应用程序脚本,为的是你的情况。

What is particularly difficult, if the application is scripted, as is your case.

请参阅在bash 模糊处理存储的密码。

See Obfuscating stored passwords in bash.

这篇关于BASH:允许用户的FTP文件到我的服务器没有透露FTP登录凭证给他们的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆