Category Archives: Unix
Monitoring User Logins In UNIX
Here are some of the commands and files that you may want to check out if you want to monitor your users’ login activity on a Unix box (BSD/Solaris) The concerned files (Solaris): /var/adm/utmp(x) /var/adm/wtmp(x) /var/adm/lastlog The Commands: users* who w ac* last *may not be available in Solaris? All sample outputs show on this … Continue reading
Loop Kill Mutiple PID On Bourne Shell
Just want to document it here. A colleague request to kill multiple PID owned by different users. They don’t have any special privilege to kill process other than their own. Here’s a simple for…loop script that will look for and kill each PID it found. #!/bin/sh -x ps -ef | grep nobody | awk ‘{print … Continue reading
OpenLDAP Installation on Sun Blade 100
This is an OpenLDAP installation on the following system: System Configuration: Sun Microsystems sun4u Memory size: 1024 Megabytes Sun-Blade-100 (UltraSPARC-IIe) Prerequisites: Depending on the requirements, there may be a need to install some third party softwares: OpenSSl Kerberos SASL Berkeley DB TCP Wrappers and others Need to make sure the following variables is set: Variable … Continue reading
Route, Routing, Routing Table
Here’s some information about routing from a Unix (Solaris) box. Got this request from one of the Network people to add a static route on a server. The command # netstat -rn show the routing table on a *nix machine . The ‘route’ command manually manipulates the network routing table on a Unix box. The … Continue reading
Soft and Hard Links… Explained
A friend and I were kind of reviewing some HPUX/Solaris commands and ideas. She asked “What were the difference between hard and soft links?”. Unable to get the answer at once, I of course consulted my Solaris Administration guide. I also got curious cause I really don’t mind what their difference is, all I care … Continue reading
from DUSK…
We UNIX SysAds have many many tools that can help us administer our servers. What’s great about UNIX is that you don’t have to learn the complicated commands to do what’s need to be done. There is a saying in the UNIX world that a complex command is just a few commands used altogether. We … Continue reading