how to edit and save Services file?

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

  1. woomera macrumors member

    Oct 23, 2009
    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

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


    Jan 24, 2010
    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


    May 16, 2008
    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

    Oct 23, 2009

Share This Page