sudo unable to write to /etc/profile

18

0

I am following the instructions on this site for Grails installation, but am not able to write to /etc/profile like it instructs.

sudo echo ‘JAVA_HOME=/usr/lib/jvm/java-6-sun’ >> /etc/profile

Instead, I get this error:

bash: /etc/profile: Permission denied

Why am I not able to write to the file even using sudo?

Matt Norris

Posted 2009-10-13T14:02:52.700

Reputation: 439

Question was closed 2017-07-05T13:24:36.370

No answers