
Oct 5, 2012
How to set a Directory Sticky Bit in Linux
There are times on Linux / Unix that you need to set the permissions on a directory so that only the owner and root can delete / rename files or sub-directories in the directory. This is true by default with the /tmp directory. This is commonly referred to as the sticky bit. If you want to keep the permissions the same on the directory and just add the sticky bit you can do this by using the chmod command... read more
Oct 3, 2012
How to lock down files in Linux using chattr
As system admins there is always a few trouble users that keep changing files we don’t want them to, such as /etc/resolv.conf. We can do that using the chattr command. Here is the file with no flags using the lsattr command. lsattr – list file attributes on a Linux second extended file system $ lsattr resolv.conf ————-e- resolv.conf So lets lock down the file using -i... read more
Oct 1, 2012
How To Print Directly To PDF in Fedora 17
Admit it, you know you like PDF format, it is portable and the reader is available everywhere it is convenient to have your go to docs in the format. I do it all the time for those commands and programs that I cannot remember the details. No matter what OS I am using I always like the ability to print directly to PDF for sending and storing information. With Windows systems I am a fan of PDFCreator but... read more
Sep 30, 2012
Gathering System Statistics for Linux using SAR
You know how it happens, you are working on a killer bash script and all of the sudden your manager is standing at your cube asking you to look at slow performing server. It happens all of the time, but luckily we have many tools at our disposal and one such tool is Sar. If you are needing I/O, CPU stats and other data from today or several days back, then sar is the tool to use for Linux. If you are... read more
Sep 25, 2012
How To Set Your VirtualBox 4.2 VM to Automatically Startup
Being system administrators and tweakers we always like to make things automatically take care of themselves, right? Well of course we do and that’s where any auto starts we find are likely to get put in place. A new feature added in VirtualBox 4.2 is autostart, this feature is available in Linux, Solaris and MacOSX hosts only. Let’s say there is a VirtualBox VM you start everytime you... read more