Sandra Henry-Stocker has been administering Unix systems for more than 18 years. She describes herself as "USL" (Unix as a second language) but remembers enough English to write books and buy groceries. She currently works for TeleCommunication Systems, a wireless communications company, in Annapolis, Maryland, where no one else necessarily shares any of her opinions. She lives on a small farm on Maryland's Eastern Shore.
This blog offers advice for every-day Unix systems administration and some clever ways to approach more challenging problems.
If every time you grep for a specific word or string, you get a pile of lines that don't match what you were looking for, maybe it's time to learn about whole word searching. In today's column, we examine two ways to get what you want, the whole of what you want and nothing but what you want.
If you have a web site, the answer is undoubtedly "yes". Someone somewhere or, more likely, quite a few someones are attempting to attack your site or the system on which it is running. Assuming hackers have found your site and are testing it for holes that they might crawl through, let's take a look at how you can uncover evidence of their exploits with a quick examination of your web logs.
Tossing email into the /dev/null bit bucket is fine when you know the account in question will never receive any valid form of email. You can, however, get a much finer degree of control over email and still automate the cleanup of spam by using a tool such as procmail. Procmail is a basic email filter and not nearly as difficult to set up as people imagine. Let's run through the setup and focus on a couple potential stumbling blocks.
There are numerous ways to reduce the amount of spam that you receive. Good email filters can keep you from ever having to deal with the onslaught of stupid offers you never wanted to see, never mind the outright attempts to steal personal information or rope you into some type of scam. I've found that the spammers have become so desperate to increase their spam traffic deliveries that they are sending spam to system accounts such as bin and listen. Instead of trying to bounce this mail back to the senders -- which in less perverted times might have actually worked, I find it's speedier and less consuming of system resources to just pitch the mail into the bit bucket. Here's how this works.
In last week's post, I talked about customizing prompts to help remind your users what system they're logged into and where they are in the file system. Another useful way to help your users keep which window is which straight in their minds is to label the windows themselves. With the system name or project identifier displayed on the title bars of their windows, your users are less likely to type a command meant for system A on the command line for system B.
New Unix users can quickly reach the (wrong) conclusion that Unix is not a very friendly operating system. After all, the commands will at first seem very cryptic, their prompts might reach halfway across their screens and some of the options preset into their accounts might turn out to be very annoying. In today's column, I suggest some options for changing your users' commands prompts to suit their fancy.
In honor of Eid al-Fitr -- three days that mark the end of Ramadan (a month of fasting and reflection) and my daughter's birthday, I thought I'd take a look at how Unix handles holidays. Think it doesn't? If you're using Solaris, take a look in /etc/acct for a file named "holidays".
Sun's BigAdmin System Administration Portal provides an extremely useful tool for reporting the status of your network interface cards. Using ifconfig and a seriesof ndd (get driver parameter) and kstat (display kernal statistics) commands, the script prepares a summary of the network interface settings in table form.
I was surprised a couple days ago to notice that a cron job that was set up to move files from one system to another suddenly stopped working. Squeezing a little timefrom my other tasks to keep the files flowing to the application that needed them, I noted that I could run the script and move the files by hand. In fact, everything ran normally when I did and the files arrived at their proper destination in time to be processed and turned into useful graphs. Even so, the next day, the same thing happened again.
Relaying mail doesn't only come into play when someone is trying to use your mail server to deliver mail to a third domain. It can also affect your own subdomains.
Sidekick: The Good News & the Bad News Either way you look at it Microsoft Data Center management did not follow standards or best practices in this failure. In which case it makes me wonder more about the outsourcing of corporate data much less personal data.
- mburton325
Surviving Windows is easier than you think… MKS offers the power of an integrated all-in-one environment and provides you with the Power of UNIX on Windows Learn More
Brought to you by:
Free books
We have 5 copies of these two new books to give to some lucky readers. The deadline for entries is November 30, 2009.
AISO founders envisioned a Web hosting company that was environmentally friendly. While the company employed energy-efficient innovations like solar panels, its infrastructure produced unacceptable power and cooling requirements. Find out how AISO leveraged AMD technology to overcome their challenge in this case study white paper.
In this whitepaper, Scalar explores the opportunity to change the landscape with respect to mission critical databases
built around Oracle. Leveraging technologies such as Linux, high-end commodity processing power and Oracle RAC
technology to architect, design, build and maintain database infrastructure that delivers maximum availability, reliability
and performance at a fraction of traditional cost.
On a typical day, weather.com, the Web site for The Weather Channel in Atlanta, serves up between 15 million and 20 million page views. But in September 2004, when back-to-back hurricanes ransacked Florida, the peak traffic on one day more than tripled: over 70 million page views by more than 7 million unique visitors. Read the full success story now.