In Oracle Solaris 11, /etc/nodename file is replaced with the config/nodename property of the svc:/system/identity:node service. So in order to change hostname in Solaris 11, we need to change the property to the new hostname and restart the service. Current hostname – geeklab New hostname – geekserver 1. To list the current hostname (i.e. config/nodename […]
Archives for January 2014
What is SUID, SGID and Sticky bit ?
There are 3 special permission that are available for executable files and directories. These are : 1. SUID permission 2. SGID permission 3. Sticky bit Set-user Identification (SUID) Have you ever thought, how a non-root user can change his own password when he does not have write permission to the /etc/shadow file. hmmm… interesting isn’t […]
How to change hostname in Solaris 8, 9 and 10
How to change hostname in Solaris 11 There are basically 2 ways to change the hostname in Solaris 10 and below. The post describes both these methods and also how to change hostname or IP address in Non-Global zones. 1. Using the sys-unconfig Command sys-unconfig command restores the system’s configuration to an “as-manufactured” state, ready […]
Solaris Snoop : 15 Awesome practical examples for packet sniffing
The snoop command can come very handy to monitor the network traffic to troubleshoot any network related issues like packet drops, high network latency etc. Snoop command can be run to see the real time network traffic or can be saved to a file and can be viewed at a later time. Note : – […]
The ultimate Solaris sendmail troubleshooting guide
Sometimes it becomes too difficult to troubleshoot sendmail problems. Here are some of the most commonly faced sendmail issues. Sendmail Configuration files /etc/mail/sendmail.cf Defines environment for sendmail /etc/mail/submit.cf Defines environment for MSP (Mail submission program) Sendmail Daemons Solaris 9 uses 2 queue paradigm and thus there are 2 sendmail daemons /usr/lib/sendmail -Ac -q15m /usr/lib/sendmail -bd […]
Solaris beginners guide to NFS
What’s NFS Network File System (NFS) is a protocol which allows file systems on one system to be made available on a remote system on the network. NFS works on the server-client model with server sharing the resource and client mounting it. NFS versions The 3 major versions of NFS are : NFSv2 (very rarely […]
The ultimate Solaris CRON troubleshooting guide
Cron facility can be used to schedule regularly occurring commands or scripts. Users can submit cron jobs by adding an entry to their respective crontabs located in /var/spool/cron/crontabs directory and stored as their login name. Below are few of the troubleshooting tips and best practices which can be helpful in many cases. Important cron files […]
Solaris ZFS command line reference (Cheat sheet)
Pool Related Commands # zpool create datapool c0t0d0 Create a basic pool named datapool # zpool create -f datapool c0t0d0 Force the creation of a pool # zpool create -m /data datapool c0t0d0 Create a pool with a different mount point than the default. # zpool create datapool raidz c3t0d0 c3t1d0 c3t2d0 Create RAID-Z vdev […]
How to configure an IP address in Solaris 11
Oracle made a huge changes in the networking stack with Solaris 11. The use of many network related files have been deprecated in Solaris 11. Below are some of the files which are not used in Solaris 11 for persistent network configuration : /etc/defaultdomain /etc/dhcp.* /etc/hostname.* /etc/hostname.ip*.tun* /etc/nodename /etc/nsswitch.conf Network Configuration Profile Solaris 11 uses […]
How to share ZFS as NFS in Solaris 11
ZFS is the default file system when it comes to Solaris 11. In solaris 11, Oracle made it even easy to share ZFS as NFS file system. The major change that oracle made in NFS sharing is that it removed the dependency of /etc/dfs/dfstab to share NFS permanently. The file /etc/dfs/dfstab is obsolete in Solaris […]