Setting OpenSSH sftp umask to 002
From: Paul McGarry (paul.mcgarry_at_gmail.com)
Date: 09/16/05
- Previous message: Dale Dellutri: "Re: embedding sshd into a server"
- Next in thread: Richard E. Silverman: "Re: Setting OpenSSH sftp umask to 002"
- Reply: Richard E. Silverman: "Re: Setting OpenSSH sftp umask to 002"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 15 Sep 2005 20:50:45 -0700
I have a linux (Ubuntu Hoary) server where I want to set the default
umask to 002. I've modified /etc/profile so that it has "umask 002"
rather than "umask 022". This works as expected:
======
paulm@ubuntu:~$ ssh localhost
Password:
You have new mail.
Last login: Thu Sep 15 12:25:21 2005 from 192.168.5.40
paulm@dev:~$ mkdir testa
paulm@dev:~$ ls -l | grep test
drwxrwxr-x 2 paulm devgroup 4096 2005-09-16 13:43 testa
paulm@dev:~$ exit
logout
Connection to localhost closed.
======
However, when using sftp the umask doesn't seem to be picked up:
======
paulm@ubuntu:~$ sftp localhost
Connecting to localhost...
Password:
sftp> mkdir testb
sftp> ls -l test*
drwxrwxr-x 0 1000 1001 4096 Sep 16 13:43 testa/
drwxr-xr-x 0 1000 1001 4096 Sep 16 13:46 testb/
======
Is the OpenSSH sftp-server not capable of picking up the umask or have
I missed something?
Paul
- Previous message: Dale Dellutri: "Re: embedding sshd into a server"
- Next in thread: Richard E. Silverman: "Re: Setting OpenSSH sftp umask to 002"
- Reply: Richard E. Silverman: "Re: Setting OpenSSH sftp umask to 002"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|