Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

JoshBoy

macrumors 6502
Original poster
Oct 12, 2008
484
361
Sydney, Australia
I am trying to get terminal to run in root, when i type in sudo -s i get this response, please help

Last login: Tue Mar 13 21:46:28 on console
unknown-e4-ce-8f-31-f3-fa:~ joshua$ sudo -s
sudo: can't open /private/etc/sudoers: Permission denied
sudo: no valid sudoers sources found, quitting
unknown-e4-ce-8f-31-f3-fa:~ joshua$
 

xStep

macrumors 68020
Jan 28, 2003
2,030
143
Less lost in L.A.
In case it matters, and it might with Lion, tell this audience what version of OS X you are using.

Is the user account that you are using have "Allow user to administer this computer" checked?
 

JoshBoy

macrumors 6502
Original poster
Oct 12, 2008
484
361
Sydney, Australia
I am online and it worked out by creating a root user (not another normal user account) and involved logging out and logging in as the "root" user that was then displayed
 

Sydde

macrumors 68030
Aug 17, 2009
2,552
7,050
IOKWARDI
You can skip the logging in/out step by changing users in the terminal itself with "su adminUserName" (it will ask for the admin user's password).

This does not really belong in the Programming forum.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.