Apache Web-Serving with Mac OS X, Part 4
Subject:   Operation not permitted
Date:   2002-02-23 05:15:12
From:   adamsdv
I've been frustrated thru this tutorial by a consistant and troubling problem. Though I know the admin password, I don't seem to be able to change access rights on the files in /etc/httpd, or ...CGI-executables. I was able to create a new test-cgi file by copying the existing file's contents to a new test2-cgi with BBEdit. This cgi then worked just fine. I can change rights/owner on that file just fine, but if i try to do the same on test-cgi, I get "Operation not permitted" the same goes for trying to do anything with httpd.conf. I'm totally lost as 'su' then password simply responds with 'Sorry' Any ideas what my problem is?? Thanks
Full Threads Oldest First

Showing messages 1 through 3 of 3.

  • Morbus Iff photo Operation not permitted
    2002-02-25 08:22:12  Morbus Iff | O'Reilly Author [View]

    Are you just typing "su" and nothing else? There are two ways to do something with administrative rights under the terminal. There's "su" and "sudo".

    Sudo looks like:

    sudo chown -R adamsdv:staff *

    It says "hey! do the next command as an administrative user. prompt me for the password, else use the one I typed in less than five minutes ago".

    Su, on the other hand, looks like:

    su [username]


    su root

    would ask for your root/admin password, and then you'd be acting as the root user until you explicitly said "exit" (ie. all commands you typed in would be executed with administrative privileges).

    Does that help at all?
    • Operation not permitted
      2002-02-25 14:56:57  adamsdv [View]

      Thanks, but the problem persists.

      I type "su root", the computer replies with "Password:" I enter the password (no question that it is the one I installed OS X with, and it is the same one that I login with) the computer replies "Sorry"

      Any Ideas?

      P.S. I'd tried the sudo thing, but it didn't appear to work, but when I executed the sudo chown... command listed in your response, it did, and I could then modify the httpd.conf file. Hey, now I own it. I'm at a loss as to why I can't SU then just chown ... (perhaps also of interest, I can login with my OS X short user name, but If I try to login as root (from a shell), after the password prompt, it says "root login refused on this terminal." I'm not really a UNIX person so is there something wrong or just something I don't understand?

      Thanks again, and the Series is really as thoroughly excellent as O'Reilly's books have been. Kudos!
      • Operation not permitted
        2002-02-27 23:50:43  dredjohn [View]

        I'd use NETINFO MANAGER in the Application/Utilities folder. Go to DOMAIN at the top (I think that's what it's called) and SECURITY. There is an option to AUTHENTICATE. Do this to allow you to change settings. Then go back to SECURITY and say ENABLE ROOT.

        Follow the instructions. Log out, log in as root with the password.

        When you're done. Log out, log back in as yourself -- go back to the NETINFO MANAGER and DISABLE ROOT.

        Although the EASIEST way is to use BBEDIT (available at versiontracker). There is a demo available -- might be worth the purchase -- it will let you edit/save ANY file to yourhearts content without having to go through the hassle of enabling/disabling root priveledges.