Where do I set up the file creation mask permissions for Secure FTP over SSH (SFTP)?
IIRC it uses the users login shell, but I think in non-interactive mode, which means $BASH_ENV is called to be sourced. If that's not the case (meaning it uses interactive mode), then it depends on if it uses the shell as login shell or not. If it's a login shell in interactive mode, then the same $BASH_ENV will be sourced (in case of bash, ~/.bashrc), else it's the sequence "/etc/profile, ~/.bash_profile, ~/.bash_login, and ~/.profile", in that order.
Add echo statements to each file and you'd find out easy enough.
|