Unix Administration II Self-Study Guide & Student Manual 2015-16 Edition Unit Table of Contents Introduction Unit One Networking Essentials 1.1......................................................................................................... MAC Addresses 1.2............................................................................................... The ifconfig Command 1.3........................................................................................................ Network Packets 1.4...........................................................................Network Configuration at Boot Time 1.5............................................................................ Reconfiguring Network Information 1.6................................................................................................. Additional Resources Unit Two The Client-Server model 2.1........................................................................................................ Client Processes 2.2.......................................................................................................Server Processes 2.3......................................................................................................The inetd Daemon 2.4............................................................................................................ Network Ports 2.5.............................................................................................................RPC Services 2.6................................................................................................. Additional Resources Unit Three Using the Solaris Management Console 3.1.................................................................. The Solaris Management Console Server 3.2.....................................................................................................The Toolbox Editor 3.3................................................................................................................. Add a URL 3.4..................................................................................................................Add a Tool 3.5........................................................................................................ Verify Toolboxes 3.6................................................................................................. Additional Resources Unit Four Swap Space Administration 4.1 .......................................................................................................... Virtual Memory 4.2............................................................................................................... Swap Space 4.3................................................................................................. Viewing Swap Space 4.4.................................................................................. Adding a Temporary Swap File 4.5............................................................................. Removing a Temporary Swap File 4.6.................................................................................. Adding a Permanent Swap File 4.7............................................................................................. Adding a Swap Partition 4.8................................................................................................. Additional Resources Unit Five Administering dump files 5.1............................................................................................................. Crash Dumps 5.2................................................................................................... Dump Configuration 5.3...................................................................................................................Core Files 5.4.............................................................................................. Core File Configuration 5.5................................................................................................. Additional Resources Unit Six NFS 6.1............................................................................................................. What is NFS? 6.2.............................................................................................................. NFS Benefits 6.3............................................................................................................NFS Daemons 6.4........................................................................................... Starting Server Daemons 6.5............................................................................................ Setting up a NFS Server 6.6.............................................................................................. Setting up a NFS Client 6.7..................................................................................................Common NFS Errors 6.8.............................................................................................................. NFS Logging 6.9.............................................Using Solaris Management Console to Administer NFS 6.10............................................................................................... Additional Resources Unit Seven AutoFS 7.1......................................................................................................AutoFS Essentials 7.2........................................................................................................ Automount Maps 7.3......................................................................................................... The Master Map 7.4............................................................................................................. Indirect Maps 7.5................................................................................................................ Direct Maps 7.6............................................................................................................. Special Maps 7.7.......................................................................... Controlling the automountd Daemon 7.8..........................................................................................The automount Command 7.9................................................................................................. Additional Resources Unit Eight RAID 8.1............................................................................................................... RAID Basics 8.2...................................................................................... Hardware & Software RAIDs 8.3............................................................................................................... RAID Levels 8.4...................................................................................................................RAID Tips 8.5................................................................................................. Additional Resources Unit Nine Volume Management 9.1 ........................................................................................................Logical Volumes 9.2................................................................................................... The State Database 9.3......................................................................................... Creating a State Database 9.4.............................................................................................Creating a Level 0 RAID 9.5.............................................................................................Creating a Level 1 RAID 9.6............................................................................Viewing Logical Device Information 9.7.................................................................... Making the root Partition a RAID Device 9.8................................................................................................. Additional Resources Unit Ten Access Control Lists 10.1 ...............................................................................Access Control Lists Essentials 10.2.......................................................................................................Displaying ACLs 10.3 .......................................................................................................... Setting ACL’s 10.4........................................................................................................ Modifying ACLs 10.5..................................................................................................... The mask Setting 10.6...................................................................................................... Removing ACL's 10.7.................................................................... Copy an ACL from One File to Another 10.8............................................................................................................ Default ACLs 10.9......................................................................................ACLs and the File Manager 10.10............................................................................................. Additional Resources Unit Eleven RBAC 11.1......................................................................................................RBAC Essentials 11.2............................................................................................................ Profile Shells 11.3..................................................................................................... RBAC Databases 11.4.................................................................................. Using SMC to Manage RBAC 11.5........................................................... Administrating RBAC via the Command Line 11.6............................................................................................... Additional Resources Unit Twelve Smartcard Authentication 12.1............................................................................................... Smartcard Essentials 12.2.............................................................................................................. OCF Server 12.3..................................................................................................SmartCard Console 12.4.........................................................................................The smartcard Command 12.5............................................................................................... Additional Resources Unit Thirteen System Logs 13.1............................................................................................. System Log Essentials 13.2...........................................................................................The /etc/syslog.conf File 13.3......................................................................................... The m4 Macro Processor 13.4.............................................................................. The Default /etc/syslog.conf File 13.5.......................................................................... Administrating /etc/syslog.conf File 13.6.................................................................................... Monitoring System Log Files 13.7.............................................................................................. The logger Command 13.8...................................................................................... Using the SMC Log Viewer 13.9.................................................................................. The syslogd Daemon Options 13.10............................................................................................. Additional Resources Unit Fourteen Name Services Essentials 14.1...................................................................................................... Naming Services 14.2.........................................................................................................The /etc Files 14.3..........................................................................................................DNS Overview 14.4........................................................................................................... NIS Overview 14.5......................................................................................................... NIS+ Overview 14.6........................................................................................................LDAP Overview 14.7.............................................................................The /etc/nsswitch.conf File 14.8.......................................................................... The Name Service Cache Daemon 14.9............................................................................................... The getent command 14.10............................................................................................. Additional Resources Unit Fifteen DNS and LDAP Client Configuration 15.1............................................................ Introduction to Naming Service Client Setup 15.2........................................................................................... Setting up a DNS Client 15.3..........................................................................................Setting up a LDAP Client 15.4............................................................................................... Additional Resources Unit Sixteen NIS Server 16.1........................................................................................................ Introducing NIS 16.2...........................................................................................................NIS Daemons 16.3...........................................................................Configuring the NIS Master Server 16.4........................................................................................... Configuring a NIS Client 16.5................................................................................Configuring a NIS Slave Server 16.6............................................................................................ Authorizing NIS Clients 16.7............................................................................................... Additional Resources Unit Seventeen Shell Programming Basics 17.1............................................................................................ Commenting Programs 17.2........................................................................................................... Magic Cookie 17.3.................................................................................................. Finding Commands 17.4.................................................................................................The echo Command 17.5........................................................................................................ Using Variables 17.6 ........................................................................................................Local Variables 17.7 ............................................................................................ Environment Variables 17.8 ................................................................................ Referencing Variable's Values 17.9 ................................................................................ Reading Values into Variables 17.10........................................................................................................Default Values 17.11................................................................................................... Special Variables 17.12 ....................................................................................................The if Statement 17.13.............................................................................................. The while Statement 17.14................................................................................................ The until Statement 17.15..............................................................................................The break Statement 17.16......................................................................................... The continue Statement 17.17............................................................................................... The case Statement 17.18...........................................................................................................The for Loop 17.19............................................................................................. Numeric Comparison 17.20................................................................................................String Comparisons 17.21.............................................................................................. File Status Checking 17.22.................................................................................Outcome of UNIX commands 17.23............................................................................................. Complex conditionals 17.24............................................................................................. Additional Resources