Question about Operating Systems

1 Answer

Edit host file in MAC OS 10.4

I'm trying to edit host file.
I've found it at etc folder, open in the text editor and did required changes. But when I click save it says "can't save host file st etc folder".

I think that it permissions problem but have no idea how to fix it.
Any suggestions?

Posted by on

  • 3 more comments 
  • Pav Z Sep 07, 2008

    Worked !!! Thank you

  • Anonymous Mar 20, 2009

    It doesn't let you unlock the folder. It's driving me crazy.

  • journeyguy May 07, 2009

    Same issue here. Even when logged in as root, I can't save the hosts file.

  • Paul Burrows
    Paul Burrows May 11, 2010

    I'm sorry I am not familiar with Host file?

    You mention you are editing it in text editor so I assume you wish to say that file some where.

    Are you able to save other files from other applications?

    It sounds like a permissions problem.

    You need to be logged into your mac as admin. If you single click on the folder you wish to save into and press apple key and 'i' key it will bring up an info box about that folder.

    Look at the bottom of the window to to 'sharing and permissions'. Drop that down and see who has what rights for that folder. You should have read and write and admin should have read and write. To change click on the lock to the right and change the rights if they are wrong. Then click on the small 'cog' icon to apply to all and that should sort out the permissions issue.

    You can do the same on the 'host file'


  • Anonymous Mar 24, 2014

    Some of my files having been put into compressed folders have miraculously become read only. How do I reinstate then so that I can edit and save them?

×

1 Answer

  • Level 1:

    An expert who has achieved level 1.

    Corporal:

    An expert that hasĀ over 10 points.

    Problem Solver:

    An expert who has answered 5 questions.

  • Contributor
  • 10 Answers

You probably don't want to edit the hosts file on OS X 10.whatever. Take a look at my suggestion over here for what to do instead.

Posted on Sep 23, 2008

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

1 Answer

Where do i find a free audio editor?


here, i found an open source site for you:
free audio editor http://audioeditorfree.com/

Jul 24, 2012 | Operating Systems

Tip

Change your Hostname without Rebooting in RedHat Linux


Requirements
RedHat Linux (should apply to 7.x and up)

This tutorial covers changing your hostname in RedHat Linux without having to do a reboot for the changes to take effect. I’ve tested this on RedHat 7.3, 9, Fedora Core 9, and RHEL 5.3. It should work for all the versions in between since they all closely follow the same RedHa tconfiguration. What’s the point of this tutorial? Never reboot if you don’t have to and keep your uptime intact.

Make sure you are logged in as root and move to /etc/sysconfig and open the network file in vi.

cd /etc/sysconfig
vi network


Look for the HOSTNAME line and replace it with the new hostname youwant to use. In this example I want to replace localhost with“MyServer”.

HOSTNAME=MyServer

When you are done, save your changes and exit vi. Next we will edit the /etc/hosts file and set the new hostname.

vi /etc/hosts

In hosts, edit the line that has the old hostname and replace it with your new one.

10.33.44.55 MyServer

Save your changes and exit vi. The changes to /etc/hosts and/etc/sysconfig/network are necessary to make your changes persistent (in the event of an unscheduled reboot).

Now we use the hostname program to change the hostname that is currently set.


hostname MyServer

And run it again without any parameters to see if the hostname changed.


hostname

Finally we will restart the network to apply the changes we made to /etc/hosts and /etc/sysconfig/network.


service network restart

To verify the hostname has been fully changed, logout of your system and you should see your new hostname being used at the login prompt and after you’ve logged back in.

Quick, painless, and you won’t lose your server’s uptime.

on Jan 13, 2010 | Operating Systems

2 Answers

Need help installing MAC Os x 10.63 as a virtual machine on oracle virtual box on win7 host


Upon starting VMware, click on the New Virtual Machine button.A Wizard will open. Click Next.Select Typical. Click Next. (On later versions of VMWare, select Custom instead so that you can set your disk drive to IDEinstead of SCSI, as required below.)Select Other, then pick FreeBSD. Click Next.
  • IMPORTANT NOTE! If you are using a Conroe or Core 2 Duo, select Windows and then Windows NT from the dropdown list. Using FreeBSD will cause a stack fault on boot. Same applies to Core Duo (945PM/Calistoga).

You will likely need to select one [1] Virtual Processor as well. Selecting 2 Virtual Processors will likely cause installation and/or bootup to fail.

  • for Gigabyte GA-965P-DQ6: IDE is used instead of SCSI. otherwise the system will not be able to find any installable disk.
  • for Asrock Conroe 945G-DVi: IDE is used instead of SCSI. otherwise the system will not be able to find any installable disk.
  • Dell E1405 and D620 (and maybe other Dell Core Duo laptops): IDE is required instead of SCSI.
  • for Asus P5B-VM IDE is required instead of SCSI, otherwise the system will not be able to find any installable disk.
  • (If you do not see this option, go back to the beginning and choose Custom instead of Typical. You cannot change SCSI to IDE once you have created the VM.)
Name it whatever you want (I used Mac OS X), put it wherever you want. Click Next.
  • Location of virtual harddisk drives can be determined at this point in time. For best performance always try to put virtual machines on a separate physical hard drive. Partitions don't count. This is because the biggest performance hit in virtual machines is disk I/O. If the VM is on the same drive as your OS the VM fights with your OS for disk access. When the OS needs to use a swap file it makes the matter much, much worse. Additionally, today's USB 2.0 and firewire external hard drives run on a fast interface bus, have large buffers and spin at 7,200 rpm, as opposed to 4,200 rpm for most laptop hard drives.


If you are using a non-legal copy you'll want to use Host-only networking initially to prevent Mac OS X from registering itself during installation. If this is a legal copy, use NAT. Click Next.Set the Disk size to anything greater than 6GB. You don't have to but I recommend that you allocate the disk space now so that disk performance is increased. When done, click Next. You may also split files into 2GB pieces if on FAT partition.Click Finish. . . .[edit]Step 4 - ?????[edit]Step 5 - Profit![edit]Step 6 - Setting up your Virtual MachineOpen up your new virtual machine configuration.Under Devices:Double click Memory and set the amount of RAM you'd like to use. The minimum is 128MB but the recommended minimum is 256MB. Make sure you don't use too much of your total RAM as swapping may occur and could lead to big problems! I use 512MB (out of 1GB System) and I have set my Memory Preferences [Edit>Preferences>Memory] to Fit all virtual machine memory into reserved host RAM.Double click the CD-ROM drive and select the letter of the Virtual Drive with the mounted ISO that you created with Alcohol 120%. If you are using Daemon Tools you may not see your drive listed. See the next step for further details.Now EXIT VMware. Here comes the boring part =P[edit]Step 7 - Editing your VMware ConfigLocate where you've stored your Virtual Machine files in Windows Explorer.Mine is ..\My Documents\My Virtual Machines\MacOSX\Open up your Virtual Machine Configuration File (.vmx extension) in Notepad.Add the following line to the end of the file.paevm=true

(note: If your CPU does not support PAE, you can't run OSx86 under VMWare on your CPU; OSx86 needs a PAE compatible CPU to work. Intel Pentium M <1.5GHz do not have PAE, so don't try it on those CPUs)
If you are using Daemon tools you may need to help VMware find the drive. If that is the case then modify the lines in the configuration file referring to the CD-ROM drive similar to this (note replace X: with the drive you have configured in Daemon Tools):ide1:0.present = TRUEide1:0.fileName = X:ide1:0.deviceType = cdrom-rawSave the Config file, close Notepad, and continue to Step 7.

Note: on 10.4.8 8.8.1 kernel and networking: This is a good time to remove existing ethernet0virtualDev (if any) and add:
ethernet0.virtualDev=e1000

Note: sometimes scsi0.present = TRUE won't work, so set it to False:
scsi0.present = FALSE

Note: if you change any settings in the VMware interface after editing the .vmx file, it will overwrite your changes. You will need to go back and change the settings again! It is best to make these edits while VMware is not running.
Here comes the fun part =D[edit]Step 8 - Installing Mac OS XStart your Mac OS X Virtual Machine.When the Mac OS X boot prompt appears, click the logo then hit F8 to add boot options.Type in -v and hit enter. This puts you into Verbose mode which will let you know if something is going wrong.It may take a while depending on your hardware to load the installation. Be patient.

How to correctly uninstall Mac programs

how to restore mac
[edit]Step 9 - Setting up your Hard DriveFollowing along in the installation, you'll reach a point where it's time to select your Hard Drive, but nothing is listed.Open Utilities -> Disk Utility on your disk

Note Re 10.4.8: Disk Utility has been reported not to work (it makes an efi partition). Use a prior version to partition your disk, or partition it with another OS, then use 10.4.8 disk utility to erase (by reformatting) this partition. Otherwise it won't boot. Note: no need for using a previous version just apply PPF2 to fix the disk utility http://forum.insanelymac.com/index.php?showtopic=38125
Select the VMware drive on the left. Click partition on the right.Change the Volume Scheme to 1 partition and choose a name. The format should stay Mac OS Extended (Journaled) and the partition should use all space available.Click partition, then partition again. After it is finished (progress in bottom right), you can close the Disk Utility.Your drive now shows up in setup. Proceed, proceed.[edit]Step 10 - Using a Custom InstallationIf you have a patched installation you should select a custom installation to see if there are patches listed there that you'll need to include (such as selecting the appropriate patch set for your CPU, see Comment 2). Another place to check is opening up a Terminal window and looking around the installation disc..

Jan 28, 2012 | Apple Mac OS X Server 10.6.3

1 Answer

I am trying to edit a theme in Wordpress. It does not allow me to edit. It directs me to this page. http://codex.wordpress.org/Changing_File_Permissions I have already had my host confirm I have...


WordPress contains a built-in editor that allows you to edit Theme files directly from within your browser. It is called the Theme Editor. Access the Theme Editor from the Administration > Design > Theme Editor. To view a file in the Theme Editor, click on the file from the list. More information on editing themes is available at

http://codex.wordpress.org/Theme_Development

Jan 30, 2010 | Operating Systems

1 Answer

How can i change text of Start Button?


You Need to Modify "Explorer.exe File" To make the changes you need to locate and edit the file "explorer.exe" it's located at C:Windows. The file "Explorer.exe" is a binary file, so you will need special editor (Resource Hacker) will do. Resource Hacker is a good freeware utility to view, modify, rename, add, delete and extract resources in 32bit Windows executables and resource files. First Backup "explorer.exe" located at C:\Windows\explorer. You can place it in a special folder or save it to disk. You can also copy and change the file name to "explorerB.exe" (the B is for backup), then you can edit "explorer.exe".

2. Resource Hacker: In Resource Hacker the category will be using is String Table. You need to expand it by clicking on the plus sigh, then navigate down and expand string 37 followed by 1033, (For Classic Layout use number 38). On the right hand pane look for item 578 it show the word "start" this is what we are going to modify.

3. Edit start: To edit the word "start' you just double click on start so that it's highlighted, don't highlight the quotation marks on the sides of start, "start" NOT "start". The new text go's in between the quotation marks, like this "new" remember don't delete the quotation marks. So that it looks like this "new" replace new with your text. This is the old start text "start" delete start text "", inter your text "new" easy right!

4. Compile Script button: Now that you have changed the start text you need to click on the Compile Script button. After you have clicked on the Compile Script button you need to use the Save As command on the File Menu to save the altered file and give it a name. A good file name "explorernew.exe" or make your own. Don't use the Save command use the Save As commaned! Save the newly named file to the C:\Windows.

5. Modify the Registry: Now it's time to modify the registry so that your modified explorer.exe file that you created will be recognized when the user logs on your system. Go to the Start button click on it, then go to Run click on it, type regedit in the Open: field. Now Navigate download the list to "HKEY_LOCAL_MACHINE" click on the plus, to SOFTWARE, to Microsoft, to windows NT, to CurrentVersion, to Winlogon. The full string: HKEY_LOCAL_MACHINE\ SOFTWARE\ Microsoft\ Windows NT\ CurrentVersion\ Winlogon
Look on the right pane for Shell, double click on Shell entry to open the Edit String dialog box. In the Value date: line enter the name that your used to save the modified explorer.exe file. click on OK.
Now close Registry Editor and exit Windows or log off your system, and then log back on. Now if the computer gods are happy and all went as planned you should see the new Start button with your cool text on it. Remember the force is with you!

Jul 08, 2009 | Operating Systems

3 Answers

Does any one know where I can find a hosts file editor


Make sure you're logged on as an administrator, the file is in the folder as fdblock said and is just called hosts, you can edit it with notepad

Apr 21, 2009 | Microsoft Windows XP Home Edition

1 Answer

I couldn't view the hidden files when i apply show hidden files in my folder options in tools menu in menu bar.


Folder Options is removed from Tools in Windows by a virus. The virus is called W32.Rontokbro@mm OR W32/Rontokbro.gen@MM

The removal of this virus is slightly difficult. Antivirus can't remove it automatically. However detailed procedure to remove it is available at

http://coolexp.blogspot.com/2008/01/fold...

About this Virus/Worm:
What it does is creating new files which looked like a folder but its actually a .exe file. Unless you’ve enabled the view extensions in the folder options or else you won’t see the .exe extension of the file. The file is approximately 43.7Kb and normally people will click to open it because it looked like a folder. So after you’ve open it, the virus will run each time during startup and keep on spreading and spreading… into the harddrives.

More troubles coming up. Normally when you click “Tools” in explorer, there’s a “folder options” underneath it. Once the pc is infected with the virus, the Folder Options will be missing, which disabled you to change the options to view the extension of the files. So when you see a new folder appeared from nowhere and you clicked to open it out of curiousity, the virus spread more again. Moreover, the virus disabled the registry edit where you will see this message “Registry edit is disabled by the administrator” everytime you try to edit the registry.

So how to clean the virus then? I found some solution from the following link and have successfully cleaned it from my system.

http://coolexp.blogspot.com/2008/01/fold...

It will help you to get rid of this virus named W32.Rontokbro@mm aka brontok.a and to get back your hidden files. Source(s): http://coolexp.blogspot.com/2008/01/fold...

P.S.: If this information was helpful, please rate this solution.

Mar 14, 2009 | Microsoft Windows XP Professional

2 Answers

Is there an equivalent program on apple like regedit?


Apple has files that contain the same type of info as the windows registry .

They are referred to as .plist files.

Example:

/Users/YourUserName/Library/Preferences

There is not a typical registry.

Nate P.

Jan 13, 2009 | Apple Mac OS 9.2.1

1 Answer

OS X 10.4 PHP MySQL problem


To change the location where MySQL creates its socket file, do this:
1. Open your preferred text editor and create a plain text file.
2. Type this text (on two lines as shown):
[mysqld]
socket=/tmp/mysql.sock

3. Save the file as: /etc/my.cnf


To change the location where PHP looks for the socket file, follow these steps:
1. In Terminal: sudo cp /etc/php.ini.default /etc/php.ini
2. Open /etc/php.ini in your preferred text editor.
3. Find the [MySQL] section, and change the mysql.default_socket directive:
4. ; Default socket name for local MySQL connects. If empty, uses
5. the built-in
6. ; MySQL defaults.
7. mysql.default_socket = /var/mysql/mysql.sock
8. Change the permissions on /var/mysql so that www can read the socket, by executing this in Terminal:
sudo chmod 775 /var/mysql

Aug 24, 2008 | Apple Mac OS X 10.4

4 Answers

How do I edit the hosts file on a mac


just use this widget ;) http://www.dissipate.co.uk/download 

Jun 04, 2008 | Apple Mac OS X 10.4 Tiger for Mac

Not finding what you are looking for?
Operating Systems Logo

Related Topics:

4,978 people viewed this question

Ask a Question

Usually answered in minutes!

Top Operating Systems Experts

Les Dickinson
Les Dickinson

Level 3 Expert

18299 Answers

Brian Sullivan
Brian Sullivan

Level 3 Expert

27725 Answers

Prashant  Sharma
Prashant Sharma

Level 3 Expert

1127 Answers

Are you an Operating System Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...