We're testing jailkit out here and I have one major problem in deployment on our test server (CentOS):
When I sftp into the server: sftp> mkdir test sftp> ls -al drwx------ 3 testuser2 testuser2 4096 Jul 20 01:16 .
drwxr-xr-x 4 root root 4096 Jul 20 01:12 .. -rw-r--r-- 1 testuser2 testuser2 304 Jul 20 01:12 .bash_logout -rw-r--r-- 1 testuser2 testuser2 191 Jul 20 01:12 .bash_profile -rw-r--r-- 1 testuser2 testuser2 124 Jul 20 01:12 .bashrc
drwxrwxrwx 2 testuser2 testuser2 4096 Jul 20 01:16 test
We can't have the default permissions on newly create folders being 777. Is this a problem with the jail? Or with sftp-server? I've been looking around but it really seems like this problem is limited to the jail that I have created.