Download Cygwin User's Guide

Transcript
Table of Contents
1. Cygwin Overview...................................................................................................................................1
1.1. What is it? ...................................................................................................................................1
1.2. Quick Start Guide for those more experienced with Windows...................................................1
1.3. Quick Start Guide for those more experienced with UNIX........................................................2
1.4. Are the Cygwin tools free software?...........................................................................................2
1.5. A brief history of the Cygwin project .........................................................................................3
1.6. Highlights of Cygwin Functionality ...........................................................................................3
1.6.1. Introduction ....................................................................................................................3
1.6.2. Supporting both Windows NT and 9x ............................................................................4
1.6.3. Permissions and Security................................................................................................4
1.6.4. File Access......................................................................................................................5
1.6.5. Text Mode vs. Binary Mode ...........................................................................................6
1.6.6. ANSI C Library ..............................................................................................................6
1.6.7. Process Creation .............................................................................................................7
1.6.8. Signals ............................................................................................................................7
1.6.9. Sockets............................................................................................................................8
1.6.10. Select ............................................................................................................................8
2. Setting Up Cygwin ...............................................................................................................................10
2.1. Internet Setup ............................................................................................................................10
2.1.1. Download Source .........................................................................................................10
2.1.2. Selecting an Install Directory .......................................................................................11
2.1.3. Local Package Directory ..............................................................................................11
2.1.4. Connection Method ......................................................................................................11
2.1.5. Choosing Mirrors..........................................................................................................11
2.1.6. Choosing Packages .......................................................................................................12
2.1.7. Download and Installation Progress .............................................................................12
2.1.8. Icons .............................................................................................................................13
2.1.9. Post-Install Scripts........................................................................................................13
2.1.10. Troubleshooting..........................................................................................................13
2.2. Environment Variables ..............................................................................................................13
2.3. Changing Cygwin’s Maximum Memory ..................................................................................14
2.4. NT security and usage of ntsec ...............................................................................................15
2.4.1. NT security ...................................................................................................................16
2.4.2. Process privileges .........................................................................................................18
2.4.3. File permissions............................................................................................................18
2.4.4. NT SIDs in Cygwin ......................................................................................................20
2.4.5. The mapping leak .........................................................................................................22
2.4.6. The ACL API................................................................................................................24
2.4.7. New setuid concept.......................................................................................................24
2.4.8. Switching User Context................................................................................................27
2.4.9. Special values of user and group ids ............................................................................27
2.5. Customizing bash ......................................................................................................................28
iii