Example: A non-administrator user, such as a student in a school lab, is logged in. The user needs to perform a certain operation that requires administrator access. An administrator user, such as a teacher, opens Terminal and uses the
sudo command to allow the student to perform the task. Mac OS X 10.3 differs from earlier versions of Mac OS X because the non-administrator user now has access to other resources. Among other things, this means that all System Preference panes are now unlocked for the logged-in user, regardless of the Security pane or master password settings.
To avoid sharing credentials, you can use Fast User Switching:
Enable Fast User Switching if it isn't on. Do this one time:
- Log in with an administrator account.
- From the Apple menu, choose System Preferences.
- From the View menu, choose Accounts.
- Click the Login Options button.
- Select "Enable fast user switching".
- Create another admin user account.
Then, follow these steps whenever you need to authenticate or unlock resources via Terminal:
- Switch to the alternative account via the Fast User Switching menu.
- Do what you need to in the Terminal.
- Switch back to the original account.
Note: You can also reset session credentials by locking an unlocked System Preferences pane, such as Network preferences.