Free Programming Books
Free download ebooks on computer and programming

Free ebook "Linux System Administration (Craig Hunt Linux Library)" Sample Chapter

Linux System Administration
Free download chapter 6: Creating & Maintaining User Accounts
Download chapter

Most Indispensable Linux Book" --2001 Linux Journal Readers Choice Awards Authoritative Answers to All Your Linux Questions You can rely on the fully updated second edition of Linux System Administration for answers to all your questions about installing, configuring, and administering Linux. Written by two Linux experts, this book teaches you, step-by-step, all the standard and advanced techniques you need to know to set up and maintain a secure, effective Linux environment. Scores of clear, consistent examples illustrate these techniques in detail--so you stay on track and accomplish all your goals. Coverage includes:

  • Installing a Linux server
  • Setting up and maintaining user and group accounts
  • Setting up Linux system security
  • Sharing files using Samba and NFS
  • Implementing a backup strategy
  • Troubleshooting common Linux problems
  • Setting up the X Window System
  • Setting up TCP/IP and connecting to the Internet
  • Setting up a mail server
  • Maintaining filesystems and partitions
  • Configuring printers
  • Improving system performance
  • Writing shell scripts
  • Using Webmin for cross-distribution GUI administration
The Craig Hunt Linux Library provides in-depth, advanced coverage of the key topics for Linux administrators. Topics include Samba, Network Servers, DNS Server Administration, Apache, Security, and Sendmail. Each book in the series is either written by or meticulously reviewed by Craig Hunt to ensure the highest quality and most complete coverage for networking professionals working specifically in Linux environments.

< < prev next > >

Creating and Maintaining User Accounts

Managing and maintaining user accounts is the first step toward maintaining system security. Without indovidual user accounts, we would all be working on single large common directory, in a state of chaos. Managing user and group accounts allows us to partition and control the access of users with respect to one another

Managing users and groups is a larger part of your jobs as a system administrator. Setting up user accounts allows you to provide your users with access while still retaining the ability to track what your users do as well as the ability to limit their access as appropriate. It is one of the most visible jobs you'll have. Learning to do it efficiently will save you hours in the long run, and the confidence you'll exude from knowing it well will put you in good standing with your users.

Linux uses two or three files to maintain user and group information. The /etc/passwd file stores information about user accounts, and /etc/group stores information about groups. Most systems also use a file called /etc/shadow to maintain passwords. Later in the chapter you'll see examples of these files. You'll also see that all the basic administrative tasks of adding, removing, and modifying user and group accounts can be done in any of three ways: by manually editing the account's entry in /etc/passwd or /etc/group, by using Linux command-line utilitites that pass the relevant information to those files, or by using a GUI tool like Linuxconf to enter the same information.