ClearFoundation Tracker - ClearOS
View Issue Details
0000054ClearOSapp-web-server - Web Serverpublic2010-03-25 15:352019-03-11 05:49
user2 
 
normalfeatureN/A
closedsuspended 
 
 
0000054: Add fine file/folder security options to support web-based applications
When installing web-based applications (Joomla, Gallery, etc), the web server (apache) often needs the ability to write to certain files and directories (cache files, upload directories, etc). It is a good security practice to grant the absolute minimum file/directory write privileges.

Example bad practice 0000001 - setting the world writeable bits
---------------------------------------------------------------------

chmod -R o+rw /var/www/html

Example bad practice 0000002 - giving apache world writeable access
------------------------------------------------------------------------------

chown -R webmaster.apache /var/www/html
chmod -R g+rw /var/www/html


A proper implementation should provide a relatively easy way for an administrator to fine tune the security policies. In other words, the administrator should give an explicit list of files and directories that need apache write privileges, e.g:

- cache
- images/upload
- tmp

For some common web applications, a built-in list might be a nice option.
No tags attached.
Issue History
2010-03-25 15:35user2New Issue
2010-03-25 15:45user2Statusnew => confirmed
2010-06-04 10:11user2Target Version6.0 => 6.1
2010-06-22 12:06user2Target Version6.1 => Future
2015-05-25 05:10user2Target VersionFuture =>
2019-03-11 05:49NickHNote Added: 0010531
2019-03-11 05:49NickHStatusconfirmed => closed
2019-03-11 05:49NickHResolutionopen => suspended

Notes
(0010531)
NickH   
2019-03-11 05:49   
Migrated to: https://gitlab.com/clearos/clearfoundation/app-web-server/issues/4 [^]