Adding New Users.

Slides:



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

Linux Users and Groups Management
Unix/Linux basics user management Operating systems lab Gergely Windisch room 4.12
6. Adding New Users Xiang Sha Cmsc 691x. 6.1 The /etc/passwd File The /etc/passwd File is a list of users recognized by the system. Login name Encrypted.
Race Condition Zutao Zhu 10/09/09. Outline Race Condition –Some functions –File format of /etc/passwd and /etc/shadow –Input Redirection Format-string.
Adding New users This is a routine chore on most systems
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.
Linux+ Guide to Linux Certification, Second Edition
Linux System Administration LINUX SYSTEM ADMINISTRATION.
Introduction to Linux Installing Linux User accounts and management Linux’s file system.
Guide to Linux Installation and Administration, 2e1 Chapter 8 Basic Administration Tasks.
Unix System Administration Rootly Powers Chapter 3.
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.
File Permissions. What are the three categories of users that apply to file permissions? Owner (or user) Group All others (public, world, others)
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.
System Administration System Configuration and Logs.
Unix System Administration Chapter 6 Adding New Users.
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.
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.
Lecture 5: User Accounts & Directory Service Instructor: Dr. Najla Al-Nabhan
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,
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.
System Administration. Logging in as System Administrator System Admin login (aka superuser, aka root) –login id: root –Default PS1 prompt: # –Home directory:
Lecture – Users and groups
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.
Managing Users CSCI N321 – System and Network Administration Copyright © 2000, 2011 by Scott Orr and the Trustees of Indiana University.
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.
LINUX SYSTEM ADMINISTRATION
Lab 05 Firewalls.
System Programming and administration CS 308
Chapter 11: Managing Users
Ubuntu Working in Terminal
Chapter 2 User Management
Linux Users and Groups Management
IS3440 Linux Security Unit 3 User Account Management
Systems Administration CSCI Fall 2016
Adding New Users, Storage, File System
Unix Access Control Basic CE 2
COP 4343 Unix System Administration
Security and File Permission
OPS235 Lab4: Investigations 5 – 9
LINUX SYSTEM ADMINISTRATION
Chapter Introduction 3.2 The UNIX Model of Ownership
Module 13 System and User Security
Adding New Users Chapter 6.
Administering Users and Groups
Administering Users and Groups
Rootly Powers Chapter 3.
Presentation transcript:

Adding New Users

User Accounts Typically, a user is an individual who can log in, edit files, run programs and make use of the system. Each user has a username (login name), a UID, one or more groups, and GIDs. User account information is stored primarily in the password file, found in /etc/passwd. The group information is stored in the group file found in /etc/group. These are both public files, where all users can read them but only root can modify them.

Adding New User Adding a new user can be divided into several steps: Assign a user a name, a UID, primary group and decide which other groups she should be a member of Enter this information into /etc/passwd and /etc/group files Assign a password for the account Set other user account parameters Create a home directory for the user Use chown and chgrp to give the new owner ownership Add the user to any other facilities such as mail, printing and disk quotas Perform any other site specific initialization tasks. Test the new account.

Defining a new account Normally, the /etc/passwd file is the master list of information about users. Information about a new user needs to be added to this file. Each entry in the password file has the following form: name:coded-passwd:UID:GID:user info:home directory:shellsmith Smith:/home/smith:/bin/csh

Shadow password files Almost all recent UNIX implementations support shadow password files -files that are protected from all access by non-root users and that store the encrypted password. crypt - password and data encryption It is easy to tell when a shadow password file is in use: the password fields in the /etc/passwd are all set to ‘x’. The standard location of the shadow file is /etc/shadow.

Automating the Account Creation Process It is common to create shell scripts to automate the account creation process. There are many variations of the adduser script. The advantage of these tools is that it takes care of remembering a lot of the steps in the process for you. System V.4 added a user creation command : useradd as well as usermod and userdel. Solaris systems as well as Linux systems with the shadow package have these tools.

UNIX Groups Groups may be defined in two ways: Implicitly, by GID : whenever a new GID appears in the password file, a new group is defined Explicitly, by name and GID in the /etc/group file The /etc/group file lists all the system’s named groups: group_name::GID:additional-users chem::20:ben,alex,root

Standard UNIX Groups root –superuser daemon -executes system server processes bin -typically owns the executable files sys -owns system files adm -owns the accounting files uucp -owns the uucp tools and files mail, news, lp -additional pseudo-users designed to own files and run processes needed by their subsystems auth -pseudo-users associated with system auditing files nobody -account used by the NFS protocol

Common Startup Files

Commonly used commands useradd sudo useradd –g 1105 –c “Max R.” max userdel: removes a user account usermod: modify a useraccount sudo usermod –e “12/31/08” max: change the expiration date for the account groupadd sudo groupadd –g 1028 pubs groupdel