The UNIX File System

The UNIX File System - also here. Now it is stored in...

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
The UNIX File System
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
UNIX File System UNIX has a hierarchical File System Important directories / - Root Directory /etc OS Configuration files /etc/passwd – User information /etc/groups – Group information /etc/inetd.conf – Configuration of Internet Services (deamons) /etc/rc.*/ - OS initialization scripts for diffeerent services.
Background image of page 2
UNIX File System /dev – List of devices attached to the computer /usr – Libraries and tools /usr/bin – Application programs such as grep, ls et /usr/lib – Libraries used by the application programs /usr/include – Include files (.h) for the libraries /home – Home directories
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Users UNIX was designed as a multiuser system. The database of users is in /etc/passwd lore 2 % cat /etc/passwd | grep grr grr:x:759:759:Gustavo Rodriguez Rivera,,,:/homes/grr:/bin/tcsh Each line has the format: login:userid:groupid:Name,,,:homedir:shell Every user has a different “USER ID” that is a number that identifies the user uniquely in the system. The encrypted password used to be stored
Background image of page 4
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 6
Background image of page 7
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: also here. Now it is stored in /etc/shadow Users • Commands for users – adduser – Adds a new user – passwd – Change password. • There exist a special user called “root” with special privileges. • Only root can modify files anywhere in the system. • To login as root (superuser) use the command “su”. • Only root can add users or reset passwords. Groups • A “group” represents a group of users. • A user can belong to several groups. • The file /etc/group describes the different groups in the system. Yellow Pages • In some systems the password and group files is stored in a server called “Yellow Pages” that makes the management easier. • If your UNIX system uses yellow pages the group and database are in a server. Use “ypcat” ypcat group | grep cs240 lore 15 % ypcat group | grep cs240 cs240:*:15196:crisn,grr,rego,yau • Also the passwd file can be in Yellow Pages:...
View Full Document

This note was uploaded on 01/30/2012 for the course CS 252 taught by Professor Gustavorodriguez during the Fall '11 term at Purdue University.

Page1 / 7

The UNIX File System - also here. Now it is stored in...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online