Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Calling OSX gurus /Markus!!!

Thread Tools
 
Search this Thread
 
Old 08 July 2008, 10:31 AM
  #1  
ScoobyDoo555
Scooby Regular
Thread Starter
 
ScoobyDoo555's Avatar
 
Join Date: Oct 2000
Location: Does it matter?
Posts: 11,217
Likes: 0
Received 0 Likes on 0 Posts
Question Calling OSX gurus /Markus!!!

OK, here's a goody (although probably very simple)

Need to access the "host" file in the /etc folder in OSX

So, I've gone into the "Go to folder", and put in /etc.

The folder opens, and I can modfiy the file, but it won't let me save it.

How do I do this?

Obviously it's a hidden directory within OSX (I'm sure there's plenty of others too!), how do I modify?

Guessing it's done within the terminal....

Dan
Old 08 July 2008, 10:56 AM
  #2  
JackClark
Scooby Senior
 
JackClark's Avatar
 
Join Date: Dec 2000
Location: Overdosed on LCD
Posts: 20,852
Received 51 Likes on 34 Posts
Default

For the GUI junkies.

Apple - Downloads - Dashboard Widgets - HostsWidget
Old 08 July 2008, 11:07 AM
  #3  
mike1210
Scooby Regular
 
mike1210's Avatar
 
Join Date: Apr 2004
Location: Cardiff
Posts: 1,928
Likes: 0
Received 0 Likes on 0 Posts
Default

Oooh nice link Jack

I used to use

pico /etc/hosts

but that makes it easier
Old 08 July 2008, 11:14 AM
  #4  
ScoobyDoo555
Scooby Regular
Thread Starter
 
ScoobyDoo555's Avatar
 
Join Date: Oct 2000
Location: Does it matter?
Posts: 11,217
Likes: 0
Received 0 Likes on 0 Posts
Default

Thanks

Dan
Old 08 July 2008, 01:11 PM
  #5  
Markus
Scooby Regular
 
Markus's Avatar
 
Join Date: Mar 1999
Location: The Great White North
Posts: 25,080
Likes: 0
Received 0 Likes on 0 Posts
Default

I'll chime in now I'm awake

Files in /etc/ are usually have the following permissions:

Code:
-rw-r--r--  1 root  wheel  236 23 Sep  2007 hosts
Basically meaning it's read/write to the root user, and read-only for every other user, and it's owned by the user root and the group wheel.

You can use Go To Folder to get into the /etc/ directory and open the file, and depending on what app you're using, you *might* be able to save any changes. TextEdit will probably give an error, but BBEdit should alert you to the fact you don't have permissions and usually asks for your admin name and password, so it can escalate privileges and save the file.

I normally use BBEdit to edit these files as it has an option to show you the "invisible" files/folders, or you can use the command G key combo in the open dialog and navigate to the hidden folders as you would do in the finder.

If that does not work then I'd use the Terminal and issue sudo pico /path/to/file and edit it via pico
Old 08 July 2008, 02:19 PM
  #6  
ScoobyDoo555
Scooby Regular
Thread Starter
 
ScoobyDoo555's Avatar
 
Join Date: Oct 2000
Location: Does it matter?
Posts: 11,217
Likes: 0
Received 0 Likes on 0 Posts
Default

"awake" - that's such a lame excuse, just because you're the other side of the world

Nice one though - really useful

Dan
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
JimBowen
ICE
5
02 July 2023 01:54 PM
KAS35RSTI
Subaru
27
04 November 2021 07:12 PM
Mattybr5@MB Developments
Full Cars Breaking For Spares
12
18 November 2015 07:03 AM
dpb
Non Scooby Related
46
03 October 2015 11:50 AM



Quick Reply: Calling OSX gurus /Markus!!!



All times are GMT +1. The time now is 02:12 AM.