Why can't I copy a file to /etc?

Discussion in 'macOS' started by lamina, Apr 9, 2006.

  1. lamina macrumors 68000

    lamina

    Joined:
    Mar 9, 2006
    Location:
    From Canada, living in Seoul
    #1
    I am trying to get xlink kai running on my PB. Here's what I get when I try to run it.

    Mikes-PowerBook:~/Desktop/Kai michaelrisi$ ls
    kaid kaid.conf kaidd.conf
    Mikes-PowerBook:~/Desktop/Kai michaelrisi$ sudo ./kaid
    Password:
    KAID: Config file '/etc/kaid.conf' not found...
    Mikes-PowerBook:~/Desktop/Kai michaelrisi$

    When I try to copy the kaid.conf file to /etc, it says I don't have permission.

    What do I need to do?
     
  2. iMeowbot macrumors G3

    iMeowbot

    Joined:
    Aug 30, 2003
  3. lamina thread starter macrumors 68000

    lamina

    Joined:
    Mar 9, 2006
    Location:
    From Canada, living in Seoul
  4. iMeowbot macrumors G3

    iMeowbot

    Joined:
    Aug 30, 2003
    #4
    Okay, that's how it's supposed to work. You need to prefix sudo to every command you want run with privileges.

    You may also want to look into the su command, if you routinely have long stretches of stuff that need to be run as a privileged user.
     
  5. mrichmon macrumors 6502a

    Joined:
    Jun 17, 2003
    #5
    Or alternatively "sudo bash" to get a privileged shell to operate in if you have several privileged commands to run.
     

Share This Page