12/14/94 Service Mode Prompt in AIX 3.2.3e to 3.2.5 SPECIAL NOTICES Information in this document is correct to the best of our knowledge at the time of this writing. Please send feedback by fax to "AIXServ Information" at (512) 823-4009. Please use this information with care. IBM will not be responsible for damages of any kind resulting from its use. The use of this information is the sole responsibility of the customer and depends on the customer's ability to eval- uate and integrate this information into the customer's operational environment. +----------------------------------------------------------+ | | | NOTE: The information in this document has NOT been | | verified for AIX 4.1. | | | +----------------------------------------------------------+ ABOUT THIS DOCUMENT This document describes a workaround that makes it possible to get a command prompt in service mode or after booting from diagnostic diskettes. This document applies to AIX 3.2.3e to 3.2.5. OVERVIEW Starting with AIX 3.2.3e, AIX no longer allows a user to get a command prompt from either service mode or the diagnostic diskettes. This function is no longer allowed because it could possibly be a security hole. AIX DOES allow the user to get a command prompt after booting from BOSboot diskettes or a mksysb tape. (To do this, boot from the diskettes or tape, select choice number 4, and use getrootfs to start a maintenance shell.) WORKAROUND Perform the following steps (in Normal mode) to make it pos- sible to get a command prompt the next time you are in Service mode or have booted from diagnostic diskettes. This workaround will cause "pg" to set the SHELL environment variable. If the SHELL variable is set, pg will allow a shell escape. 1. Enter the following commands: cd /bin mv pg pg.orig Service Mode Prompt in AIX 3.2.3e to 3.2.5 1 12/14/94 2. Create a shell script called "pg" with the following contents: #!/bin/ksh export SHELL=/bin/ksh /bin/pg.orig $* NOTE: Be sure that the string "#!/bin/ksh" starts in the first column on the first line of the file con- taining the code. 3. Enter the following commands: chmod 555 /bin/pg chown bin /bin/pg chgrp bin /bin/pg Service Mode Prompt in AIX 3.2.3e to 3.2.5 2 12/14/94 READER'S COMMENTS Please fax this form to (512) 823-4009, attention "AIXServ Informa- tion". You may also e-mail comments to: elizabet@austin.ibm.com. These comments should include the same customer information requested below. Use this form to tell us what you think about this document. If you have found errors in it, or if you want to express your opinion about it (such as organization, subject matter, appearance) or make sug- gestions for improvement, this is the form to use. If you need technical assistance, contact your local branch office, point of sale, or 1-800-CALL-AIX (for information about support offer- ings). These services may be billable. Faxes on a variety of sub- jects may be ordered free of charge from 1-800-IBM-4FAX. Outside the U.S. call 415-855-4329 using a fax machine phone. When you send comments to IBM, you grant IBM a nonexclusive right to use or distribute your comments in any way it believes appropriate without incurring any obligation to you. NOTE: If you have a problem report or item number, supplying that number may help us determine why a procedure did or did not work in your specific situation. Problem Report or Item #: Branch Office or Customer #: Be sure to print your name and fax number below if you would like a reply: Name: Fax Number: ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ END OF DOCUMENT (maint.shell.32e.cmd, 4FAX# 3051) Service Mode Prompt in AIX 3.2.3e to 3.2.5 3