HP-UX 11.xx Server Build Information

To see what's recently changed on this page - please look at the Changes page.

These (somewhat generic) instructions will help you build a fairly secure server. If you want to build a really secure server, please look up Kevin Steves "Building a Bastion Host Using HP-UX 11.00" - HP document: USECKBAN00000800.

Disclaimer:
Use at your own risk. If you see any problems with this document, please send an email explaining what is wrong to: dburton3@tampabay.rr.com.


Bold text = Main Headings.

Computer text (in RED color) = User input of some kind (manually entered text, commands run at the command line or an item needing a mouse click).

Italic text = Notes, special interest items or prompts.


Hardware/Software Assumptions
Initial setup
Web Console setup
O/S Install
Post O/S Installation Security Mirror the ROOT disk
Make an "Ignite" tape of your new server
Install or configure additional software

Hardware/Software Assumptions


Initial setup


Web Console setup

Web Console setup - internal

The first thing needed is to setup a LAN connection to the GSP. A monitor will need to be connected to the system in order to access the GSP. At this point you should be able to access the GSP from the monitor, web browser or telnet (remember that telnet is NOT a secure connection). I will assume that your still at the monitor and wish to add users (not root) with hardened passwords. Perform the following to add users:
  1. Access the GSP in order to add users (see above).
  2. Go to the "Command Menu": MP> cm
  3. Go to the "Configure Security Options and Access Control" menu: MP:CM> so
  4. Select "User parameters": Which do you wish to modify? ([1]/2) : 2
  5. Add a user: A to add, D to delete, Q to quite : a
  6. Enter the login ID: Enter Login : batman
  7. Enter the persons real name: Enter Name : Bruce Wayne
  8. Enter your company name: Enter Organization : Batcave
  9. Enter the level of access needed for this user: Enter Access Level (A/O/[S]) : a
  10. Give them single or multiple use: Enter Mode (S/[M]) : m
  11. Enable the account: Enter Status (D/[E]) : e
  12. No modem = No Dialback: Enable Dialback? (Y/[N]) : n
  13. Enter the password twice:
    Enter Password : MakE2%bR
    Re-Enter Password : MakE2%bR
  14. Save your changes/additions: Save changes to user number 1? (Y/[N]) : y

Create a certificate in order to make a secure connection from your web browser.

  1. Access the GSP in order to create a certificate (see above).
  2. Go to the "Command Menu": MP> cm
  3. Go to the "Generate ssl key pair and self signed certificate" and create your certificate: MP:CM> cg
    NOTE:
    When asked for a "Common Name", use the Web Consoles short name
    or it's fully qualified DNS name. Which ever one you plan to
    use in your web browser.
    Example:
    Use batcave-console or batcave-console.batcave.gotham.city.com
    

Connect to the internal Web Console:

  1. Point your web browser using Internet Explorer 6.0 or better, or Netscape 6.2 or better using the following secure web address: https://target_web_console
  2. Accept the certificate you created.
  3. Enter your login name at the "MP login:" prompt.
  4. Enter your password at the "MP password:" prompt.
  5. Enter "co"
  6. Enter "0" (zero).
  7. Press the "Enter" key.
  8. Enter "^Ecf" ("control E" then "cf").
  9. Press "Enter" again.
  10. Your now at the "Console login:" prompt.

Web Console setup - external

Configure and log into the servers Web Console using Internet Explorer 6.0 or better, or Netscape 6.2 or better. You may need to do the following in order to test/configure the Web Console after it's been powered up, connected to the intranet, and it's console cable has been connected to the console connection in the back of the target server being built:
  1. ping 192.0.0.192
  2. route add 192.0.0.192 10.10.10.100
  3. arp -s 192.0.0.192 <MAC address>
Once connection is made to the Web Console, Click the "OK" button in this first screen to continue the configuration.

The second screen will ask for the following....

   Name:         Doug Burton  (Your Name)
   Function:     Administrator(Your function)
   Information:  Some info    (Some info)
   Login:        blahblah     (Your Web Console login ID)
   Password:          MakE2%bR(Your hardened password)
   Re-enter Password: MakE2%bR(Your hardened password again)
The third screen will ask for the following....
   Secure Console Name: batcave-console(Name of Web Console)
   IP Address:          10.10.10.2     (The Web Console IP address)
   IP Subnet Mask:      255.255.255.0  (The subnet mask)
   IP Gateway:          10.10.10.1     (The gateway IP)
   System Name:         batcave        (Name of server your connected to)
   Terminal Type:       vt100          (The type of terminal you like to use)
Click "OK"

Log in using the new IP or Web Console name and config additional users.


O/S Install

Quick note... I assume your going to do kernel changes and patch installs. When the server reboots it checks hardware and can take a long time to get to the login prompt. To stop the hardware check for the NEXT system boot ONLY, type setboot -T all=off. To change hardware checking permanently please see the man page for "setboot".

Post O/S Installation

Configure umask

Modify $HOME/.profile, $HOME/.kshrc and $HOME/.exrc files

Make roots home and tmp directories:
mkdir /root ; chmod 700 /root
mkdir /root/tmp

Don't forget to change root's $HOME in the /etc/passwd file. Now log off and then back in just to make sure everything is set correctly. Don't forget that if you make root's home a mounted file system, you won't have easy access to it in single user mode. Also, copy or move the "dot" files (.profile, .kshrc, etc), into roots new home.

Add the /cdrom directory

   mkdir /cdrom

Make a link from /dev/dsk/cdrom to the real cdrom device

Modify the /etc/rc.config.d/clean_tmps file

Add drivers to kernel using SAM

Make kernel parameter changes using SAM

NOTE:
The old selections for DataBase server kernel changes are not
available in 11i. To have these again, download the following
files and place them in the /usr/sam/lib/kc/tuned directory.
Then start up SAM and select the one you need.

General OLTP/Database Client System:      oltp_cli.tun
General OLTP/Database Monolithic System:  oltp_sa.tun
General OLTP/Database Server System:      oltp_ser.tun

Something I've put together and liked to use: DataBaseServer.tun

Configure DNS

The following assumes that you wish to resolve name-to-IP or IP-to-name using DNS first, then NIS, then your /etc/hosts file. Simply switch or remove the entries as needed.

Install HP applications, diagnostics and patches

Add Cron entries and associated files

# Find core files and remove them.
0 0 * * * find / -type f -name core -exec rm {} \;

# Gather system data once a week (on Monday @ 12:00am).
0  0  *  *  1  /opt/cfg2html/cfg2html_hpux.sh &

NOTE:
You will need the "cfg2html" program to run the cron job above.
Also, click the links below to get the scripts.

# Check disk space every 15 min.
0,15,30,45 * * * * /usr/local/bin/chk_dsk_space  > /dev/null 2>&1

# Check system procs every 15 min.
0,15,30,45 * * * * /usr/local/bin/chk_procs > /dev/null 2>&1

# Lets clean up some stuff older than 14 days shall we?
0  0 * * * /usr/local/bin/cleanup

# Check system load average every 15 min.
0,15,30,45 * * * * /usr/local/bin/load_average  > /dev/null 2>&1

# Collect SAR data every 5 minutes 24x7
0  0  *  *  *  /usr/local/bin/sar_collect 300 288

# Check bad su attempts every hour.
59 0-23 * * * /usr/local/bin/chk_su > /dev/null 2>&1

# Check logins every night at 11:50pm.
50 23 * * * /usr/local/bin/chk_logins

# Run Security Patch Check and email the goodies to root.
0 1 * * 1 /usr/local/bin/security_patch_chk > /dev/null 2>&1

Install the latest JetAdmin software

Disable X client (Xterminals, Exceed, Reflections X) access

Configure Crash

If the system crashes you may want to have the data dumped somewhere. How about the /var/adm/crash directory you configured when the system was built?

Configure sendmail

Configure ISEE

Configure Syslog logging to another server

Configure Sar Reporting

Configure Perl

Configure NTP (Time)

Add OmniBack, Data Protector or other Backup Software

Add Cfg2html


Security

Fix the copyright file

Configure SSH

Remove unused software

Restrict root login

Add the - APPROVED by corporate attorneys or upper management - /etc/issue disclaimer

Configure CDE to use the /etc/issue file

Configure FTP

Modify the /etc/inetd.conf file

Change "registrar" logging

Configure additional inetd logging

Add "nosuid" info in /etc/fstab lines

Make this a "trusted" (C2 compliant) server or use the /etc/shadow file

Install IDS9000

Install TCPwrappers

Make NDD changes

Configure Security Patch Check

Change the snmp.conf file

Tighten up file permissions and ownership


Mirror the ROOT disk

Reference HP Doc ID: LVMKBRC00005103


Make an "Ignite" tape of your new server


Install or configure additional software


I developed this site so please send comments to dburton3@tampabay.rr.com. Thanks!

Home Page

Hit Counter
Monitor page for changes
it's private by ChangeDetection


Ok.. so I put this waaay down at the bottom of this web page. I don't expect anyone to actually toss a buck or two my way as a thank you for all the work I've done on this site (Hmmm... feel guilty yet?), but it sure would be nice.

Please donate!

This donation link uses a secure PayPal connection.