Is it possible to write and edit etc/default/unicorn using FTP ? RoR, Ubuntu 12.10 server

Posted November 2, 2013 3.2k views
Hi, I am trying to follow this guide : I am at this part Now modify your PATH in /etc/default/unicorn: PATH=/usr/local/rvm/rubies/ruby-2.0.0-p195/bin:/home/unicorn/.rvm/bin:/usr/local/sbin:/usr/bin:/bin:/sbin:$ Since I changed to ruby-2.0.0-p247, I would like to modify this in the unicorn folder, however I do not know how. Everytime I try to modify it using filezilla it fails the transfer : Erreur : /etc/default/unicorn: open for write: permission denied Erreur : Echec du transfert du fichier and typing "PATH=/usr/local/rvm/rubies/ruby-2.0.0-p195/bin:/home/unicorn/.rvm/bin:/usr/local/sbin:/usr/bin:/bin:/sbin:$ " as root in the terminal does not seem to do anything because the file remains the same. So how do I do this ? Thanks

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
2 answers
Since I cannot edit, I will have to double post. I made sure I changed the ruby file in "PATH=/usr/local/rvm/rubies/ruby-2.0.0-p195/bin:/home/unicorn/.rvm/bin:/usr/local/sbin:/usr/bin:/bin:/sbin:$",

so I actually wrote "PATH=/usr/local/rvm/rubies/ruby-2.0.0-p247/bin:/home/unicorn/.rvm/bin:/usr/local/sbin:/usr/bin:/bin:/sbin:$" in terminal, still doesn't work.
Please take a look at

You will have to edit /etc/default/unicorn via SSH as root.