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


Click here to return to the 'Dumb idea!' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Dumb idea!
Authored by: professor on Sep 23, '02 03:15:07PM
Disable booting into single user mode? That doesn't sound like a very bright idea.
How do you expect to be able to do any disaster recovery if you can't boot single user?
A more sensible approach is to password-protect single-user mode by inserting a password-checking routine into /var/root/.profile . (In single-user mode, root's shell is /bin/sh).
A favourite one from old NeXT days was a little c program called pw_check. So you'd put
    /usr/local/bin/pw_check root
in /var/root/.profile and make sure that roots password is in /etc/passwd (since netInfo iisn't running in single-user mode).

[ Reply to This | # ]