Go Back   The macosxhints Forums > OS X Help Requests > System



 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
Old 04-01-2005, 11:23 AM   #1
Burritonator
Prospect
 
Join Date: Sep 2004
Posts: 37
Changing the read-only file attribute

I'm having an inordinate amount of trouble performing what would seem to be a very easy task. What I need to do is to change the file "/etc/httpd/httpd.conf" from read-only to read/write permission. Keep in mind that I am still fairly new to the Macintosh world.

I know how to change this attribute by navigating to a file using Finder, selecting "Get Info" from the menu, and accessing the "Owners & Permissions" option. The problem that I am having is that I can't find the httpd.conf file by using Finder. If I open a terminal window, I can navigate to the directory /etc/httpd/ and see the file httpd.conf there.

I have two questions:

1. Why don't all of the directories under the root directory show up in Finder? For instance, the only folders I see when I select the hard drive in Finder are Applications, Library, System, User Guides, and Users. When I open a terminal window and view the root directory, I see these directories, plus all of the directories related to Linux, such as bin, etc, usr, and var. If I search for the file httpd.conf using Finder, it doesn't find it, even though I know it exists on the drive.

2. How can I change a file from read-only to read/write from within the terminal window? I found a Linux help site which indicated the command "File Attributes httpd.conf -readonly" should accomplish this, but when I execute this command, the system doesn't recognize the -readonly switch. (It actually interpretes each character as a seperate switch and gives a series of error messages such as "File: unknown option -- r", "File: unknown option -- e", etc.)

Thanks in advance for any help that anyone can offer.
Burritonator is offline   Reply With Quote
 

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 08:40 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.