Results 1 to 7 of 7

Thread: permission denied for /etc/apache2/httpd.conf

  1. #1

    Default permission denied for /etc/apache2/httpd.conf

    i am trying to edit the /etc/apache2/httpd.conf on mac os x 10.9.2,
    as i an installing php, but i have permission denied using terminal, please any ideas on what is happening, i have created my user .conf as

    <Directory "/Users/username/Sites/">
    Options Indexes MultiViews
    AllowOverride All
    Order allow,deny
    Allow from all
    </Directory>

  2. #2

    Default Re: permission denied for /etc/apache2/httpd.conf

    Quote Originally Posted by alabi View Post
    i am trying to edit the /etc/apache2/httpd.conf on mac os x 10.9.2,
    This forums are for openSUSE (Linux), not MacOS X!

    Anyway, you would need root permissions for editing /etc/apache2/httpd.conf.
    I don't know MacOS good enough to be able to give advise, but probably you can use "sudo" to start the text editor as root, or use "su" to gain root privileges (maybe you need "su -" though).

  3. #3

    Default Re: permission denied for /etc/apache2/httpd.conf

    thanks for the time and effort

  4. #4
    Join Date
    Jun 2008
    Location
    Connecticut, USA
    Posts
    2,295
    Blog Entries
    1

    Default Re: permission denied for /etc/apache2/httpd.conf

    Does OS X have sudo? I think it has "Vi", doesn't it?

    You could run "sudo su" to change to root if you don't know or do not have root's password.
    "Linux provides freedom, problem is most users don't know what it is or how to use it." ~me
    Friends don't let Friends wear red shirts on away parties!
    Linux User #477531 | Danbury Area Computer Society (www.dacs.org)

  5. #5

    Default Re: permission denied for /etc/apache2/httpd.conf

    Quote Originally Posted by dragonbite View Post
    You could run "sudo su" to change to root if you don't know or do not have root's password.
    Depends on sudo's configuration.
    Try to do that on a default openSUSE installation f.e. and you would still need root's password, so the "sudo" would in fact be superfluous in "sudo su".

    And you could of course just run "sudo vim" as well, no need for "sudo su"...

  6. #6
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: permission denied for /etc/apache2/httpd.conf

    On 2014-04-15 20:26, wolfi323 wrote:
    >
    > dragonbite;2637143 Wrote:
    >> You could run "sudo su" to change to root if you don't know or do not
    >> have root's password.

    > Depends on sudo's configuration.
    > Try to do that on a default openSUSE installation f.e. and you would
    > still need root's password, so the "sudo" would in fact be superfluous
    > in "sudo su".


    But in Ubuntu world, it asks for the user password, so that is indeed
    the trick to get a root terminal. That way you can create a password for
    root, and from then on, use "su" instead.

    On a MAC? No idea.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 13.1 x86_64 "Bottle" at Telcontar)

  7. #7

    Default AW: Re: permission denied for /etc/apache2/httpd.conf

    Quote Originally Posted by robin_listas View Post
    On 2014-04-15 20:26, wolfi323 wrote:
    >
    > dragonbite;2637143 Wrote:
    >> You could run "sudo su" to change to root if you don't know or do not
    >> have root's password.

    > Depends on sudo's configuration.
    > Try to do that on a default openSUSE installation f.e. and you would
    > still need root's password, so the "sudo" would in fact be superfluous
    > in "sudo su".


    But in Ubuntu world, it asks for the user password, so that is indeed
    the trick to get a root terminal.
    I know, that's why I said it depends on sudo's configuration.

    And I too have no idea how it is configured on MacOS, nor whether it is available.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •