Hi all,
I created a i-bay named test with the default parameters except All Internet (no password)
# touch toto
#
# mkdir Directory
#
# ls -als
total 16
4 drwxr-s--- 3 admin www 4096 1 juil. 17:15 .
4 drwxr-xr-x 6 root root 4096 7 févr. 2013 ..
4 drwxr-sr-x 2 root www 4096 1 juil. 17:15 Directory
4 -rw-r----- 1 admin www 265 1 juil. 17:12 index.html
0 -rw-r--r-- 1 root www 0 1 juil. 17:15 toto
#
- index.html doesn't have rx for other which is secure.
- index.html does't have group w which is secure.
- toto has r for other which is not secure.
- toto does't have group w which is secure.
- Directory has rx for other which is not secure.
- Directory does't have group w which is secure.
- Directory has group s which is ok.
In server-manager, I clicked modify the i-bay but modified nothing and click "Enregistrer"
# ls -als
total 16
4 drwxr-s--- 3 admin www 4096 1 juil. 17:15 .
4 drwxr-xr-x 6 root root 4096 7 févr. 2013 ..
4 drwxr-s--- 2 admin www 4096 1 juil. 17:15 Directory
4 -rw-r----- 1 admin www 265 1 juil. 17:12 index.html
0 -rw-r----- 1 admin www 0 1 juil. 17:15 toto
#
- Directory & toto lost rx for other which is secure.
- Directory & toto don't have group w which is secure.
* There is inconsistency with umask between the cration of the i-bay and the creation of file and directory?
WORDPRESS
- WordPress give rx to other all over the place which is not secure.
- Having other with rx and not all directory having index.xxx, allow to see the content of the directories which is not secure. File .htaccess is not used by default.
- Why directories wp-admin & wp-includes have group w when it is used only when there is an update of WodPress? This is unsecure for no reason?
- Why files: license.txt wp-login.php wp-config-sample.php wp-activate.php wp-blog-header.php wp-comments-post.php wp-settings.php wp-signup.php, all have group w when it is used only when there is an update of WodPress? This is unsecure for no reason?
- Why other directories (except wp-content) having group w which is unsecure for no reason?
- Why i-bay Primary has shared as the group and other i-bays www?
A user is in group shared by default. If user have ftp access, he can read the wp-config.php and see the password for the database which is not secure. Even if you move it, he can locate the file and still read it.
Conclusion:
- Having group w for everything is not secure.
- Having other rx for everything is not secure.
- I would suggest to change the group of Primary to www. It will still work properly and be more secure.
Michel-André