how to edit and save Services file?

Discussion in 'macOS' started by woomera, Aug 28, 2010.

  1. woomera macrumors member

    Joined:
    Oct 23, 2009
    #1
    ive been trying to edit the SSH port in Services file but i get an error saying "You do not have appropriate access privileges".
    tried changing the permissions and give everyone read&write but no luck.
    tried "sudo open -t /etc/services" but still cant save the file.
    how can i fix this?

    thank you
     
  2. Eddyisgreat macrumors 601

    Joined:
    Oct 24, 2007
    #2
    i'm a supernoob with this sort of thing, but you are logged in as an admin right?
     
  3. Intell macrumors P6

    Intell

    Joined:
    Jan 24, 2010
    Location:
    Inside
    #3
    I edit it by going to the /etc/ folder in Finder, dragging the file to the Desktop, editing it with TextEdit, dragging it back into the /etc/ folder, type in my login password. That's what I do.
     
  4. GGJstudios macrumors Westmere

    GGJstudios

    Joined:
    May 16, 2008
    #4
    Drag a copy of the file to your desktop. Edit that file. Then drag it back to replace the one in your /etc folder, entering your admin password to allow overwriting.
     
  5. woomera thread starter macrumors member

    Joined:
    Oct 23, 2009

Share This Page