Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Does this mean every non-admin user...' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Does this mean every non-admin user...
Authored by: laardvark on May 27, '04 04:15:57PM

yes and you can also easily enable root during single user mode.

In single user mode, you're already running as root. Just do passwd, and you'll set a password for root and it'll be enabled.

I fixed a sudoers file this way. I enabled root, rebooted, and logged in as root. Then I edited the netinfo settings using NetInfo Manager. For some reason the box had totally lost the admin group!

To make things simple, I added myself specifically to the sudoers file on the box (in case it happened again).

I've written my own "adduser" in python. I haven't gone back and looked at it in awhile, the only thing I was having a problem with was it setting the password for the new user. The password setting code works...just not when it's run right after creating the user.

Pretty sure I didn't do anything about admin users in the script though. I should release it, as it does some things that other online scripts didn't do (like create the http.conf user entries).




[ Reply to This | # ]