Users/Groups/Permissions

Slides:



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

Linux Users and Groups Management
Chapter 8 Files and User Information Utilities. Logical Partitions referred to as file systems like a drive in windows world $ df (display filesystems)
Chapter 2 Accessing Your System and the Common Desktop Environment.
File Security. Viewing Permissions ls –l Permission Values.
File security and Permissions A file is owned by the user who created it That user can then specify who can read, write and execute that file A file when.
GNU/Linux Filesystem 1 st AUT GNU/Linux Festival Computer Engineering & IT Department Bahador Bakhshi.
Lesson 22 – Introduction to Linux Systems Administration.
SUSE Linux Enterprise Server Administration (Course 3037) Chapter 2 Manage User Access and Security.
Linux+ Guide to Linux Certification, Second Edition
Getting Started with Linux Linux System Administration Permissions.
Hacking Linux Systems.  Text Editors  vi, ex, pico, jove, GNU emacs  Shells  chs (C Shell), sh (Bourne Shell)  File navigation  cd, ls, cp, mv,
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.
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.
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 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.
Linux+ Guide to Linux Certification, Third Edition
PacNOG 6: Nadi, Fiji UNIX ™/ /Linux Permissions Hervey Allen Network Startup Resource Center.
Fall 2011 Nassau Community College ITE153 – Operating Systems Session 21 Administering User Accounts and Groups 1.
Privileges: who can control what Introduction to Unix May 24, 2008 Rabat, Morocco Hervey Allen.
Managing Files CSCI N321 – System and Network Administration Copyright © 2000, 2007 by the Trustees of Indiana University except as noted.
Linux Commands C151 Multi-User Operating Systems.
The Saigon CTT Chapter 10 Managing Users. The Saigon CTT  Objectives  Define the requirements for user accounts  Explain group and group accounts 
Linux Filesystem WeeSan Lee. Roadmap Disk Partitions The Filesystem Filesystem Mouting & Umounting File Tree File Type File Permission.
© 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 530 Lab Authorization. Review Authentication: proving the identity of someone Passwords Smart Cards DNA, fingerprint, retina, etc. Authorization:
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.
File System Security ls -l. First Columm d = directory l = symbolic link b = block special file c = character special file p = fifo (or named pipe) special.
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.
ORAFACT The Linux File System. ORAFACT Filesystem Support Support for dozens of filesystem types including: Minix, ext2, MS-DOS, UMSDOS, VFAT, NTFS, NFS,
This slide deck is for LPI Academy instructors to use for lectures for LPI Academy courses. ©Copyright Network Development Group Module 14 Managing.
Privileges: who can control what
Permissions: who can control what Unix/IP Preparation Course July 19, 2009 Eugene, Oregon, USA
LINUX SYSTEM ADMINISTRATION
Linux 103 Training MOdule Basic System Mgmt.
Basic Commands ls cp ls –l (in detail format) echo ls –a
Chapter 11: Managing Users
Stubbs Lab Bioinformatics - 3 Review RNA-Seq Analysis Overview Alignment using Tophat2 Nov 22, 2016 Joe Troy.
Introduction to Computers
Linux Basic Commands Visit to more Learning Resources.
Chapter 2 User Management
UNIX Basics Internet Technology.
Privileges: who can control what
Linux Users and Groups 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
The Linux Command Line Chapter 9
System & Network Administration (MCSA & RHCSA)
Administering Users and Groups
Administering Users and Groups
Adding New Users.
Chapter 4: The Linux Filesystem
Presentation transcript:

Users/Groups/Permissions

Homework/Lab Issues Lab 1: 8, 11h Homework 2: 1

/etc/[passwd|shadow] format passwd-> sj86672:x:28856:1000:Stuart A Jaskowiak(Blue Ash):/home/sj86672:/bin/ksh shadow-> sj86672:$1$iOk/Ynmi$FIfiuUKYy9K3DuUCr1qmX0 :14122:0:99999:7::: x in column 2 means /etc/shadow has to exist UIDs (column 3) should be unique, but don't have to be /etc/shadow stores password specific info

Groups Linux uses a private group by default sj86672:x:1000: adm:x:4:sj86672 dialout:x:20:sj86672

Tools to maintain users/groups GUI - “System”, “Administration”, “User and Groups” Command Line useradd, usermod, userdel groupadd, groupmod, groupdel vipw, vigr (dangerous)

Permissions 3 categories: drwxrwxr-x User (people with same UID) Group (people with same GID) Other (people with neither) r = 4 w = 2 x = 1

Ways to Change Permissions chmod u+rwx,g-rwx,o-rwx my_file chmod 700 my_file

Misc Commands su – switch user passwd – change passwords With a – and without a - are not 100% identical passwd – change passwords chage – check on password aging

Useful Links http://tldp.org/LDP/lame/LAME/linux- admin-made-easy/shadow-file- formats.html

Permissions, Links and the File System

Permissions 3 categories: drwxrwxr-x User Group Other

Ways to Change Permissions Start perms: ---------- chmod u=rwx,g=,o= my_file chmod u+rwx my_file chmod 700 my_file End perms: -rwx------ r == 4 w == 2 x == 1

Symbolic Links Shortcut to another file (like windows shortcut) [15:14:43]sj86672@wiley ~/cit370 $ ls -l total 1 -rwx------ 1 sj86672 staff 0 Oct 5 15:09 my_file* lrwxrwxrwx 1 sj86672 staff 7 Oct 5 15:14 other_file -> my_file*

Sym link permissions Controlled by originating file not link Sym link perms: lrwxrwxrwx chmod actually changes permission on linked file!

Display filesystem info df – displays information about disk layout and usage [root@goofie ~]# df Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda6 2030736 645312 1280604 34% / /dev/sda5 11896932 288072 10994780 3% /var /dev/sda3 129225348 2942084 119613076 3% /opt /dev/sda1 77749 11236 62499 16% /boot tmpfs 1037032 0 1037032 0% /dev/shm

Umount error [15:18:48]root@wiley ~ # umount /var umount: /var busy Open file someplace in /var

du Show space used by individual files Default only shows directories du -a shows files

File Types Symbol Meaning - Regular File d Directory l Symbolic Link b Block Special File c Character Special File s Socket p Named Pipe

find Allows you to find a file in the file system structure find ~ -name “*txt” –ls find /etc –name “*cons*” -ls

find arguments mtime – last modified time +1 = more than one day ago -1 = less than one day ago size – size of file #[cwbkMG] type – type of file (see file types slide) ls – long listing, equivalent to ls -dils on each file