LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 11-17-2003, 09:46 PM   #1
lynnwgnr
Newbie
 
Registered: Aug 2003
Posts: 3

Rep: Reputation: 0
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 !
 
Old 12-01-2003, 12:50 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
shared folder permissions for SFTP jawilson Linux - Networking 1 07-07-2005 02:42 PM
Sftp jefffq Linux - General 7 06-29-2005 02:27 AM
How do I use sftp to upload my web site? (no sftp tar command) johnMG Linux - Networking 6 06-21-2005 09:14 PM
Files truncated by sftp/sftp-server at 65kb gato Linux - Networking 1 12-18-2003 10:29 AM
sftp rafalek *BSD 2 12-11-2003 06:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration