Parent Directory is world writable error - How to rectify...

1,218 views
Skip to first unread message

Dr.Mohamed Ajmal Aslam

unread,
Oct 31, 2013, 4:17:41 AM10/31/13
to phusion-...@googlegroups.com
I am getting the below error... I am new to rails... which is the parent directory in discussion.. and how to change permission.. ie by left clicking and changing permission..??



*** EXCEPTION: parent directory is world writable, FileUtils#remove_entry_secure does not work; abort: "/tmp/passenger.1xu4rh9" (parent directory mode 40777) (ArgumentError)
    /home/pubuntu/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/fileutils.rb:708:in `remove_entry_secure'
    /home/pubuntu/.rvm/gems/ruby-1.9.3-p448/gems/passenger-4.0.21/lib/phusion_passenger/utils/tmpio.rb:61:in `ensure in mktmpdir'
    /home/pubuntu/.rvm/gems/ruby-1.9.3-p448/gems/passenger-4.0.21/lib/phusion_passenger/utils/tmpio.rb:61:in `mktmpdir'
    /home/pubuntu/.rvm/gems/ruby-1.9.3-p448/gems/passenger-4.0.21/lib/phusion_passenger/platform_info.rb:158:in `create_temp_file'
    /home/pubuntu/.rvm/gems/ruby-1.9.3-p448/gems/passenger-4.0.21/lib/phusion_passenger/platform_info/compiler.rb:236:in `try_compile'
    /home/pubuntu/.rvm/gems/ruby-1.9.3-p448/gems/passenger-4.0.21/lib/phusion_passenger/platform_info/apache.rb:550:in `apr_config_needed_for_building_apache_modules?'
    /home/pubuntu/.rvm/gems/ruby-1.9.3-p448/gems/passenger-4.0.21/lib/phusion_passenger/platform_info.rb:96:in `apr_config_needed_for_building_apache_modules?'
    /home/pubuntu/.rvm/gems/ruby-1.9.3-p448/gems/passenger-4.0.21/bin/passenger-install-apache2-module:77:in `dependencies'
    /home/pubuntu/.rvm/gems/ruby-1.9.3-p448/gems/passenger-4.0.21/lib/phusion_passenger/abstract_installer.rb:134:in `check_dependencies'
    /home/pubuntu/.rvm/gems/ruby-1.9.3-p448/gems/passenger-4.0.21/bin/passenger-install-apache2-module:104:in `run_steps'
    /home/pubuntu/.rvm/gems/ruby-1.9.3-p448/gems/passenger-4.0.21/lib/phusion_passenger/abstract_installer.rb:69:in `run'
    /home/pubuntu/.rvm/gems/ruby-1.9.3-p448/gems/passenger-4.0.21/bin/passenger-install-apache2-module:298:in `<top (required)>'
    /home/pubuntu/.rvm/gems/ruby-1.9.3-p448/bin/passenger-install-apache2-module:23:in `load'
    /home/pubuntu/.rvm/gems/ruby-1.9.3-p448/bin/passenger-install-apache2-module:23:in `<main>'
    /home/pubuntu/.rvm/gems/ruby-1.9.3-p448/bin/ruby_executable_hooks:15:in `eval'
    /home/pubuntu/.rvm/gems/ruby-1.9.3-p448/bin/ruby_executable_hooks:15:in `<main>'


Hongli Lai

unread,
Oct 31, 2013, 5:56:43 AM10/31/13
to phusion-passenger
The parent directory in question is /tmp. The error is a security
precaution, warning you that you have your permissions wrong. Your
/tmp directory should have the sticky bit turned on.
> --
> You received this message because you are subscribed to the Google Groups
> "Phusion Passenger Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to phusion-passen...@googlegroups.com.
> To post to this group, send email to phusion-...@googlegroups.com.
> Visit this group at http://groups.google.com/group/phusion-passenger.
> For more options, visit https://groups.google.com/groups/opt_out.



--
Phusion | Ruby & Rails deployment, scaling and tuning solutions

Web: http://www.phusion.nl/
E-mail: in...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)
Reply all
Reply to author
Forward
0 new messages