ORAFACT The Linux File System. ORAFACT Filesystem Support Support for dozens of filesystem types including: Minix, ext2, MS-DOS, UMSDOS, VFAT, NTFS, NFS,

Slides:



Advertisements
Similar presentations
POS/420 Philip Robbins – March 19, 2013 (Week 2) University of Phoenix Mililani Campus Introduction to Unix.
Advertisements

A Guide to Unix Using Linux Fourth Edition
5 Basic utilities When a user logs in to the Linux operating system the directory that they will start in is their home directory. Most users will have.
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.
Introduction to Unix (CA263) File System
Exploring the UNIX File System and File Security
GNU/Linux Filesystem 1 st AUT GNU/Linux Festival Computer Engineering & IT Department Bahador Bakhshi.
Lesson 22 – Introduction to Linux Systems Administration.
Linux+ Guide to Linux Certification, Second Edition
Linux Linux File System.
The UNIX File System.
Guide To UNIX Using Linux Third Edition
Linux File Security. What is Permission ? Specifies what right are granting to users to access the resources available in the computer. So that important.
1. This presentation covers :  User Interface Administration  Files System and Services Management 2.
File System and Directory Structure in Linux. What is File System In a computer, a file system is the way in which files are named and where they are.
SUSE Linux Enterprise Server Administration (Course 3037)
Guide To UNIX Using Linux Fourth Edition
LINUX FILE SYSTEMS ADMINISTRATION TOPIC 4.0. LINUX DIRECTORY STRUCTURE DIRECTORY STRUCTURE ABSOLUTE PATHNAME RELATIVE PATHNAME.
Filesystem Hierarchy Standard (FHS) –Standard of outlining the location of set files and directories on a Linux system –Gives Linux software developers.
The file structure and related utilities CS240 Computer Science II.
Manage Directories and Files in Linux
Linux Filesystem Last Update Copyright Kenneth M. Chipps Ph.D. 1.
File Permissions. What are the three categories of users that apply to file permissions? Owner (or user) Group All others (public, world, others)
Linux+ Guide to Linux Certification, Second Edition
The UNIX File System. The UNIX File A file is a container for storing information and data. Filename limited to 255 characters. Can’t contain / or NULL.
Module 4 - File Security. Security Overview File Ownership Access to Files and Dircetories Changing File and Directory Ownership Changing File and Directory.
Chapter Two Exploring the UNIX File System and File Security.
INTRODUCTION TO LINUX Jacob Chan. GNU/Linux Consists of Linux kernel, GNU utilities, and open source and commercial applications Works like Unix –Multi-user.
USING YOUR INSTALLED LINUX SYSTEM.  Common Linux Tasks  Installing Custom Packages  Common GUI Applications  Command Line Shell  Directory Structure/Navigation.
Chapter 5 File Management File System Implementation.
Linux file system "On a UNIX system, everything is a file; if something is not a file, it is a process." Sorts of files (on a Linux system) Directories:
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.
Creating and Managing File Systems. Module 5 – Creating and Managing File Systems ♦ Overview This module deals with the structure of the file system,
E X C E E D I N G E X P E C T A T I O N S Basic LINUX Linux System Administration Dr. Hoganson Kennesaw State University Operating Systems Directory structure:
Linux+ Guide to Linux Certification, Third Edition
Linux+ Guide to Linux Certification, Third Edition
Workbook 4 User & Group Permissions RH030 Linux Computing Essentials.
1 © 2001 John Urrutia. All rights reserved. Chapter 4 The LINUX Filesystem.
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.
PTA Linux Series Copyright Professional Training Academy, CSIS, University of Limerick, 2006 © Workshop V Files and the File System Part B – File System.
Slide: 1 UNIX FILE SYSTEM By:Qing Yang ID: Operating System Research Topic December, 2000.
Linux Filesystem WeeSan Lee. Roadmap Disk Partitions The Filesystem Filesystem Mouting & Umounting File Tree File Type File Permission.
Chapter 10: File-System Interface Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Jan 1, 2005 File-System Interface.
The Unix File system (UFS) Presented by: Gurpreet Singh Assistant Professor Department of School of Computing and Engineering Galgotias University.
CS 245 – Part 1 Using Operating Systems and Networks for Programmers Jiang Guo Dept. of Computer Science California State University Los Angeles.
UNIX File System By Vishal Desai. Introduction Basic purpose of file system: Represent and organize the system resources. But UNIX File System also maps.
CIT 383: Administrative ScriptingSlide #1 CIT 383: Administrative Scripting Directories.
SUSE Linux Enterprise Desktop Administration Chapter 7 Manage Directories and Files.
SUSE Linux Enterprise Desktop Administration Chapter 9 Manage Users, Groups, and Permissions.
UNIX filesystem CS 2204 Class meeting 2 *Notes by Doug Bowman and other members of the CS faculty at Virginia Tech. Copyright
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.
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.
Operating System & Administration UNIT-III Introduction to File System.
1 The File System. 2 Linux File System Linux supports 15 file systems –ext, ext2, xia, minix, umsdos, msdos, vfat, proc, smb, ncp, iso9660, sysv, hpfs,
LINUX Zhengli Zhu, School of Life Sciences. Outline 1. ABC of Linux 2. Basic orers of Linux 3. Bash Programming.
Linux Administration – Finding You Way on the Command Line The Linux File Directory or Tree.
BILKENT UNIVERSITY DEPARTMENT OF COMPUTER TECHNOLOGY AND INFORMATION SYSTEMS CTIS156 INFORMATION TECHNOLOGIES II FILES AND FILE SYSTEM STRUCTURE.
Linux Filesystem Management
Linux 101 Training Module Linux Basics.
UBUNTU INSTALLATION
Linux file system "On a UNIX system, everything is a file;
C151 Multi-User Operating Systems
9 Linux on the Desktop.
Exploring the UNIX File System and File Security
Software I: Utilities and Internals
Chapter 4: The Linux Filesystem
January 26th, 2004 Class Meeting 2
Configuring Disk Quotas
Presentation transcript:

ORAFACT The Linux File System

ORAFACT Filesystem Support Support for dozens of filesystem types including: Minix, ext2, MS-DOS, UMSDOS, VFAT, NTFS, NFS, ISO9660, HPFS, SYSV, SMB, AFFS, BeFS, BFS, EFS, NWFS, QNX, RFS, UDF, UFS Support for advanced logging / journaling filesystems: reiserfs, ext3, JFS, XFS, Reiser4 Current default standard: ext3 NTFS  The Windows NT filesystem. Designed to be more secure and robust than MS-DOS / VFAT. Linux can safely access NTFS volumes in read-only mode, and has partial NTFS write support.

ORAFACT LINUX Filesystem Features Standard Unix filesystem characteristics singly rooted cAsE SensiTiviTY long file names supports links timestamps various file operations ( ctime, atime, mtime ) ext2 or ext3 specific characteristics: attributes (ASacdisu)

ORAFACT Filesystem Hierarchy Standard Filesystem standard - FHS Guiding principles for each area of filesystem Predictable location of files and directories Provides uniformity across multiple Linux distributions The Linux Standards Base Aims to allow Linux binaries to run unmodified on multiple Linux distributions Specifies system and library interfaces and environment Incorporates the FHS /  The root directory /bin/  Essential command binaries /boot/  Static files of the boot loader, kernel, and initial RAM disk /dev/  Device files /etc/  Host-specific system configuration /home/  User home directories /lib/  Essential shared libraries and kernel modules /media/  Mount point for removable media (LSB addition)

ORAFACT /mnt/  Mount point for mounting a filesystem temporarily /opt/  Add-on application software packages /root/  Home directory for the root user /sbin/  Essential system binaries /srv/  Data files for system services (LSB addition) /tmp/  Temporary files /usr/  Second hierarchy. Non-essential read-only data (see /usr/ breakout for details) /var/  Variable data files. Includes spool directories and files, administrative and logging data, and transient and temporary files (see /var breakout for details)

ORAFACT Navigating the Filesystem Changing and displaying directories cd, pwd Absolute vs. relative addressing Special cases cd (without parameters) cd ~username cd ~ cd -. and..

ORAFACT Displaying Directory Contents ls List directory contents -a seeing hidden files -l long listings -d show directories not contents -h human readable file sizes -R recursively list subdirectories -S sort file list by size

ORAFACT Determining Disk Usage du Summarize disk usage for directories -h human readable sizes -s summarize, display total only for each argument -S do not include size of subdirectories df Report filesystem disk space usage -h human readable output -i list inode information instead of block usage -T include filesystem type

ORAFACT Disk Usage with Quotas quota list user quotas for logged on user quota -g group - List group quotas quota -u user - List quotas of specified user only available to the superuser Returns quota information for filesystems listed in the /etc/fstab queries the aquota.user and aquota.group databases on local filesystems queries the rquotad daemon for NFS-mounted filesystem

ORAFACT File Ownership Each file is owned by a specific UID and GID chown - Change the user (UID) ownership Only root can change ownership to another user Can also be used to change group at the same time chgrp - Modify just the group (GID) ownership chown user:group filename

ORAFACT Default Group Ownership Newly created files will usually be given GID ownership based on the current active group of the person who creates the file newgrp newgroup - log in to a new group newly created files will be owned by the new group users can only change to their own groups root user can change to any group exit to switch back

ORAFACT File and Directory Permissions ls -l List file permissions first character represents type of file (d,-,l,b,c,s,p) Then permission sets for: user -UID that owns the file (sometimes called owner) group -GID that owns the file everyone else (sometimes called other) Permissions can be represented in two ways symbolic representation (ex. rwxr-xr-x) numeric representation (ex. 0755) (r = 4; w = 2; x = 1 )

ORAFACT File Creation Permissions Default permissions for newly created filesystem objects files: 666 directories: 777 umask defines what permissions to withhold from the default permissions used to display or change your umask usually set in the user or system shell dot files used to provide the user private group (UPG) scheme Example: 666 Default File permission Umask value Initial file permission (rw-rw-r--) The umask command is the utility that is provided to view or change the current umask

ORAFACT chmod Modify file permissions -R recursively modify permissions supports both numeric and symbolic notation special permissions set UID (SUID) set GID (SGID)

ORAFACT User Private Group Scheme UPG provides a convenient way to share files when working in a group project directory Still does not compromise security of files outside of the group shared project directory UPG scheme implemented by: 1. placing each user in their own private group 2. setting the umask to setting the group ownership of the project directory to a commonly shared GID 4. setting the project directory SGID