www.centos.org Forum Index CentOS 6 - Software Support CentOS 6 + OpenSSH 5.3 (SFTP file permissions) umask is not working for me.
|
Bottom Previous Topic Next Topic |
| |
|
|
|---|
| Poster | Thread |
|---|
|
Re: CentOS 6 + OpenSSH 5.3 (SFTP file permissions) umask is not working for me. | #2 |
|
|---|---|---|---|
|
Professional Board Member
![]()
Joined: 2005/8/5
From Northern Illinois, USA
Posts: 6184
|
Looks like it is working to me.
0002 is masking out write for others. |
||
Posted on: 2012/5/15 16:53
|
|||
|
Re: CentOS 6 + OpenSSH 5.3 (SFTP file permissions) umask is not working for me. | #3 |
|
|---|---|---|---|
|
Newbie
![]()
Joined: 2012/5/14
From
Posts: 2
|
Hey gerald,
Thank you for your answer, but now, what are your configuration details? I've been playing with this issue for over 40 hrs, this is so frustrating :S Thank you! |
||
Posted on: 2012/5/15 17:39
|
|||
|
Re: CentOS 6 + OpenSSH 5.3 (SFTP file permissions) umask is not working for me. | #4 |
|
|---|---|---|---|
|
Moderator
![]()
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 18773
|
According to BZ#657059 and the 6.1 Technical Notes umask should work, but they are sketchy on the details.
The Deployment Guide OpenSSH chapter mentions local_umask. |
||
|
_________________
Phil Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions |
|||
Posted on: 2012/5/15 19:30
|
|||
|
Re: CentOS 6 + OpenSSH 5.3 (SFTP file permissions) umask is not working for me. | #5 |
|
|---|---|---|---|
|
Newbie
![]()
Joined: 2012/5/17
From Dortmund, West-Germany
Posts: 1
|
Hi mckain,
sorry, but you are right... The entry in /etc/pam.d/sshd is the one which works! Your comment is right: (session optional pam_umask.so umask=0002) I restarted the sshd service after that but, nothing happened, everytime I login with my ftp account and upload a file I still got the rw-rw-r permissions. But you got this permissions, because you set the umask to 0002, that´s happend. umask=0002 -rw-rw-r-- permissions umask=0022 -rw-r--r-- permissions Without your entry you will upload files with -rw-r----- permissions. Don´t worry, be happy! You help me so much for my same problem, that´s the solution! |
||
Posted on: 2012/5/17 21:55
|
|||
Top Previous Topic Next Topic |
|



Topic options
Print Topic
Threaded
Newest First
mckain





You cannot start a new topic.
You can view topic.