Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F857722
autochmod (BSD userland)
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
dereckson
Oct 1 2015, 6:54 PM
2015-10-01 18:54:32 (UTC+0)
Size
878 B
Referenced Files
None
Subscribers
None
autochmod (BSD userland)
View Options
#Default permissions for a SuEXEC webserver installation
#License: not an original work, only trivial find commands,
# so not eligible to copyright
#Note: -print0 / xargs -0 permet de g�rer les espaces :)
#Tout d'abord les dossiers en 711
find . -type d -print0 | xargs -0 chmod 711
#Par d.faut, tous les fichiers vont en 644 :
find . -type f -print0 | xargs -0 chmod 644
#2�me tour, les scripts en 700
#-iname afin de traiter aussi .PHP .CGI ...
find . -type f -iname "*.php" -print0 | xargs -0 chmod 700
find . -type f -iname "*.php3" -print0 | xargs -0 chmod 700
find . -type f -iname "*.phps" -print0 | xargs -0 chmod 700
find . -type f -iname "*.tcl" -print0 | xargs -0 chmod 700
find . -type f -iname "*.cgi" -print0 | xargs -0 chmod 700
find . -type f -iname "*.pl" -print0 | xargs -0 chmod 700
find . -type f -iname "*.py" -print0 | xargs -0 chmod 700
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
amazon-s3
Storage Format
Raw Data
Storage Handle
phabricator/u3/v4/ypu3tlulh435gr5o
Default Alt Text
autochmod (BSD userland) (878 B)
Attached To
Mode
P1861 autochmod (BSD userland)
Attached
Detach File
Event Timeline
Log In to Comment