Topics include: programming, Apple, Unix, gadgets, large-scale web sites and other nerdy stuff.

Solaris 10 notes

2009-02-26 10:24:39

To mount a DVD or CD iso image:

lofiadm -a /full/path/imagename.iso /dev/lofi/1 mount -F hsfs -o ro /dev/lofi/1 /mnt

How to install packages:

cd /mnt/SolarisSoftwareCompanion/Solaris_i386/Packages pkgadd -d pwd SFWxaw3d

Where the hell is sudoers?

emacs /opt/sfw/etc/sudoers

No setuid? WTF?

chmod +s /opt/sfw/bin/sudo

To restart a service (like autofs, ssh):

svcadm restart /system/filesystem/autofs:default