LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   SFTP permissions (https://www.linuxquestions.org/questions/linux-security-4/sftp-permissions-117253/)

lynnwgnr 11-17-2003 09:46 PM

SFTP permissions
 
Where do I set up the file creation mask permissions for Secure FTP over SSH (SFTP)? I set up a user account for SFTP to upload files, but despite changing the umask in the user's .bash_profile every which way, the files this person uploads is always rw-r--r-- I would like to change it so that files uploaded have permissions of rw-rw-r-- Similarly I would like directories created to be rwxrwxr-x BTW I am using Debian 3.0 Woody

Thanks !

unSpawn 12-01-2003 12:50 PM

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.


All times are GMT -5. The time now is 11:05 PM.