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 |
Most likely sftp has a default umask setting of 022, which is giving these permissions.. check your config files.
|
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
|
You know, why even use sftp when you can use scp or rsync, more powerful, secure and they give you better options.. ??
|
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. |