Introduction to System Admin Sirak Kaewjamnong. 2 The system administration’s job  Adding a new user  Doing backup and restoring files from backups.

Slides:



Advertisements
Similar presentations
Linux Users and Groups Management
Advertisements

Chapter 2 Accessing Your System and the Common Desktop Environment.
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.
User Accounts and Permissions Chapter IV / Part II.
SUSE Linux Enterprise Server Administration (Course 3037) Chapter 2 Manage User Access and Security.
Lecture 02CS311 – Operating Systems 1 1 CS311 – Lecture 02 Outline UNIX/Linux features – Redirection – pipes – Terminating a command – Running program.
Linux+ Guide to Linux Certification, Second Edition
Linux System Administration LINUX SYSTEM ADMINISTRATION.
1. This presentation covers :  User Interface Administration  Files System and Services Management 2.
Introduction to Linux Installing Linux User accounts and management Linux’s file system.
Chapter-4 Windows 2000 Professional Win2K Professional provides a very usable interface and was designed for use in the desktop PC. Microsoft server system.
Guide to Linux Installation and Administration, 2e1 Chapter 8 Basic Administration Tasks.
CIS 191 – Lesson 2 System Administration. CIS 191 – Lesson 2 System Architecture Component Architecture –The OS provides the simple components from which.
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.
CT 320 Midterm Study Guide.
Samba Advanced System Administration Course James Lwali University computing Centre Ltd, University of Dar es salaam,
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.
IT2204: Systems Administration I 1 6b). Introduction to Linux.
Active Directory Administration Lesson 5. Skills Matrix Technology SkillObjective DomainObjective # Creating Users, Computers, and Groups Automate creation.
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
ITI-481: Unix Administration Meeting 3 Christopher Uriarte, Instructor Rutgers University Center for Applied Computing Technologies.
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.
System Administration 1.  system administration  user and group management 2.
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.
Core 3: Communication Systems. Network software includes the Network Operating Software (NOS) and also network based applications such as those running.
Fall 2011 Nassau Community College ITE153 – Operating Systems Session 21 Administering User Accounts and Groups 1.
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.
System Administration. Logging in as System Administrator System Admin login (aka superuser, aka root) –login id: root –Default PS1 prompt: # –Home directory:
SCSC 455 Computer Security Chapter 3 User Security.
Lecture – Users and groups
Working with users and Groups. 1. Manage users and group 2. Manage ownership, permissions, and quotas.
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.
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 courseware is copyrighted © 2016 gtslearning. No part of this courseware or any training material supplied by gtslearning International Limited to.
This slide deck is for LPI Academy instructors to use for lectures for LPI Academy courses. ©Copyright Network Development Group Module 14 Managing.
Chap 1 ~ Introducing LINUX LINUX is a free-stable multi-user operating system that derives from UNIX operating system Benefits: 1) Linux is released under.
UNIX Command RTFM: sudo(8)
System Administration II
SYSTEM ADMINISTRATION PART I by İlker Korkmaz and Kaya Oğuz
Overview – SOE Sudo SEP 2014.
Sudoers Meryll Larkin - that's me Why you are here:
Introduction to Operating Systems
System Programming and administration CS 308
Chapter 11: Managing Users
Overview – SOE Sudo September 2016.
Overview – SOE Sudo November 2015.
Active Directory Administration
9 Linux on the Desktop.
Ubuntu Working in Terminal
Chapter 2 User Management
Users and Accounts Lab 0.1. Users and Accounts Lab 0.1.
Linux Users and Groups Management
Systems Administration CSCI Fall 2016
Adding New Users, Storage, File System
COP 4343 Unix System Administration
Figure 6-9: Managing Users and Groups
LINUX SYSTEM ADMINISTRATION
Working with Mac OS and Linux
User accounts.
System & Network Administration (MCSA & RHCSA)
User accounts.
Adding New Users.
Presentation transcript:

Introduction to System Admin Sirak Kaewjamnong

2 The system administration’s job  Adding a new user  Doing backup and restoring files from backups  Answer user questions  Monitoring system activity and tuning system performance for good respond time  Worrying about system security and patching security holds

3 The system administration’s job  Installing programs and OS updates  Trying to free up disk space  Rebooting the system after a crash  Adding a new equipment and new systems  Fixing any problems  Writing scripts to automate as many of the above activities as possible

4 Unix superuser  Superuser is a privileged account with unrestricted access to all files and command  The user name of superuser is “root”  This user has a user ID of 0

5 Becoming root  There are two ways to become the superuser 1. Login as root directly 2. Execute command su to change privileged % su

6 Sudo command  The sudo utility allows users defined in the /etc/sudoers configuration file to have temporary access to run commands they would not normally be able to due to file permission restrictions  Sudo (superuser do) allows a system administrator to give certain users (or groups of users) the ability to run some (or all) commands as root

7 The /etc/sudoers File  The /etc/sudoers file contains all the configuration and permission parameters needed for sudo to work

8 Format of the /etc/sudoers File  Groups are the same as user groups and are differentiated from regular users by a % at the beginning. The Linux user group "users" would be represented by %users.  can have multiple usernames per line separated by commas.  Multiple commands also can be separated by commas. Spaces are considered part of the command.  The keyword ALL can mean all usernames, groups, commands and servers.  If run out of space on a line, admin can end it with a back slash (\) and continue on the next line.  The NOPASSWD keyword provides access without prompting for your password. usernames/group servername = (usernames command can be run as) command

9 /etc/sudoers Examples root ALL = (ALL) ALL %wheel ALL = (ALL) ALL  root and users in group wheel can run anything on any machine as any user Srk,rp ALL = NOPASSWD: ALL  User srk and rp can run anything on any machine without a password peter, %operator ALL= /sbin/, /usr/sbin, /usr/local/apps/check.pl  user peter and all the members of the group operator to gain access to all the program files in the /sbin and /usr/sbin directories, plus the privilege of running the command /usr/local/apps/check.pl

10 Using Aliases in the sudoers File User_AliasADMINS = millert, mikef, dowdy ADMINSALL = NOPASSWD: ALL  User alias ADMINS are user millert.mikef,dowdy  User alias ADMINS can run anything on any machine without a password Cmnd_AliasPRINTING = /usr/sbin/lpc, /usr/bin/lprm Cmnd_AliasSHUTDOWN = /usr/sbin/shutdown srk ALL = PRINTING, /usr/bin/adduser  User srk can use printer and add new user

11 How to add user  Add linux group #groupadd students #groupadd staff #groupadd teachers  Add the Linux users and assign them to their respective groups #useradd –g teachers rp #useradd –g staff srk  Each user's personal directory is placed in the /home directory. The directory name will be the same as their user name

12 Change password  User root changing the password for user paul passwd paul Changing password for user paul. New password: Retype new password: passwd: all authentication tokens updated successfully.

13 Delete user  The userdel command is used to remove the user's record from the /etc/passwd and /etc/shadow used in the login process. The command has a single argument, the username userdel paul  an optional -r switch that additionally removes all the contents of the user's home directory userdel -r paul

14  oers