LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   writing in read only files (https://www.linuxquestions.org/questions/linux-software-2/writing-in-read-only-files-127620/)

endezeichen 12-20-2003 02:50 PM

writing in read only files
 
Im trying to edit .bash_profile and I can't type anything in it. Is it read-only? How do I change it. Also, when typing the directory in the terminal I ge the msg "permission denied" and I AM logged in as root.
Thanks

endezeichen 12-20-2003 03:30 PM

mods--
Sorry wrong cat plz move to general
Thanks

fr0zen 12-20-2003 03:30 PM

Try this:

Code:

chmod u+w .bash_profile
The above command makes it writable only by the owner of the file. So, if the owner is non-root, make sure you do:

Code:

chown username: .bash_profile
Of course, replace 'username' with the appropriate name of the user.

endezeichen 12-20-2003 03:48 PM

Thx, but I'm trying to do it through the GUI, and even after typing chmod u+w it won't work. I'm assuming thats only for the terminal, so how do I add java to my PATH in the terminal?
Thanks


All times are GMT -5. The time now is 10:20 PM.