From Fedora Project Wiki
fp-wiki>ImportUser
(Imported from MoinMoin)
 
m (Docs/Drafts/AdministrationGuide/UserAccountsOrig moved to Archive:Docs/Drafts/AdministrationGuide/UserAccountsOrig: This page references a newer draft version. Archiving old page tree then I'll go back and redirect to the new.)
 
(2 intermediate revisions by 2 users not shown)
Line 20: Line 20:
To start explaining the process that happens in the background during account creation, following tables show listing of the programs used by system administrator and files manipulated in the course of this process:<BR><BR>
To start explaining the process that happens in the background during account creation, following tables show listing of the programs used by system administrator and files manipulated in the course of this process:<BR><BR>


 
{|
{| border="1"
|-
|-
|||||'''Command Line Programs'''
! colspan="3" | Command Line Programs
|-
|-
| '''Program Executable''' || '''Location in the File System''' || '''Purpose'''
! Program Executable || Location in the File System || Purpose
|-
|-
| <code>useradd</code> || <code>/usr/sbin/useradd</code> || Creates user account
| <code>useradd</code> || <code>/usr/sbin/useradd</code> || Creates user account
Line 40: Line 39:
|}
|}


'''Table 1.1 - Command Line Programs'''<BR><BR><BR>
'''Table 1.1 - Command Line Programs'''


{| border="1"
{|
|-
|-
|||||'''Graphical Interface Program'''
! colspan="3" | Graphical Interface Program
|-
|-
| '''Program Executable''' || '''Location in the File System''' || '''Purpose'''
! Program Executable || Location in the File System || Purpose
|-
|-
| <code>system-config-users</code> || <code>/usr/bin/system-config-users</code> || Creates and modifies user and group accounts
| <code>system-config-users</code> || <code>/usr/bin/system-config-users</code> || Creates and modifies user and group accounts
Line 53: Line 52:
|}
|}


'''Table 1.2 - Graphical Interface Program'''<BR><BR><BR>
'''Table 1.2 - Graphical Interface Program'''


{| border="1"
{{Admon/note | The Table 1.2 shows two ways of running the same program |  Top raw indicates how to invoke the program from the command line interface. The result is the same as if running program using its icon in the System menu.}}
|-
|  {{Template:Note}} '''The Table 1.2 shows two ways of running the same program'''
|-
|  Top raw indicates how to invoke the program from the command line interface. The result is the same as if running program using its icon in the System menu.
|}


 
{|
{| border="1"
|-
|-
|||||'''Files Containg User and Group Data and Accounts Settings'''
! colspan="2" | Files Containg User and Group Data and Accounts Settings
|-
|-
| '''Absolute Path / File Name''' || '''Purpose'''
! Absolute Path / File Name || Purpose
|-
|-
| <code>/etc/passwd</code> || Contains essential information about users such as username, password (if shadow passwords are not used), uid, gid of the user's primary group, location of the user's home directory, user's default shell, etc.
| <code>/etc/passwd</code> || Contains essential information about users such as username, password (if shadow passwords are not used), uid, gid of the user's primary group, location of the user's home directory, user's default shell, etc.
Line 82: Line 75:
|}
|}


'''Table 1.3 - Files and Directories Containing User and Group information'''<BR><BR><BR>
'''Table 1.3 - Files and Directories Containing User and Group information'''


----
{|
 
{| border="1"
|-
|-
|[[Docs/Drafts/AdministrationGuide| Previous Page - Table of Contents]] ||[[Docs/Drafts/AdministrationGuide| User Accounts]] ||[[Docs/Drafts/AdministrationGuide/CreatingAccounts| Next Page - Creating Accounts Using Graphical Interface]]
|[[Docs/Drafts/AdministrationGuide| Previous Page - Table of Contents]] ||[[Docs/Drafts/AdministrationGuide| User Accounts]] ||[[Docs/Drafts/AdministrationGuide/CreatingAccounts| Next Page - Creating Accounts Using Graphical Interface]]
|}

Latest revision as of 17:51, 4 March 2009

User Accounts

Introduction

Creation and management of users and user groups is one of the fundamental pieces of system administration on multi-user systems such as Linux. The user accounts system provides a secure storage area for users' files and gives users the ability to customize their working environment according to their needs.

Fedora includes two types of accounts - system and non-system accounts. System accounts includes the root user and other system accounts, such as the apache user, that are created during the installation process and used by various system daemons and utilities to perform system-wide tasks. Fedora reserves the first 499 uids for system accounts. This is why they are sometimes reffered to as low ID accounts.

Non-system accounts start from uid 500 and are used for regular users to perform their day-to-day, non-privileged tasks. Usually, the first user account is created during the first boot following the system's installation. After that, user and group accounts can be created with standard procedures.

Ways to Create and Modify User and Group Accounts

As with most other tasks, system administrator can chose between two ways of creating and subsequently modifying user accounts:

  • Command line interface
  • Graphical interface

To start explaining the process that happens in the background during account creation, following tables show listing of the programs used by system administrator and files manipulated in the course of this process:

Command Line Programs
Program Executable Location in the File System Purpose
useradd /usr/sbin/useradd Creates user account
usermod /usr/sbin/usermod Modifies user account
groupadd /usr/sbin/groupadd Creates group account
groupmod /usr/sbin/groupmod Modifies group account
passwd /usr/bin/passwd Sets or changes user's password
chage /usr/bin/chage Changes password expiry information

Table 1.1 - Command Line Programs

Graphical Interface Program
Program Executable Location in the File System Purpose
system-config-users /usr/bin/system-config-users Creates and modifies user and group accounts
System > Administration > Users and groups /usr/bin/system-config-users Creates and modifies user and group accounts

Table 1.2 - Graphical Interface Program

The Table 1.2 shows two ways of running the same program
Top raw indicates how to invoke the program from the command line interface. The result is the same as if running program using its icon in the System menu.
Files Containg User and Group Data and Accounts Settings
Absolute Path / File Name Purpose
/etc/passwd Contains essential information about users such as username, password (if shadow passwords are not used), uid, gid of the user's primary group, location of the user's home directory, user's default shell, etc.
/etc/shadow Contains user's encrypted password and information related to password policies, such as password age and expiration time
/etc/group Contains group's name, group's password (if shadow passwords are not used), group's numerical ID (gid) and list of group members
/etc/gshadow Contains group's name, group's encrypted password (if set), group administrators and group members
/home/<username> This is default location for the user's home directory
/etc/skel/* Hidden files for user's shell environment configuration

Table 1.3 - Files and Directories Containing User and Group information

Previous Page - Table of Contents User Accounts Next Page - Creating Accounts Using Graphical Interface