Permalink
Browse files

Fixed log file permissions to be 666 instead of 777 (so they're not e…

…xecutable) #471 [Lucas Carlson]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@416 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent f3965af commit 62f0512e54d594c4bb6fcb8d16101fdeb87b89e8 @dhh dhh committed Jan 15, 2005
View
@@ -1,5 +1,7 @@
*SVN*
+* Fixed log file permissions to be 666 instead of 777 (so they're not executable) #471 [Lucas Carlson]
+
* Fixed that auto reloading would some times not work or would reload the models twice #475 [Tobias Luetke]
* Added rewrite rules to deal with caching to public/.htaccess
View
@@ -79,7 +79,7 @@ task :initialize_log_files do
LOG_FILES.each do |log_file|
log_path = File.join(log_dir, log_file)
touch log_path
- chmod 0777, log_path
+ chmod 0666, log_path
end
end
@@ -32,7 +32,7 @@
<p><b>Before you move on</b>, verify that the following conditions have been met:</p>
<ol>
- <li>The log directory and the empty log files must be writable to the web server (<code>chmod -R 777 log</code>).
+ <li>The log directory and the empty log files must be writable to the web server (<code>chmod -R 666 log/*</code>).
<li>
The shebang line in the public/dispatch* files must reference your Ruby installation. <br/>
You might need to change it to <code>#!/usr/bin/env ruby</code> or point directly at the installation.
@@ -67,4 +67,4 @@
</p>
</body>
-</html>
+</html>
@@ -47,7 +47,7 @@
RAILS_DEFAULT_LOGGER = Logger.new(STDERR)
RAILS_DEFAULT_LOGGER.level = Logger::WARN
RAILS_DEFAULT_LOGGER.warn(
- "Rails Error: Unable to access log file. Please ensure that log/#{RAILS_ENV}.log exists and is chmod 0777. " +
+ "Rails Error: Unable to access log file. Please ensure that log/#{RAILS_ENV}.log exists and is chmod 0666. " +
"The log level has been raised to WARN and the output directed to STDERR until the problem is fixed."
)
end
@@ -44,7 +44,7 @@
RAILS_DEFAULT_LOGGER = Logger.new(STDERR)
RAILS_DEFAULT_LOGGER.level = Logger::WARN
RAILS_DEFAULT_LOGGER.warn(
- "Rails Error: Unable to access log file. Please ensure that log/#{RAILS_ENV}.log exists and is chmod 0777. " +
+ "Rails Error: Unable to access log file. Please ensure that log/#{RAILS_ENV}.log exists and is chmod 0666. " +
"The log level has been raised to WARN and the output directed to STDERR until the problem is fixed."
)
end

0 comments on commit 62f0512

Please sign in to comment.