문제

I installed OpenSSH server and set up SFTP users. When SFTP user logs in via FTP client, they see three files - .bashrc,.bash_profile and .bash_logout.

How can i hide them from users? If it matters, there are will be multiple users each one mapped to it's own directory.

올바른 솔루션이 없습니다

다른 팁

These files only make sense for shell logins so assuming you don't expect your SFTP users log onto the machine using rsh/ssh, you can get rid of these files.

One more thing, I am not SFTP expert but at least for traditional FTP it is considered insecure to let users FTP to their home directory. Unless it is required, consider using a sandbox directory.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top