- Table of Contents
- Copyright
- About the Author
- Acknowledgments
- Tell Us What You Think!
- Introduction
- Part I: Introduction to Mac OS X
- Chapter 1. Mac OS X Component Architecture
- Chapter 2. Installing Mac OS X
- Chapter 3. Mac OS X Basics
- Chapter 4. The Finder: Working with Files and Applications
- Chapter 5. Running Classic Mac OS Applications
- Part II: Inside Mac OS X
- Chapter 6. Native Utilities and Applications
- Chapter 7. Internet Communications
- Chapter 8. Installing Third-Party Applications
- Part III: User-Level OS X Configuration
- Chapter 9. Network Setup
- Chapter 10. Printer and Font Management
- Chapter 11. Additional System Components
- Part IV: Introduction to BSD Applications
- Chapter 12. Introducing the BSD Subsystem
- Chapter 13. Common Unix Shell Commands: File Operations
- Part V: Advanced Command-Line Concepts
- Chapter 14. Advanced Shell Concepts and Commands
- Chapter 15. Command-Line Applications and Application Suites
- Chapter 16. Command-Line Software Installation
- Chapter 17. Troubleshooting Software Installs, and Compiling and Debugging Manually
- Chapter 18. Advanced Unix Shell Use: Configuration and Programming (Shell Scripting)
- Part VI: Server/Network Administration
- Chapter 19. X Window System Applications
- Chapter 20. Command-Line Configuration and Administration
- Chapter 21. AppleScript
- Chapter 22. Perl Scripting and SQL Connectivity
- Chapter 23. File and Resource Sharing with NetInfo
- Chapter 24. User Management and Machine Clustering
- Chapter 25. FTP Serving
- Chapter 26. Remote Access and Administration
- Chapter 27. Web Serving
- Part VII: Server Health
- Chapter 28. Web Programming
- Chapter 29. Creating a Mail Server
- Chapter 30. Accessing and Serving a Windows Network
- Chapter 31. Server Security and Advanced Network Configuration
- Chapter 32. System Maintenance
- Appendix A. Command-Line Reference
- Appendix B. Administration Reference
User Account Creation
In this section, we will touch on some of the basics involved in user account creation. We will look at some ways we can customize user account creation in Chapter 23, "File and Resource Sharing," and we will look at user management in detail in Chapter 24, "User Management."
Introduction to Multi-User Systems
OS X is a Unix-based operating system. As such, it is a multi-user operating system; that is, everyone who uses the machine may do so by having an account on the machine. A user can use his account on the machine either at the console or via remote access—if you should choose to enable remote access, which we will discuss in further detail in Chapter 26, "Remote Access and Administration."
A particularly nice feature of a multi-user system is that multiple users can use the machine at the same time. While each user is using the system, it seems to each user as if he is the only user on the system.
Each user has a home directory, where he stores his files. In OS X, the users' home directories are located in the /Users directory. Figure 11.1 shows the /Users directory on a sample OS X client.
Figure 11.1 You can get to the /Users directory by double-clicking your OS X drive and opening the Users folder.
When a user logs in to the system, the default area where he is logged in is his home directory. Hence, the use of the house as an icon in the Finder window toolbar. Additionally, you see the same icon in Figure 11.1 among the user directories. Users can still see most areas on the machine, although they might not necessarily be able to see all of another user's files. In a multi-user system, users can set permissions on their files to allow different types of access. Even if other users can see your files, they can't modify them unless you have set permissions to allow them to do so. For example, Figure 11.2 shows how the home directory for user miwa looks to another user. A number of folders have a white minus in a red circle on them. Directories so marked are not viewable by this user. The other files and directories, however, can be viewed by this user.
Figure 11.2 Depending on how the owner grants permissions on his files and directories, other users might not be able to view them at all.
Adding a New User
When you installed OS X, you were asked to provide your name and a short name that could be used as your login name. During the installation process, you created an account. Specifically, you created an administrator account. Adding another user account is much like creating the original administrator account that you created at installation time.
Because it can be used to modify the machine settings or install software, the administrator account is actually a rather powerful account. When you add a new user, you have the choice of adding a regular user or adding one with administrator capabilities. Although it is helpful to have more than one user with administrator capabilities, do not give administrator access to every user account that you create. Otherwise, every user on the machine will be able to modify your system.
You create a new user account using the Users pane in the System section of the System Preferences as follows:
- Open the Users pane in the System Preferences.
-
Click on the make changes lock icon, if it is set not to allow changes, and enter your administrator username and password. Click on New User, which brings up a New User window. The New User window has an Identity tab, and a Password tab with fields that you complete.
The Identity tab of the New Users window, shown in Figure 11.3, has the following fields:
- Name— This is where you enter your user's name. In OS X, this is a name that the user can use to log in to the machine.
- Short Name— The short name is the username; that is, the name of the account. This is also a name that the user can use to log in to the machine. This name can be up to eight characters in length, must have no spaces, and be in lowercase. This name is used by some of the network services.
- Login Picture— Select a picture that can be displayed with this user's name in the user listing at login time. Either select one from the available selection in the Identity tab, or choose a custom picture elsewhere on your machine.
Figure 11.3 Complete the fields under the Identity tab when creating a new Mac OS X user account.
The Password tab of the New Users window, shown in Figure 11.4, has the following fields:
- Password— The password should be at least four characters. Many systems recommend at least six characters, with a variety of character types included in the password.
- Verify— This is where you re-enter the password for verification purposes.
- Password Hint— This is an optional field. The password hint is displayed if the user enters an incorrect password three times. If you include a hint, make sure the hint is not so obvious that other users can guess the password.
- Allow user to administer this machine— This is the box you check to grant a user administrative privileges. Check this box only for a trustworthy user who you feel should be allowed to have administrative privileges. It is not checked by default as a security precaution.
Figure 11.4 Also complete the fields under the Password tab when creating a new Mac OS X user account.
- Click on Save.
You are returned to the Users pane, which now lists your new user by name. You have created a new user. In Chapter 23, you will see how to create a specific user called software, with a specific user ID and group ID.
You can also edit user information, such as the password, by using the Users pane of System Preferences. Just select the user account that needs to be edited, and click Edit User, which brings up an already completed window identical to that for a new user.
To delete a user account, simply select the account to be deleted, and click the Delete User button. A sheet then appears, asking you to confirm the action and to select an administrator account that should store the old user account data. The Users pane does not allow you to delete the original administrator user account.
Enabling the root Account | Next Section

Account Sign In
View your cart