Eh.. Something has gone wrong!

charger

Registered
I was fiddeling around - trying to get controle of my Apache Server, and after doing stuff that seemed to work I was glad that I could configure it on my own - I'm new to OS X in case you thought different :)

When I went back to the Terminal to do some root stuff - I got this message when entering the sudo command:

[localhost:/] user% sudo -s
sudo: /etc/sudoers is mode 0664, should be 0440
[localhost:/] user% /etc/mail/sendmail.cf: line 81: fileclass: cannot open /etc/mail/local-host-names: Group writable directory

- What is going on, and what is the "sudoers" file, and what can I do to fix the problem?

-Anyone :-?
 
Thank you for your reply -

Well - all I have done, as far as I know, was to enable the root user - so that I could get access to the /etc/httpd .conf files for my Apache server, and all I did was adding my own user account to the root user account. No other permissions were changed.

-If you are right I then need to disable the root account by changing the password back to (*) which was the default password?
 
Just out of interest then:

How do you configure the httpd .conf files for the Apache server without changing permissions to the files?

kind of need write perm. to configure the server - so its any use at all - I need to be able to set up VirtualHost info.

-?-
 
I hope noone have had the same problem, and gone to tha step of re-intalling tha OS. There was a very simple solution:

chmod 0440 /etc/sudoers

- That's all, and my Mac is all happy again!

Thank you for the villingness to help everyone!!

mbs
 
Back
Top