Linux+ Guide to Linux Certification, Second Edition

Slides:



Advertisements
Similar presentations
Unit 5 – User Administration Randy Marchany VA Tech Computing Center.
Advertisements

Linux Users and Groups Management
Race Condition Zutao Zhu 10/09/09. Outline Race Condition –Some functions –File format of /etc/passwd and /etc/shadow –Input Redirection Format-string.
User Account Management WeeSan Lee. Roadmap Add An Account Delete An Account /etc/{passwd,shadow} /etc/group How To Disable An Account? Root Account Q&A.
Linux+ Guide to Linux Certification, Second Edition
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 8: Implementing and Managing Printers.
Guide to Linux Installation and Administration, 2e1 Chapter 12 Printing in Linux.
Figure 14-1 The main Printer configuration window.
1 Chapter Overview Creating User and Computer Objects Maintaining User Accounts Creating User Profiles.
Linux System Administration LINUX SYSTEM ADMINISTRATION.
MCTS Guide to Configuring Microsoft Windows Server 2008 Active Directory Chapter 6: Windows File and Print Services.
CIS 218 Advanced UNIX 1 User and System Information CIS 218.
Guide to Linux Installation and Administration, 2e1 Chapter 8 Basic Administration Tasks.
Lesson 11-Locating, Printing, and Archiving User Files.
Managing User Accounts. Module 2 – Creating and Managing Users ♦ Overview ► One should log into a Linux system with a valid user name and password granted.
Linux+ Guide to Linux Certification, Second Edition
SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.
Adding New Users User as an entity - username(UID), GID. UID - typically a number for system to identify the user. GID – a number that recognizes a set.
ITI-481: Unix Administration Meeting 3. Today’s Agenda Hands-on exercises with booting and software installation. Account Management Basic Network Configuration.
IT2204: Systems Administration I 1 6b). Introduction to Linux.
Unix System Administration Chapter 6 Adding New Users.
Day 11 SAMBA NFS Logs Managing Users. SAMBA Implements the ability for a Linux machine to communicate with and act like a Windows file server. –Implements.
Guide to Linux Installation and Administration, 2e1 Chapter 10 Managing System Resources.
Module 4 - File Security. Security Overview File Ownership Access to Files and Dircetories Changing File and Directory Ownership Changing File and Directory.
Linux+ Guide to Linux Certification, Third Edition
CIT 470: Advanced Network and System AdministrationSlide #1 CIT 470: Advanced Network and System Administration Accounts and Namespaces.
Managing Users Objectives Contents Practicals Summary
ITI-481: Unix Administration Meeting 3 Christopher Uriarte, Instructor Rutgers University Center for Applied Computing Technologies.
CIS Lesson 10 Printers. CIS Lesson 10.
Linux Printing Chapter 14. Linux Printing Configuring a local printer Configuring a remote printer Traditional UNIX printing CUPS web Interface CUPS on.
Users Greg Porter V1.0, 26 Jan 09. What is a user? Users “own” files and directories Permission based on “ownership” Every user has a User ID (UID) 
There are three types of users in linux  System users: ?  Super user: ?  Normal users: ?
Managing Users  Each system has two kinds of users:  Superuser (root)  Regular user  Each user has his own username, password, and permissions that.
Chapter 10: Rights, User, and Group Administration.
Chapter 3 & 6 Root Status and users File Ownership Every file has a owner and group –These give read,write, and execute priv’s to the owner, group, and.
Introduction to System Admin Sirak Kaewjamnong. 2 The system administration’s job  Adding a new user  Doing backup and restoring files from backups.
Managing Users Objectives –to be able to add, modify and remove Unix user accounts Contents –requirements for a user account –configuration files (passwd,
Linux+ Guide to Linux Certification, Third Edition
Linux+ Guide to Linux Certification, Third Edition
Fall 2011 Nassau Community College ITE153 – Operating Systems Session 21 Administering User Accounts and Groups 1.
Linux Based Networks University of Education Instructor: Muhammad Amer Irshad.
The Saigon CTT Chapter 10 Managing Users. The Saigon CTT  Objectives  Define the requirements for user accounts  Explain group and group accounts 
Manually Creating a New User Account Presented by Carl South.
© 2006 ITT Educational Services Inc. Linux Operating System :: Unit 3 :: Slide 1 Downloading and Installing Software yum pirut Bit Torrent rmp.
ITI-481: Unix Administration Meeting 3 Christopher Uriarte, Instructor Rutgers University Center for Applied Computing Technologies.
SCSC 455 Computer Security Chapter 3 User Security.
Lecture – Users and groups
Linux Operations and Administration
Working with users and Groups. 1. Manage users and group 2. Manage ownership, permissions, and quotas.
Linux Use the Command-Line Interface to Administer the System.
CSC414 “Introduction to UNIX/ Linux” Lecture 6. Schedule 1. Introduction to Unix/ Linux 2. Kernel Structure and Device Drivers. 3. System and Storage.
SUSE Linux Enterprise Desktop Administration Chapter 9 Manage Users, Groups, and Permissions.
Chapter 6 Adding New Users. Computer Center, CS, NCTU 2 Steps to add a new user 1.Edit the password and group files >vipw, pw 2.Set an initial password.
Hands-On Microsoft Windows Server 2008 Chapter 5 Configuring Windows Server 2008 Printing.
Managing Users CSCI N321 – System and Network Administration Copyright © 2000, 2011 by Scott Orr and the Trustees of Indiana University.
Chapter 4: server services. The Complete Guide to Linux System Administration2 Objectives Configure network interfaces using command- line and graphical.
Experiment No 4 Prepared by, Mr. Satish Pise. Objectives View the /etc/passwd file and describe its syntax. View the /etc/shadow file and describe its.
This slide deck is for LPI Academy instructors to use for lectures for LPI Academy courses. ©Copyright Network Development Group Module 14 Managing.
Guide to Operating Systems, 5th Edition
LINUX SYSTEM ADMINISTRATION
System Programming and administration CS 308
Chapter 11: Managing Users
Chapter 2 User Management
Linux Users and Groups Management
Adding New Users, Storage, File System
COP 4343 Unix System Administration
LINUX SYSTEM ADMINISTRATION
Administering Users and Groups
Administering Users and Groups
Adding New Users.
Presentation transcript:

Linux+ Guide to Linux Certification, Second Edition Chapter 11 Common Administrative Tasks

Linux+ Guide to Linux Certification, 2e Objectives Set up, manage, and print to printers on a Linux system Understand the purpose of log files and how they are administered Create, modify, manage, and delete user and group accounts using command-line and graphical utilities Linux+ Guide to Linux Certification, 2e

Printer Administration: The Common UNIX Printing System Common Unix Printing System (CUPS): Most common printing system used on Linux Print job: Set of information sent to a printer File, set of files, output of a command lp command: Sends a print job to a printer Linux+ Guide to Linux Certification, 2e

Printer Administration: The Common UNIX Printing System (continued) cups daemon (cupsd): Responsible for printing in CUPS printing system Print job ID: Print job’s unique identifier Print queue: Directory holding print jobs waiting to be printed Typically /var/spool/cups Linux+ Guide to Linux Certification, 2e

Printer Administration: The Common UNIX Printing System (continued) Printer can accept or reject request to print If rejected, CUPS gives an error message Spooling or queuing: Accepting print jobs into a print queue Printing: Sending print jobs from print queue to a printer Linux+ Guide to Linux Certification, 2e

Printer Administration: The Common UNIX Printing System (continued) lpstat command: With –t (total) option, lists all printers and their status accept, reject, enable, and disable commands: Manipulate status of a printer For enable, must specify full path enable command (/usr/bin/enable) Linux+ Guide to Linux Certification, 2e

Printer Administration: The Common UNIX Printing System (continued) Figure 11-1: The print process Linux+ Guide to Linux Certification, 2e

Linux+ Guide to Linux Certification, 2e Managing Print Jobs lp –d command: Print to a specified printer If –d option omitted, prints to default printer lpoptions –d command: Set default printer Users can set own default printer Add to .lpoptions file in home directory Linux+ Guide to Linux Certification, 2e

Managing Print Jobs (continued) lp command accepts information from stdin lpstat command can list print jobs in queue for a printer cancel command: Remove print jobs from print queue lpadmin command: Perform printer administration e.g., restrict who can print to specific printers Linux+ Guide to Linux Certification, 2e

Managing Print Jobs (continued) Table 11-1: Common options to the lp command Linux+ Guide to Linux Certification, 2e

Managing Print Jobs (continued) Table 11-2: Common options to the lpstat command Linux+ Guide to Linux Certification, 2e

The LPD Printing System Line Printer Daemon (LPD): Printing system used on older Linux systems lpr command: Create print jobs in print queue lpc command: View status of printers lpq command: View print jobs in print queue lprm command: Remove print jobs Linux+ Guide to Linux Certification, 2e

Linux+ Guide to Linux Certification, 2e Configuring Printers /etc/cups/cupsd.conf: Contains cupsd settings /etc/cups/printers.conf: Contains each printer’s configuration information Printer Configuration tool: Used to configure printers e.g., Add new printers Configures queue, not printer Linux+ Guide to Linux Certification, 2e

Configuring Printers (continued) Figure 11-2: The Printer Configuration tool Linux+ Guide to Linux Certification, 2e

Configuring Printers (continued) Figure 11-3: Specifying the name of a new printer Linux+ Guide to Linux Certification, 2e

Configuring Printers (continued) Figure 11-5: Different queue types available for a new printer Linux+ Guide to Linux Certification, 2e

Configuring Printers (continued) For local printers, must choose printer port Such as /dev/lp0 For remote printers, specify name or IP address of remote server, printer name, or printer port Enable sharing as needed CUPS can automatically search for other shared CUPS printers Allow remote computers to print using the LPD protocol Linux+ Guide to Linux Certification, 2e

Configuring Printers (continued) Figure 11-6: Selecting the printer model for a new printer Linux+ Guide to Linux Certification, 2e

Configuring Printers (continued) Figure 11-7: Completing the creation of a new printer Linux+ Guide to Linux Certification, 2e

Configuring Printers (continued) Figure 11-8: View a configured printer Linux+ Guide to Linux Certification, 2e

Configuring Printers (continued) Figure 11-9: Sharing a printer to network users Linux+ Guide to Linux Certification, 2e

Configuring Printers (continued) Figure 11-10: Specifying shared printer options Linux+ Guide to Linux Certification, 2e

Log File Administration Log file: File containing system information /var/log: Contains most log files Many programs store log files in subdirectories Linux+ Guide to Linux Certification, 2e

Log File Administration (continued) Table 11-3: Common Linux log files found in /var/log Linux+ Guide to Linux Certification, 2e

Linux+ Guide to Linux Certification, 2e The System Log Daemon System log daemon (syslogd): Logs system events Uses /etc/syslog.conf file Entries indicate what information to write to what log file Linux+ Guide to Linux Certification, 2e

The System Log Daemon (continued) Facility: Area of system that information is gathered from Priority: Importance of system information Linux+ Guide to Linux Certification, 2e

The System Log Daemon (continued) Table 11-4: Facilities used by the System Log Daemon Linux+ Guide to Linux Certification, 2e

The System Log Daemon (continued) Table 11-5: Priorities used by the log daemon Linux+ Guide to Linux Certification, 2e

Linux+ Guide to Linux Certification, 2e Managing Log Files Log files can take up unnecessary space Clear contents occasionally Print copy for records Use > redirection symbol Do not remove log files Permissions and ownership will be removed Linux+ Guide to Linux Certification, 2e

Managing Log Files (continued) logrotate command: Back up and clear log files /etc/logrotate.conf: Used by logrotate utility Specifies rotation parameters for log files Log files compressed after rotation Linux+ Guide to Linux Certification, 2e

Administering Users and Groups Authentication: Verify user’s identity Compare username and password to system database Database containing user account information typically consists of two files: /etc/passwd: User account information Previously stored password information /etc/shadow: Encrypted password information pwconv command: Convert system to use an /etc/shadow file for encrypted password storage Linux+ Guide to Linux Certification, 2e

Administering Users and Groups (continued) pwunconv command: Revert back to using an /etc/passwd file only User Identifier (UID): Unique user ID for a user Group Identifier (GID): Primary group ID for each user Primary group: Group owner for all files created by a user Specified in /etc/passwd file Linux+ Guide to Linux Certification, 2e

Administering Users and Groups (continued) General Electric Comprehensive Operating System (GECOS): Field in /etc/passwd file containing user account description Root user usually listed at top of /etc/passwd file /etc/shadow: Password field contains encrypted password /etc/passwd: Password field contains an x (not used) Linux+ Guide to Linux Certification, 2e

Administering Users and Groups (continued) Passwords often set to expire at certain intervals Intervals specified in /etc/shadow /etc/group file: Lists all groups and their members Allows users to belong to multiple groups Password field usually contains an x Linux+ Guide to Linux Certification, 2e

Creating User Accounts useradd command: Add new user accounts Most new user information comes from two files: /etc/login.defs: E-mail location, password expiration, minimum password length, range of UIDs and GIDs /etc/default/useradd: default primary group, home directory location, password expiration info, shell, skeleton directory Linux+ Guide to Linux Certification, 2e

Creating User Accounts (continued) Skeleton directory: Contains files to copy to new users’ home directories Usually /etc/skel Mostly environment files passwd command: Set a user’s password If no arguments, sets current user’s password User accounts must have password set to log on Root user can change any user’s password Linux+ Guide to Linux Certification, 2e

Creating User Accounts (continued) Table 11-6: Common options to the useradd command Linux+ Guide to Linux Certification, 2e

Modifying User Accounts usermod command: Modify user account information chage command: Modify password expiration information Locking an account: Make an account temporarily unusable Alter password information chsh command: Change a valid shell to an invalid shell Linux+ Guide to Linux Certification, 2e

Modifying User Accounts (continued) Table 11-7: Common options to the usermod command Linux+ Guide to Linux Certification, 2e

Deleting User Accounts userdel command: Remove user accounts When an account is deleted, files previously owned by the user become owned by a number representing UID of deleted user Next user with that UID will own the files Linux+ Guide to Linux Certification, 2e

Linux+ Guide to Linux Certification, 2e Managing Groups groupadd command: Add a group to the system groupmod command: Modify GID name of a group on the system groupdel command: Remove a group from the system Linux+ Guide to Linux Certification, 2e

Managing Groups (continued) groups command: List groups that a user belongs to id command: List GIDs of groups that a user belongs to newgrp command: Temporarily change user’s primary group Graphical utilities exist to create, modify, and delete user and group accounts Linux+ Guide to Linux Certification, 2e

Managing Groups (continued) Figure 11-11: Configure users and groups with a desktop environment Linux+ Guide to Linux Certification, 2e