HP-UX Secure Resource Partitions (SRP) A.02.01 Administrator's Guide

31
Press return or enter "yes" to make the selected modifications with these
values. Do you wish to continue? [yes]
replace prm rules succeeded
Step 10: Stopping the SRP Compartment
To stop an SRP compartment, enter the following command:
srp -stop compartment_name
stops the SRP compartment by executing the shutdown scripts in the
/var/hpsrp/compartment_name/sbin/init.d subdirectories and setting the
SRP state to “stopped”.# /opt/hpsrp/bin/srp -stop mySRP
***********************************************
Compartment mySRP shutdown in progress
Mon Dec 7 13:58:40 IST 2009
***********************************************
Stopping HP-UX Secure Shell................................. [ OK ]
Killing user processes...................................... [ OK ]
Unmounting file systems in /var/hpsrp/mySRP/etc/fstab....... [ OK ]
Unconfigure LAN interfaces.................................. [ OK ]
Step 11: Deleting the SRP Compartment
Because this session was used to show examples of srp operations instead of an actual deployment,
the user deletes the SRP compartment. The srp -delete command deletes all configuration data for
the SRP compartment.
# /opt/hpsrp/bin/srp -d mySRP
Do you wish to delete the compartment "mySRP"? (yes/no) : [no] yes
Processing SRP template sshd ...
delete compartment rules succeeded
delete provision service succeeded
Processing SRP template base ...
delete compartment rules succeeded
delete compartment directory succeeded
delete RBAC admin role for compartment succeeded
delete RBAC compartment login role succeeded
delete startup directories succeeded
delete prm rules succeeded
delete compartment network service rules succeeded
delete ipaddress succeeded
deleting directory /var/hpsrp/mySRP ...
delete compartment service succeeded
#