Z
Z
zilhome2015-03-20 19:25:02
Passwords
zilhome, 2015-03-20 19:25:02

Is it possible to hide a file on ftp for certain users?

There is a conf.php file in the site root which stores the password in the site database.
Often there is a need to give FTP access to some developers, but you don't want them to get access to the database. Is there any way to hide this file from them?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
O
oia, 2015-03-20
@oia

chmod

M
Maxim Kudryavtsev, 2015-03-20
@kumaxim

For shared hosting, the only way to "hide" a file is to encrypt it, ie. close the ionCube or Zend Encoder file you need.
If there was access to the console, i.e. at least VDS, it would be possible to fool around with the rights a little, but since it is not there, I will not describe this method.
To get started, write to the support of your hosting provider and ask if they have ionCude (or Zend) Loader on their hosting. The essence of this encryption is the encoding of a text script into a bytecode, i.e. when you open the file in a text editor, you will see some kind of meaningless set of characters, but for PHP it will still be meaningful code. Wikipedia about Zend says:
ionCude does pretty much the same thing. The question is which is better? I sympathize more with Zend myself. once quite actively worked with their instruments. ionCude I can't say better or worse, because I almost never encountered it.
ZendEncoder has been on the torrents for a long time, but I saw a form of online encryption on the ionCube website. So decide for yourself what you like best. Both solutions will do the job for you.

S
SagePtr, 2015-03-21
@SagePtr

The only option is to give permissions to the file so that neither the user nor the scripts loaded into the folder can read it. If the user can upload the script and read through it, there is no point in protecting it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question