LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-16-2004, 12:45 PM   #1
Charlie Chan
LQ Newbie
 
Registered: May 2004
Location: Byan, Texas USA
Distribution: Fedora 1 and it updates
Posts: 20

Rep: Reputation: 0
Question How do you change the file Property from Read Only to ....


I installed YUM from Duke U and need to add header information to the yum.conf file by copy and paste method. However, the file is marked read only. How do I change the file property from Read Only.
 
Old 05-16-2004, 12:52 PM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
chmod is the command used to change file attributes. I'll give you the basics here:

There are three catagories of permissions for a file, owner, group, everyone else. Each catagory has read, write, and execute bits. When you do an ls -la file you'll see a list that might look something like this:

-rw-r--r-- 1 root root 7107 May 3 12:22 make.conf

Ignore the first - for now. The first rw- means the file is readable and writeable to the owner (person whom created the file). The second r-- means members of the group the file was created under can read it. The last r-- means all others can read the file. Ignore the 1 for now. The first word after the 1 is the user that created the file, second word is the group the file was created under, then the date of last access, and the file name.

Now, to change permissions for the owner you could do chmod u+r to add read, chmod u+w to add write, chmod u+rx woudl add read and execute. Putting a - instead of a plus removes those permissions. Chaning u to g changes the group permissions, changing it to o changes the world permissions. Using a+ or a- means add or subtract the permissions for all catagories.

so in this case, chmod u+w yum.conf would probably do the trick.

This help?
 
  


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
read only file system change navaladi Linux - Newbie 2 02-18-2005 02:36 PM
how do I change the filesystem from read-only to read-write? les_chow Linux - Newbie 5 05-26-2004 03:14 PM
How to read and change the contents of a text file? Bassam Linux - General 11 02-26-2004 04:08 AM
vsFTPd file property options zix99 Linux - Networking 3 10-14-2003 10:25 AM
Change from Read only to Read Write File System? justiceisblind Linux - Newbie 3 03-03-2002 07:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:40 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