Introduction to Linux Installing Linux User accounts and management Linux’s file system.

Slides:



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

Linux Users and Groups Management
Introduction to Unix (CA263) File System
Exploring the UNIX File System and File Security
Chapter 2 Accessing Your System and the Common Desktop Environment.
1 Web Server Administration Chapter 3 Installing the Server.
GNU/Linux Filesystem 1 st AUT GNU/Linux Festival Computer Engineering & IT Department Bahador Bakhshi.
The UNIX File System.
Guide To UNIX Using Linux Third Edition
Guide to Operating System Security Chapter 5 File, Directory, and Shared Resource Security.
Guide To UNIX Using Linux Fourth Edition
O.S security Ge Zhang Karlstad University. Outline Why O.S. security is important? Security schemes in Unix/Linux system Security schemes in windows 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.
IOS110 Introduction to Operating Systems using Windows Session 8 1.
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.
Unix System Administration Chapter 6 Adding New Users.
UNIX ™ /Linux Overview Unix/IP Preparation Course May 23, 2010 Kigali, Rwanda.
Chapter Two Exploring the UNIX File System and File Security.
File System Management File system management encompasses the provision of a way to store your data in a computer, as well as a way for you to find and.
1 Interface Two most common types of interfaces –SCSI: Small Computer Systems Interface (servers and high-performance desktops) –IDE/ATA: Integrated Drive.
UNIVERSITY OF COLOMBO SCHOOL OF COMPUTING IT5501 Systems & Network Administration DEGREE OF BACHELOR OF INFORMATION TECHNOLOGY.
Linux Administration. Pre-Install Different distributions –Redhat, Caldera, mandrake, SuSE, FreeBSD Redhat Server Install –Check HCL –Significant issues.
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.
Guide to MCSE , Second Edition, Enhanced 1 File Storage Basics Basic storage Centers on partitioning physical disk Dynamic storage New method supported.
UNIX (Linux) Introduction Module-1. OS Kernel In computing, the kernel is the central component of OS. It is a bridge between applications and the actual.
Lecture 5: User Accounts & Directory Service Instructor: Dr. Najla Al-Nabhan
Manage Directories and Files in Linux. 2 Objectives Understand the Filesystem Hierarchy Standard (FHS) Identify File Types in the Linux System Change.
Chapter Two Exploring the UNIX File System and File Security.
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.
Review Please hand in any homework and practicals Vim Scripting Inter-device communication.
CSCI 330 UNIX and Network Programming Unit XX: Linux Administration.
UNIX File System By Vishal Desai. Introduction Basic purpose of file system: Represent and organize the system resources. But UNIX File System also maps.
Lecture – Users and groups
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.
Lecture 02 File and File system. Topics Describe the layout of a Linux file system Display and set paths Describe the most important files, including.
The Kernel At a high level, the kernel in an operating system serves as the bridge between applications and the actual data processing of the hardware.
CEG 2400 FALL 2012 Linux/UNIX Network Operating Systems.
Chapter 9 Lecture 4. NetWare Novell’s network operating system Biggest competitor – Microsoft Windows.
ORAFACT The Linux File System. ORAFACT Filesystem Support Support for dozens of filesystem types including: Minix, ext2, MS-DOS, UMSDOS, VFAT, NTFS, NFS,
1 C1-UD 6-2 INSTALLING LINUX Academic Year DAI. Credit 1 (Single and Multiuser Operating Systems) Ferran Chic PELE-08/09 (Pla Experimental Llengües.
2Operating Systems  Program that runs on a computer  Manages hardware resources  Allows for execution of programs  Acts as an intermediary between.
 Each interface card that was detected correctly will be listed under the Network Devices section. Ethernet devices in Linux are named eth0, eth1, eth2,
Installing Linux: Partitioning and File System Considerations Kevin O'Brien Washtenaw Linux Users Group
UNIX Filesystem and Hierarchy AfNOG 2008 Workshop May Rabat, Morocco.
Course : PGClass : MCA Subject: Operating SystemSub.Code : 3CT11 Staff Name : S.SomasundaramYear & Sem : II nd & III rd.
Module X (Unix/Linux Password Security)
File System Implementation
UBUNTU INSTALLATION
Installing OS.
Chapter 6 File Systems CSNB113 SYSTEM ADMINISTRATION
Basic Commands ls cp ls –l (in detail format) echo ls –a
UNIX Filesystem and Hierarchy
Chapter 2 User Management
Linux Users and Groups Management
Adding New Users, Storage, File System
Unix Access Control Basic CE 2
Exploring the UNIX File System and File Security
Operating Systems Lecture 4.
COP 4343 Unix System Administration
Figure 6-9: Managing Users and Groups
Module 13 System and User Security
Rootly Powers Chapter 3.
Adding New Users.
Presentation transcript:

Introduction to Linux Installing Linux User accounts and management Linux’s file system

Installing Linux Follow along as we install SuSE Linux 9.1 professional

Linux Accounts There is only 1 administrative account in Unix. This super-user account should not be used on a regular basis as it has unlimited access to the operating system. Everyone else is consider a regular user account.

Each user account has a username, which is associated with a user id. Each username and user id must be unique. The OS, however, uses only the user id to identify the user once the user has logged in. Therefore, you can change your username as much as you want without much trouble. (Please be aware that some other programs might be dependant on the username.)

Groups A user may belong to one or more groups. A group is used to further divide user accounts. (i.e. In university, there might be a math group, a scientist group, etc.) With groups, you can grant and remove access to certain information to certain groups in the OS.

/etc/passwd This file “/etc/passwd” stores information of all non- virtual user accounts that have direct access to the OS. Many programs uses this file to map user accounts to user ids, therefore, this file is usually readable by anyone. In the old days, the password for the account is also stored in there. If someone gets a hold of that file, he can find out a user’s password. Modern day unix systems stores the password in a separate file that’s accessible only by the root user.

In Linux and Solaris, there are two user information files: /etc/passwd /etc/shadow In BSD Unix (FreeBSD, OpenBSD & NetBSD): /etc/passwd /etc/master.passwd The later file is the one that contains the encrypted password of all users.

Anatomy of /etc/passwd An entry in /etc/passwd normally contains the following fields: username:password placeholder:userid:groupid:gecos info:home directory:preferred shell The /etc/shadow file normally contains the following fields: username:hashed password:last change:expire info The /etc/master.passwd file for BSD Unix has the following fields: username:hashed password:userid:groupid:login class:last change:expire info:gecos info:home dir:shell

/etc/group This file stores information about all groups. Contains the following fields: groupname:password:users belong to the group The group file’s password field is normally not used as this file is accessible by everyone.

BSD accounts In BSD Unix, there are two additional versions of the password files. /etc/pwd.db and /etc/spwd.db They are the hashed versions of /etc/passwd and /etc/master.passwd to allow for a faster username to userid mapping. In BSD, a user is assigned to a user class, which allows more control of the user. (i.e. how long the user can login, how much resources the user can use, etc.)

Becoming root As said earlier, you should not be using the root account on a regular basis, so how can you become root without logging off and logging back in as root? (like in windows) There are two commands to allow you to do things as root: su and sudo To use it, type “su username” to becoming the other user. su will then ask for the new user’s password. In BSD, you have to be in the wheel group to become root. The sudo command allows certain users to do certain tasks. (i.e. Allow user foo to install programs.) If foo is allow to use the program bar, then foo types “sudo bar” to use the program bar. sudo will then ask for your password, not the root password.

Unix’s Filesystem There are many file systems for Linux: Extend 2 Extend 3 Reiser Extend 2 is the traditional linux file system, the newest one is the reiser file system. Reiser fs provides security features like encryption. BSD and Solaris uses the Unix File System, which is also named the Fast File System. UFS is the original unix file system developed by BSD of course. Modern UFS also supports encryption.

In addition, there is a Network File System for network access. NFS is a virtual file system that works with the native file system.

All unix variants should be able to write to any of the file systems each variant uses. They can also write to the old windows DOS FAT and FAT32 file systems. For NTFS, windows’ latest fs, all unix variants can read from NTFS. There are experimental drivers out there that allows writing to NTFS.

File system hierarchy The unix has a tree structure to organize its files. The top level is the “/” directory. Under this directory, you’ll often see: /etc /usr /bin /sbin /home /var /tmp

/etc Stores system configuration files, password information /usr Stores user install programs and their configuration files /bin Base programs that are necessary for unix to boot up. /sbin Like /bin, but programs that only root are supposed to have access to. /home Stores all user accounts /var Stores variable data, such as user , a database. /tmp Stores temporary files.

Normal setup Normally, the /usr, /var, /tmp and /home would be a separate partition so that quotas might be enforced. For a home user setup, you may have /home in a separated partition and everything else in 1 partition.

Swap file The swap file is virtual memory from the hard drive. Windows creates this virtual memory automatically and can be adjusted through the system settings. On unix, you have to create 1 or more swap file or unix will not function.