There are three types of users in linux  System users: ?  Super user: ?  Normal users: ?

Slides:



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

Linux Users and Groups Management
There are three types of users in linux  System users: (they are the software/applications users created automatically by the system) e.g mail, MySQL,
Linux File & Folder permissions. File Permissions In Ubuntu, files and folders can be set up so that only specific users can view, modify, or run them.
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
L INUX C OMMAND L INE I NTERFACE G UNAANBAN.G
Linux System Administration LINUX SYSTEM ADMINISTRATION.
1. This presentation covers :  User Interface Administration  Files System and Services Management 2.
Guide to Linux Installation and Administration, 2e1 Chapter 8 Basic Administration Tasks.
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.
IT2204: Systems Administration I 1 6b). Introduction to Linux.
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
Managing Users Objectives Contents Practicals Summary
ITI-481: Unix Administration Meeting 3 Christopher Uriarte, Instructor Rutgers University Center for Applied Computing Technologies.
The Linux Operating System Lecture 3: Becoming the Superuser and Users and Groups The Tonga Institute of Higher Education.
Lesson 9-Setting and Using Permissions. Overview Describing file permissions. Using execute permissions with a file. Changing file permissions using mnemonics.
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) 
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 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.
1 Begin to use Linux. 2 Background  Linux is an operating system similar to UNIX. It runs on many different computers and was first released in 1991.
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.
CSCI 330 UNIX and Network Programming Unit XX: Linux Administration.
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.
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.
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.
Basic Commands ls cp ls –l (in detail format) echo ls –a
Chapter 11: Managing Users
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
IS3440 Linux Security Unit 3 User Account Management
Systems Administration CSCI Fall 2016
Adding New Users, Storage, File System
COP 4343 Unix System Administration
Chapter 7 File and file System structure
Security and File Permission
OPS235 Lab4: Investigations 5 – 9
The Linux Command Line Chapter 9
LINUX SYSTEM ADMINISTRATION
System & Network Administration (MCSA & RHCSA)
Module 13 System and User Security
Administering Users and Groups
Administering Users and Groups
Adding New Users.
Presentation transcript:

There are three types of users in linux  System users: ?  Super user: ?  Normal users: ?

There are three types of users in linux  System users: (they are the software/applications users created automatically by the system) e.g mail, MySQL, ftp …..  Super user: ?  Normal users: ?

There are three types of users in linux  System users: (they are the software/applications users created automatically by the system) e.g mail, MySQL, ftp …..  Super user: (the superuser/root user/system administrator is only one, his duties are to install software + create or delete users + look after the system resources ….) the prompt sign of super user is # in all shells.  Normal users: ?

There are three types of users in linux  System users: (they are the software/applications users created automatically by the system) e.g mail, MySQL, ftp …..  Super user: (the superuser/root user/system administrator is only one, his duties are to install software + create or delete users + look after the system resources ….) the prompt sign of super user is # in all shells.  Normal users: (the normal users can me many, the powers of normal users are limited but normal user has full powers in his home directory ) the prompt sign of normal users in $ in bourne shell and % in c-shell

The files which keeps the information of users  The passwd file : (etc/passwd) old method file User name Password User id Group id User description User home directory User shell

The files which keeps the information of users  The shadow file : (etc/shadow) new method file, most information is encrypted User name Password User id Group id User description User home dir User shell

Users and Groups

chmod 777 myfile Will assign read, write and execute permissions to all owner, group and others (rwxrwxrwx) chown -R ali mydir It will change the ownership of the Directory mydir for the user ali, -R option will change ownership of the sub directories residing inside mydir as well. chgrp -R usman mydir It will change the group ownership of the directory mydir for the user usman, -R option will change group ownership of the sub directories residing inside mydir as well. Giving file permissions to files and directories Command -option argument description

Group Information File The files which keeps the information of group  The group file : (etc/group) group name Password Group id  Assigning password to more then one user chpasswd username:password chpasswd umar:abc123 usman:ord4446 zahid:sleep :....

Creating a Group  groupadd bilal Removing a Group  groupdel bilal  groupmod (to modify a group)  useradd –G (to create a fresh user and assign him to a group) useradd –G bilal billygroup You can also create,add and remove groups and users by GUI.

Creating a User  useradd bilal Assigning a password to a User  passwd bilal ****** Creating new user and assigning password, shell and id  useradd umar –p abc123 -s /sbin/zsh -u 574 Deleting a user add users home directory as well  userdel –r bilal ‘-r’ /home/bilal

 ac  who (will display who are currently logged in and what terminals they are using)  password should be not simple  Password should be not so long  Password should not be written near your pc  Password should not be very difficult  su (will switch to root user, will ask for password before switching )  su bilal (will switch to the user bilal, will ask for bilal password before switching)  su umar (will switch to the user umar, will ask for umar password before switching)

sudo (The user must authenticate himself with the password, list of authorized users is in /etc/sudoers and super user can only access)  First you need to add the user in the file sudoers and assign a password  sudo fdisk –l /dev/hda1 (After this the system will ask you for the password, and will match it in the /etc/sudoers/ file) The above command is a system administrator level Command but a normal user will execute it ‘system Disk checking’.

 Login prompts.  If the user is not root and tries to type wrong password of root then the system will halt and a warning message is issued.  A file /etc/shadow is examined to see if any restrictions are on this particular user.  Password prompts.  User id and Group id being used are set on terminal.  Terminal environment is set.  The home, mail, shell, log is preserved.  The default path of user are set, e.g mail, home etc…  If there are any greeting messages then they are set.  Lastly the user command shell starts.

1. This can be set to both a user and a group. 2. Quota management is not enabled by default and has to be enabled and configured manually. 3. Through the vi editor change the file /etc/fstab and set the rules. Gui control panel