LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-20-2003, 03:50 PM   #1
endezeichen
Member
 
Registered: Nov 2003
Posts: 48

Rep: Reputation: 15
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
 
Old 12-20-2003, 04:30 PM   #2
endezeichen
Member
 
Registered: Nov 2003
Posts: 48

Original Poster
Rep: Reputation: 15
mods--
Sorry wrong cat plz move to general
Thanks
 
Old 12-20-2003, 04:30 PM   #3
fr0zen
Member
 
Registered: Nov 2003
Location: 127.0.0.1
Distribution: xubuntu
Posts: 217

Rep: Reputation: 30
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.
 
Old 12-20-2003, 04:48 PM   #4
endezeichen
Member
 
Registered: Nov 2003
Posts: 48

Original Poster
Rep: Reputation: 15
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mozzla problems-can not read files online, can not read attachments sarajevo Linux - Software 1 09-20-2005 07:58 PM
Writing to an read-only embedded linux system!! cheema Linux - General 1 01-26-2005 05:20 PM
How program to read files with extension .dat y .cfg files COMTRADE in fedora 1? ivonne Linux - Software 0 11-22-2004 12:42 PM
writing to files in C ocularbob Programming 9 02-17-2004 01:06 PM
Command for writing over files? soulflyer Linux - Newbie 2 12-12-2003 06:26 PM


All times are GMT -5. The time now is 12:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration