Solaris – NFS Mounts

Edit /etc/hosts and /etc/vfstab on the machine which needs the filesystem mounted. Hosts file should have servername and IP of the host server. Your vfstab is for automounting the filesystem. Edit the /etc/hosts and /etc/dfs/dfstab files on the server which hosts the filesystem. Hosts file should have the servername and IP of the client system. […]

Read More »

Solaris – D – Shell snooping

#!/usr/bin/sh # # shellsnoop – A program to print read/write details from shells, # such as keystrokes and command outputs. # Written using DTrace (Solaris 10 build 69). # # 21-Jan-2005, ver 0.80 (check for newer versions) # # # USAGE: shellsnoop [-hqsv] [-p PID] [-u UID] # # shellsnoop # default output # # […]

Read More »

Perl – Basic Solaris Zone Config

#!/usr/bin/perl # — Written by Blane Craft — # — 11/03/06 — # ## – Basic Zone Config – ## print ‘##–Basic Zone Configuration–##’; print”\n”; print”\n”; print ‘Zone Name? ‘; $name = ; chomp ($name); print ‘Set Dir? ‘; $setdir = ; chomp ($setdir); print ‘Special Dir? ‘; $spcdir = ; chomp ($spcdir); print ‘Filesystem […]

Read More »

Perl – password encryption

#!/usr/bin/perl print “### Password encryption utility ###\n”; print “\n”; print “What password would you like to encrypt?\n”; $pass=; chomp ($pass); print “Your encrypted password is..\n”; $xx = (“xx”); $enc=crypt ($pass, $xx); print “$enc\n”; print “\n”;

Read More »