I'm trying to disable the ability to use the chmod command from sftp clients. I want files uploaded by users to only be set based on the umask and remove their ability to change it.
It seems like this should be simple, but I can't find any way to do it.
Best Answer
Not by default but there is a patch. Not sure if your distro has a patched package already but it may worth searching before you patch it yourself. http://sftpfilecontrol.sourceforge.net/