unix refresher

7
Unix Refresher This presentation is an amalgam of presentations by Mark Michael, Randy Marchany and Ed Skoudis. I have edited and added material. Dr. Stephen C. Hayne

Upload: baxter-haynes

Post on 30-Dec-2015

60 views

Category:

Documents


2 download

DESCRIPTION

Unix Refresher. This presentation is an amalgam of presentations by Mark Michael, Randy Marchany and Ed Skoudis. I have edited and added material. Dr. Stephen C. Hayne. Linus Torvalds. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Unix Refresher

Unix Refresher

This presentation is an amalgam of presentations by Mark Michael, Randy Marchany and Ed Skoudis.

I have edited and added material.

Dr. Stephen C. Hayne

Page 2: Unix Refresher

Linus Torvalds

Was the chief architect behind the Linux kernel. Most of the work was done while he was still an undergraduate. He completed a master’s degree from

the University of Helsinki in Computer Science and now lives and works in the United States.

Page 3: Unix Refresher

/etc/passwd, /etc/shadow

/etc/passwd is the master password file for the system.

Login name – the account name Encrypted password field – one-way

encryption of the account password UID – unique numeric identifier for the

account. This is what Unix uses.

Page 4: Unix Refresher

/etc/passwd, /etc/shadow

GID – group id number that identifies the group

GECOS info – commonly used to list the name of the account owner

Home directory – user home directory Login Shell – default user shell

Page 5: Unix Refresher

/etc/passwd, /etc/shadow

/etc/passwd is world readable. This is what lets CRACK run on it. All you need is access to the system (login, WWW, FTP) and the ability to get a copy of the file.

/etc/shadow is the defense against the CRACK attack

Page 6: Unix Refresher

/etc/passwd, /etc/shadow

/etc/shadow contains the encrypted password field and is readable by root only.

An “x” is placed as a marker in the equivalent field in /etc/passwd.

If you can read /etc/shadow, you have root and no need to crack passwords .

Page 7: Unix Refresher

System Logs

/etc/syslog.conf contains the locations of the system logs. Can be remote or local.

Syslogd is the syslog daemon. /var/log/syslog, /var/log/secure,

/var/adm/messages, /var/adm/syslog.dated/current/kern.log

/etc/utmp, /etc/wtmp, /etc/lastlog