February 2009 Archives

Sun Solaris Jumpstart Boot Server

| 0 Comments | 0 TrackBacks
Jumpstart Server:
lofiadm -a /root/solaris.iso
mount -F hsfs -o ro /dev/lofi/1 /mnt
cd /mnt/Solaris_10/Tools
./setup_install_server -b /opt/jumpstart/
cd  /opt/jumpstart/Solaris_10/Tools
./add_install_client -i 10.0.0.10 -e xx:xx:xx:xx:xx:xx hostname arch
Jumpstart Client:
ok boot net - install

SudoScript on Solaris 10

| 0 Comments | 0 TrackBacks

Sudoscript is a pair of Perl scripts (sudoscriptd/sudoshell) that provide an audited shell using sudo. SudoScript by Howard Owen can be found at http://www.egbok.com/sudoscript .

Here are my notes to configure SudoScript for Solaris 10.

1 - Update the setlogsock from "unix" to "stream" in sudoscriptd


#setlogsock 'unix';
setlogsock 'stream';

2 - /etc/shells does not exist on Solaris 10, create a /etc/shells file with the appropriate shells defined


/bin/sh
/bin/csh
/bin/ksh
/bin/bash

3 - Define the location of your sudo binary in Sudoscript.pm


#$self->{SUDO}="sudo";
$self->{SUDO}="/opt/sfw/bin/sudo";