LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Sftp permission and group problem (https://www.linuxquestions.org/questions/linux-general-1/sftp-permission-and-group-problem-226936/)

dannykwok3000 09-05-2004 10:06 AM

Sftp permission and group problem
 
I have a problem about ssh in linux
The situation is that I 've set default permission: 770 in all files and
dirs, "chmod +s danny" and "chown :friend danny" in my folder.
Normally, I make a directory or a file under danny folder and the group is
"friend" and with +s, permission: 770.
But the permission is 755, without +s when I use SFTP to tranfer file to my
account.

Could they know how to solve this problem through setting sftp config or
other configuration??
Thx

trickykid 09-06-2004 12:10 PM

Most likely sftp has a default umask setting of 022, which is giving these permissions.. check your config files.

dannykwok3000 09-06-2004 10:29 PM

Thx trickykid, u give me a great help. I would edit the /etc/bashrc from umask 022 to 002. But the Sftp cannot follow this rule and the permission is still followed by the 022. Could you tell me how to change the umask from sftp because I cannot find it in /etc/ssh/sshd_config. Thx

trickykid 09-06-2004 11:51 PM

You know, why even use sftp when you can use scp or rsync, more powerful, secure and they give you better options.. ??

dannykwok3000 09-07-2004 12:48 AM

i know scp is a command and i dont know what the rsync is. in fact, i want to provide a file server to our friend and so use sftp but not ftp. if rsync can instead of sftp and solve my problem. It is worth to try. Thx


All times are GMT -5. The time now is 03:52 AM.