<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7552383</id><updated>2011-04-21T21:52:36.603-05:00</updated><title type='text'>Linux Tips</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://kevinuxtips.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>80</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7552383.post-115656082742370630</id><published>2006-08-25T21:50:00.000-05:00</published><updated>2006-08-25T21:53:47.720-05:00</updated><title type='text'>LDAP Authentication In Linux</title><content type='html'>This howto will show you howto store your users in LDAP and authenticate some of the services against it.&lt;br /&gt;&lt;br /&gt;LDAP authentication is nice.. but it can also cause problems.&lt;br /&gt;Every time you do an "ls" you'll hit the ldap server to look up file ownership.&lt;br /&gt;Every time your webserver goes to get a file, it'll hit the ldap server to check permissions.&lt;br /&gt;&lt;br /&gt;Something tells me because it's called _Lightweight_ Directory Access Protocol that wont be a problem unless you're doing thousands upon thousands of lookups per second...and in any event, [open]ldap supports replication. It solves numerous more problems than it fixes.&lt;br /&gt;That's why there is something called Name Switch Cache Daemon (nscd)&lt;br /&gt;&lt;br /&gt;Authenticating systems to LDAP is great. Especially because there's so much possible versatility. For example, not only can you authenticate logins, but you can also setup AutoFS to pull automount information from LDAP, and even better, you can actually pull SUDO access rules from LDAP (to replace the sudoers file).&lt;br /&gt;&lt;br /&gt;This makes it *so* much easier to remove direct root login, and force administrators to use sudo. It also makes it easier to selectively grant additional access to users.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-115656082742370630?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.howtoforge.com/linux_ldap_authentication' title='LDAP Authentication In Linux'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/115656082742370630'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/115656082742370630'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2006/08/ldap-authentication-in-linux.html' title='LDAP Authentication In Linux'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-115607950404200458</id><published>2006-08-20T08:10:00.000-05:00</published><updated>2006-08-20T08:11:45.036-05:00</updated><title type='text'>MySQL Connection Management in PHP - How (Not) To Do Things</title><content type='html'>OK, I think I see what he is explaining, he has a point on the wordpress constructor... they should create the resource static and check if it has been defined already... he focuses on the reuse of the DB object, so if you create a new DB object only use 1 connection. I was hoping for sharing DB connection between sessions.&lt;br /&gt;&lt;br /&gt; Sharing a DB connection between PHP instances can be done with pconnect.. but it's not a good idea.&lt;br /&gt; &lt;br /&gt;  The problem with wordpress is that the connection is opened at the beginning of every page. Multiple times. (There's a separate connection for the body of the page, and the sidebar, and the individual includes in the sidebar, etc etc).&lt;br /&gt; &lt;br /&gt;  He solved this problem by only opening a connection if a page is actually going to make a request.&lt;br /&gt; &lt;br /&gt;  The other problem (which he didn't address), is that wordpress holds open a connection for too long, and does too many queries. Loading the frontpage of a standard configuration wordpress blog issues 27 queries over 3 separate connections. Basically, wordpress is a mess. They went include crazy (just look at how many different includes there are for the header alone.. he went 3 includes deep to find the mysql connection).&lt;br /&gt;&lt;br /&gt; #####################&lt;br /&gt; First off, Wordpress only uses one connection for everything. Really. Unless you have a plugin or some other code making its own connection, all Wordpress queries are handled through the same connection.&lt;br /&gt; &lt;br /&gt;  The way it works is that, at the beginning of the execution, an instance of the wpdb class is created. Every query Wordpress does is through this one instance. It has one connection and it maintains it for the life of the execution cycle (until you see the generated page, basically).&lt;br /&gt; &lt;br /&gt;  What he's talking about is "lazy loading". See, when the instance of this class is created, it connects to the database right then and there. If the rest of the code then goes on and never uses that instance, you wasted your time connecting, yeah? His solution is to wait to actually connect until you need that connection. Basically, his patch eliminates the connection from the class constructor and creates a separate connect() function. Then, the query function is modified to check that a connection exists, and if not, call the connect() function to build one.&lt;br /&gt; &lt;br /&gt;  The benefit here is that if your page never hits the database for anything, then it never connects at all. This is smarter than the current Wordpress code.&lt;br /&gt; &lt;br /&gt;  However, it's also unnecessary, really. With Wordpress in particular, it would be extremely difficult to imagine a scenario where it doesn't actually hit the database. Everything comes from the database. Posts, sidebar content, anything dynamic, it all hits it. So this really isn't saving you anything for your average blog. Yes, he is correct that making the connection lazy makes more sense. However, it's a poor example, because Wordpress virtually *always* uses that database connection. Several times.&lt;br /&gt; &lt;br /&gt;  He also goes on about caching, and yes, caching is good. He doesn't talk about caching with Wordpress, but there are caching hooks in there and plugins which can use them (WP-Cache, for example). This sort of thing implements caching in a very smart manner... smarter than what he's talking about in his code snippets there, certainly. The upshot is that if you use something like WP-Cache, you get everything he's talking about and then some, making Wordpress extremely quick indeed.&lt;br /&gt; &lt;br /&gt;  Takes some setup, but what doesn't?&lt;br /&gt; ##################&lt;br /&gt;&lt;br /&gt; Anyone who uses func_get_args() like that needs to look at how they code. That's some seriously ugly code.&lt;br /&gt; &lt;br /&gt;  But the general concept is completely right and should be used my most apps.&lt;br /&gt;&lt;br /&gt; #################&lt;br /&gt; So now that we got the caching idea into our heads what would be the most effective medium for storing your cache?&lt;br /&gt;  Is it filesystem? or could we maybe use something like SQlite for it?&lt;br /&gt;&lt;br /&gt; memcached from &lt;a id="bodyLinks" rel="nofollow" class="user" target="_blank" href="http://www.danga.com/memcached/"&gt;http://www.danga.com/memcached/&lt;/a&gt; is what you're looking for. It's amazing. I'm doing about a billion cache look-ups a day with it on some older hardware. I'm doing with one old server what previously took four nice big new servers.&lt;br /&gt;&lt;br /&gt; ####################&lt;br /&gt; Interesting - but he's failed on one minor problem - that his caching algorithm uses the file system - a bigger problem than the one he is solving - the only way that this will work efficiently is if the blocks he is including a very complex (either in the SQL queries used OR in the processing that is performed on the output)&lt;br /&gt; &lt;br /&gt;  It is admittedly easy to produce and reuse the files - but there are problems with large directories if the site is getting into the sort of traffic that requires this sort of caching...&lt;br /&gt; &lt;br /&gt;  On a test version of our work server we were using file caching (and having to store temporary images) - we managed to break the file system by creating millions of files overnight - the systems team worked out that it would be quicker to reformat the system disk - and re-install the operating system that deleting all the files with rm (calculated time was somewhere near 32 days to remove files created in 12 hours!)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-115607950404200458?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://jpipes.com/index.php?/archives/99-MySQL-Connection-Management-in-PHP-How-Not-To-Do-Things.html' title='MySQL Connection Management in PHP - How (Not) To Do Things'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/115607950404200458'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/115607950404200458'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2006/08/mysql-connection-management-in-php-how.html' title='MySQL Connection Management in PHP - How (Not) To Do Things'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-115419947410427851</id><published>2006-07-29T13:54:00.000-05:00</published><updated>2006-07-29T13:57:54.393-05:00</updated><title type='text'>Linux Printing with CUPS</title><content type='html'>CUPS (Common Unix Printing System) version 1.2 was released last month, bursting with over 90 fabulous new features and improvements. Today we'll take a look at them and decide how fabulous they really are. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.enterprisenetworkingplanet.com/netsysm/article.php/3621876"&gt;Push Windows Printer Drivers with CUPS&lt;/a&gt;&lt;br /&gt;Today you shall learn how to use CUPS and Samba together to set up automagic client printer installations. That's right, my hardworking friends, none of this dashing about to individual workstations burdened with driver disks and Windows CDs. The goal here is to never leave your snug underground lair.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-115419947410427851?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.linuxplanet.com/linuxplanet/tutorials/6282/1/' title='Linux Printing with CUPS'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/115419947410427851'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/115419947410427851'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2006/07/linux-printing-with-cups.html' title='Linux Printing with CUPS'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-115419888160932416</id><published>2006-07-29T13:45:00.000-05:00</published><updated>2006-07-29T13:48:02.226-05:00</updated><title type='text'>How To Test Your Linux Firewall</title><content type='html'>This article shows how you can test your Linux firewall with a tool called FTester (Firewall Tester). With FTester you can check your firewall's filtering policies. The tool consists of two perl scripts, a packet injector (ftest) and the listening sniffer (ftestd). Furthermore, FTester also provides Intrusion Detection System (IDS) capabilities.&lt;br /&gt;&lt;br /&gt;This has more akin to Tomahawk (mentioned above). People are just trying to flex their muscle by proving they know about one-or-two tools.&lt;br /&gt;&lt;br /&gt;I use quite a few tools in my job including Tomahawk, Spike, THC-AMAP, Etherape, dsniff, TCP traceroute, aircrack/airsnort/airereplay/kismet (for wireless), ettercap, ethereal, fping, nemesis, driftnet, vomit, john the ripper, hydra, nikto, ngrep, ntop, arpwatch, dsniff, fragroute, nmap, nessus, nessus inline, cheops, metasploit (rarely), honeyd, firewalk, lids, tripwire, aide, stunnel, tcpdump/tcpreplay, bile, paketto, ISS scanner, eEye Retina, nCircle 360, SkyBox and more.&lt;br /&gt;&lt;br /&gt;A direct comparison with nmap isn't really fair as nmap will not analyse the output or munge the packet properly to simulate a multi-network origin. If you've got an Enterprise firewall with 15,000 rules, going through the output of nmap is very difficult, plus you'll have to make the nmaps look like you're coming from multiple different locations. nmap is great as a single tool from a much larger toolbox.&lt;br /&gt;&lt;br /&gt;This looks interesting, but a similar open source tool called Tomahawk (which is mainly used for testing IDS/IPS systems) has been around for a while - &lt;a href="http://tomahawk.sourceforge.net/"&gt;http://tomahawk.sourceforge.net/&lt;/a&gt; - I have to admit a vested interest, I used to work for the company that started the original Tomahawk project. With the Tomahawk you can take pcaps using TCPDUMP/Ethereal and then reply them through a device and you can even amplify (capture 10 Mbps worth of traffic, but play out 1 Gbps worth of traffic) and munge source/destination packets.&lt;br /&gt;&lt;br /&gt;The Tomahawk is designed for a different purpose than this tool, but if you're interested in this have a look at it. Like I said, this is another tool for the toolbox. Those that rely on one tool are only seeing/testing a very limited aspect of the network/host.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-115419888160932416?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.howtoforge.com/test_your_linux_firewall_with_ftester' title='How To Test Your Linux Firewall'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/115419888160932416'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/115419888160932416'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2006/07/how-to-test-your-linux-firewall.html' title='How To Test Your Linux Firewall'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-115419870649470745</id><published>2006-07-29T13:39:00.000-05:00</published><updated>2006-07-29T13:45:07.050-05:00</updated><title type='text'>How to set up a mail server on a GNU / Linux system</title><content type='html'>Easy to follow howto on setting up a mail server. Based on an Ubuntu distribution platform, but instructions are distro generic.&lt;br /&gt;&lt;br /&gt;If you want to use the Debian way to a Postfix mail server, there is a guide here:&lt;br /&gt;&lt;a href="http://johnny.chadda.se/2005/04/30/postfix-howto/"&gt;http://johnny.chadda.se/2005/04/30/postfix-howto/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Only PDF at the moment I'm afraid.&lt;br /&gt;&lt;br /&gt;Here is a step by step on Debian that includes antivirus and spam filtering:&lt;br /&gt;&lt;a href="http://www.fatofthelan.com/articles/articles.php?pid=22"&gt;http://www.fatofthelan.com/articles/articles.php?pid=22&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Zimbra includes all* this and makes install as simple as: "./install.sh".&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.zimbra.com"&gt;http://www.zimbra.com&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;* AJAX UI rather than SquirrelMail&lt;br /&gt;Internal IMAP rather than Courier&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.qmailrocks.org"&gt;http://www.qmailrocks.org&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The most comprehensive mail server setup guide for freebsd, linux, solaris, etc... Oh yeah Qmail is the fastest and most badass mail server no the planet. Google (gmail) runs a modified version of it, same with yahoo.&lt;br /&gt;&lt;br /&gt;QmailRocks is good for most distro's, but for RPM Based distros, there is also the QmailToaster&lt;br /&gt;&lt;br /&gt;&lt;a href="http://digg.com/linux_unix/Qmail_Toaster_makes_mail_server_setup_easy"&gt;http://digg.com/linux_unix/Qmail_Toaster_makes_mail_server_setup_easy&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;This project has made it very easy for any RPM based Linux distro to become a full functioning mail server, complete with webmail and imap-ssl.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-115419870649470745?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://flurdy.com/docs/postfix/' title='How to set up a mail server on a GNU / Linux system'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/115419870649470745'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/115419870649470745'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2006/07/how-to-set-up-mail-server-on-gnu-linux.html' title='How to set up a mail server on a GNU / Linux system'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-115419417085151446</id><published>2006-07-29T12:19:00.000-05:00</published><updated>2006-07-29T12:29:31.456-05:00</updated><title type='text'>Howto install a Debian GNU/Linux system onto a USB flash thumbdrive with the root partition encrypted</title><content type='html'>&lt;a href="http://www.althack.com/index.php?option=com_content&amp;task=view&amp;id=24&amp;Itemid=27"&gt;How to Run Linux on a USB Drive&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Simple instructions for anyone looking for a portable installation that they can easily carry with them for use as rescue media, system administration or as a private workstation.  This site offers a great guide to booting a distribution of Damn Small Linux on a Lexar 512mb Jump Drive. It includes complete instructions with screenshots. Definitely worth a look!&lt;br /&gt;&lt;br /&gt;For more information on LUKS (Linux Unified Key Setup) see: &lt;a href="http://luks.endorphin.org/"&gt;http://luks.endorphin.org/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I'm glad it's getting out to people. It's using device mapping encryption that will work with (just about) any linux box. If you have a 500mhz cpu there's no huge reason to not use encryption. And unlike windows crappy encryption, you can encrypt the entire root filesystem, not just non system files / folders&lt;br /&gt;&lt;br /&gt;&lt;a href="http://gentoo-wiki.com/SECURITY_Encrypting_Root_Filesystem_with_DM-Crypt_with_LUKS"&gt;http://gentoo-wiki.com/SECURITY_Encrypting_Root_Filesystem_with_DM-Crypt_with_LUK&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;"Does bartpe support ext2 filesystems?"&lt;br /&gt;&lt;br /&gt;It does, but read-only: &lt;a href="http://www.bootcd.us/BartPE_Plugin_Details/58/Explore2fs.html"&gt;http://www.bootcd.us/BartPE_Plugin_Details/58/Explore2fs.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;irc.chatjunkies.org #linuxhelp if you need help setting it up lowkey hangs out in there&lt;br /&gt;&lt;br /&gt;FTA:"NOTE: This howto will only work if your device has been detected as /dev/sda because of how mkinitrd.yaird works." ...."mkinitrd.yaird"? -Never heard of that.&lt;br /&gt;&lt;br /&gt;I'm familiar with the original Debian how-to, what I have yet to find is a concise how-to for installing an OS on a *hard drive* encrypted at time of install. Not just the root, but the whole thing.&lt;br /&gt;&lt;br /&gt;Yaird - Yet Another Mkinitrd&lt;br /&gt;For more infor: &lt;a href="http://yaird.alioth.debian.org/"&gt;http://yaird.alioth.debian.org/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I have found it useful to just install Knoppix onto a 1GB thumbdrive.&lt;br /&gt;&lt;br /&gt;The 700MB CD-ROM image fits rather nicely, giving just under 300MB of free space remaining on the thumbdrive.&lt;br /&gt;&lt;br /&gt;Knoppix doesn't use encrypted partitions, instead, it uses a large file that contains an encrypted filesystem. This actually works out better for installations designed to be portable, like USB keys. The reason is that device letters can often change on various computers, depending on what other drives are installed: for example, sda, sdb, sdc....&lt;br /&gt;&lt;br /&gt;By using a file instead of a partition, Knoppix can just search for this file, on all devices it can see. It saves having to directly mount a device, and then having that mount fail because the location changed. Also, the size of this file can be changed without having to repartition/reformat!&lt;br /&gt;&lt;br /&gt;Also, the main Knoppix CD-ROM data doesn't need to be encrypted, as there's no secrets there, and it remains read-only. So, you get a little better speed, as the entire USB key doesn't need to be encrypted.&lt;br /&gt;&lt;br /&gt;Here's my writeup of how to get Knoppix nicely installed to a USB key:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.knoppix.net/forum/viewtopic.php?t=23558"&gt;http://www.knoppix.net/forum/viewtopic.php?t=23558&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;This is slightly different from the method described on the FAQ, for various reasons I mention in the forum.&lt;br /&gt;&lt;br /&gt;If you want to support the development of Damn Small Linux you can purchase it on a bootable USB drive from here: &lt;a href="http://damnsmalllinux.org/usb.html"&gt;http://damnsmalllinux.org/usb.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.ubuntulite.org/drupal/?q=node/1"&gt;http://www.ubuntulite.org/drupal/?q=node/1&lt;/a&gt;&lt;br /&gt;UbuntuLite might be a good way to get Ubuntu on a smaller size USB drive.&lt;br /&gt;Not too sure how far they've got with yet though, but it might be worth a try.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I prefer &lt;a href="www.puppylinux.org"&gt;www.puppylinux.org&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;There are usb "sticks" available which run linux. I have the BlackDog (see &lt;a href="http://www.projectblackdog.com"&gt;http://www.projectblackdog.com&lt;/a&gt;) . Another would be Gumstix (&lt;a href="http://www.gumstix.com"&gt;http://www.gumstix.com&lt;/a&gt;)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Feather Linux, it's about 128MB but has way more functionality then DSL.&lt;br /&gt;&lt;a href="http://www.chipnick.com/thumbdrive-linux"&gt;http://www.chipnick.com/thumbdrive-linux&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-115419417085151446?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://feraga.com/node/30' title='Howto install a Debian GNU/Linux system onto a USB flash thumbdrive with the root partition encrypted'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/115419417085151446'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/115419417085151446'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2006/07/howto-install-debian-gnulinux-system.html' title='Howto install a Debian GNU/Linux system onto a USB flash thumbdrive with the root partition encrypted'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-115413264564643137</id><published>2006-07-28T19:19:00.000-05:00</published><updated>2006-07-28T19:24:07.073-05:00</updated><title type='text'>Managing Linux Through Windows Active Directory</title><content type='html'>A nice article about connecting Linux Authentication to Windows Authentication.&lt;br /&gt;&lt;br /&gt;Check this how-to posted here a while back on Linux/AD Integration&lt;br /&gt;&lt;br /&gt;&lt;a href="http://thelazyadmin.com/index.php?/archives/381-LinuxUnix-Active-Directory-Authentication-Integration-Part-1.ht"&gt;http://thelazyadmin.com&lt;/a&gt;/index.php?/archives/381-LinuxUnix-Active-Directory-Authentication-Integration-Part-1.html&lt;br /&gt;&lt;br /&gt;&lt;a href="http://thelazyadmin.com/index.php?/archives/383-LinuxUnix-Active-Directory-Authentication"&gt;http://thelazyadmin.com/&lt;/a&gt;index.php?/archives/383-LinuxUnix-Active-Directory-Authentication&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Not a complete authentication solution. Kerberos against a Windows ADS does work, but as laid out in the article, this does not present a SSO solution nor does it work for all authentication operations. It does get you about "80%" there, but there are holes. For one, if you managed all your users in ADS, you'll still need to create the users on each of the linux machines that the user(s) are allowed to use. You can work around this using samba and some user/group mappings, but it is something that anyone trying to manage users in one place should be aware of. Also, not all the linux modules use krb5. You may need to recompile or install the appropriate module with krb5 support and that still may not be enough. I can't recall if it's KDE or GNOME, but one of them let's you authenticate at login using kerberos against ADS, but if you then attempt to use the manager's "network explorer", the authentication fails (one of them fails silently and just denies you access, the other at least prompts you for you domain, username, and password even though you just entered the information at login). It is a starting point but these are probably better resources (even if not fully complete themselves):&lt;br /&gt;&lt;br /&gt;&lt;a href="http://redmondmag.com/columns/article.asp?EditorialsID=858"&gt;http://redmondmag.com/columns/article.asp?EditorialsID=858&lt;/a&gt;&lt;br /&gt;&lt;a href="http://redmondmag.com/features/article.asp?EditorialsID=422"&gt;http://redmondmag.com/features/article.asp?EditorialsID=422&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This should work at least 95% of the time when the service/program/etc uses PAM for authentication. Some can even use winbind directly, some (like GDM, etc) support kerberos directly but i have never had any real luck with them, tends to make more of a mess than anything.&lt;br /&gt;&lt;br /&gt;As far as having to set up samba, you have to do that already for pam-&gt;winbind-&gt;AD to work. And you don't need to create the users/groups locally (winbind takes care of that, try getent passwd/groups or wbinfo -u/g after samba/winbind is configured), but you do need to script the creation of the home directory on the first login (from skeleton, or maybe even grab it from a roaming profile possibly? how to keep it in sync though...).&lt;br /&gt;&lt;br /&gt;The whole process isn't trivial, but it isn't that hard either. Good tutorials/howtos are hard to come by (at least were 4 years ago when I first did this) but are getting better.&lt;br /&gt;&lt;br /&gt;I set up our Linux boxes to authenticate to our Active Driectory domain using Samba's winbindd, pam_winbind and pam_mkhomedir. Works well and has reduced my management headache a fair bit. &lt;a href="http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/winbind.html"&gt;http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/winbind.html&lt;/a&gt; has all the related information.&lt;br /&gt;&lt;br /&gt;Why stop there, integrate all of it, samba, ldap, mail, etc...&lt;br /&gt;&lt;a href="http://www.fatofthelan.com/articles/articles.php?pid=24"&gt;http://www.fatofthelan.com/articles/articles.php?pid=24&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;While the forum linked to in the post here seems valuable, here's the actual article link:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.linux-watch.com/news/NS4820656867.html"&gt;http://www.linux-watch.com/news/NS4820656867.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Web app authentication is much better handled with a simple LDAP bind. If you're in PHP, for instance:&lt;br /&gt;&lt;br /&gt;// Given $username and $passwd, try domain auth...&lt;br /&gt;// DC = domain controller, yourdomain.local = domain name&lt;br /&gt;$ad = ldap_connect("DC");&lt;br /&gt;ldap_set_option($ad, LDAP_OPT_PROTOCOL_VERSION, 3);&lt;br /&gt;&lt;br /&gt;$bd = @ldap_bind($ad, "$username@yourdomain.local", $passwd);&lt;br /&gt;if (!$bd) {&lt;br /&gt;// bad username or password&lt;br /&gt;} else {&lt;br /&gt;// logged in&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-115413264564643137?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.nuxified.org/managing_linux_through_windows_active_directory_0' title='Managing Linux Through Windows Active Directory'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/115413264564643137'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/115413264564643137'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2006/07/managing-linux-through-windows-active.html' title='Managing Linux Through Windows Active Directory'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-115413222252066875</id><published>2006-07-28T19:13:00.000-05:00</published><updated>2006-07-28T19:17:02.866-05:00</updated><title type='text'>Single-Sign-On on Linux using LDAP with Active Directory</title><content type='html'>This article discusses how you can integrate Linux into a Windows-based network by making it authenticate against an Active Directory server and having it get passwd and group information from Active Directory as well.&lt;br /&gt;&lt;br /&gt;Also Note, Check your AD Schema version before trying to update using the LDF files listed. Windows Server 2003 R2 will have the attributes already integrated for Unix Support.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.microsoft.com/windowsserver2003/r2/unixinterop/default.mspx"&gt;http://www.microsoft.com/windowsserver2003/r2/unixinterop/default.mspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;We use Quest's (formerly Vintela) VAS product to integrate the *NIX systems into AD. It offers other benefits founds in Windows systems, now on the Unix boxes (Cache'd logon most imporantly, Group Policy support,etc.)&lt;br /&gt;&lt;br /&gt;LDAP IS NOT AN AUTHENTICATION PROTOCOL!&lt;br /&gt;&lt;br /&gt;First of all, you are correct about LDAP not being an authentication protocol.&lt;br /&gt;&lt;br /&gt;Kerberos is an excellent solution for many people wanting to maintain a single AD management system, except there is one problem that Kerberos can't solve for our solution. If you try and maintain a list of servers that users can and cannot log into.&lt;br /&gt;&lt;br /&gt;So for example, in our domain, we have 3 machines, 1) AD running for a single realm 2) Linux machine with pam_krb5, which you wish to auth against the AD server, that allows everyone to access it (that has an account on the AD system), and 3) Linux machine with pam_krb5, which you wish to auth against the AD server, that you want a select few(er) people to access that also auth against the AD server.&lt;br /&gt;&lt;br /&gt;Using Kerberos, computer 2 can auth against the AD server (1), and gain access to the machine, however, there is no way to maintain user access control for server 3 in this example.&lt;br /&gt;&lt;br /&gt;The only real way to control access is to use an LDAP solution.&lt;br /&gt;&lt;br /&gt;Firstly, Microsoft will support you even if you make schema changes, thats what the schemas is there for, to use, there are many products that reauire schema changes. But Microsoft support is a thing of wonder anyway, we've had to use it a few times and this last time for a cluster playing up they could only offer a solution where we build a whole new cluster.&lt;br /&gt;&lt;br /&gt;For my enterprise I purchased Suns AD Sync identity managment product. It is very cheap as the JES directory server stuff is free anyway. It is supported by Sun so if it breaks you still have someone to call.&lt;br /&gt;&lt;br /&gt;A job copies any new AD members to the Sun directory, and Unix boxen authenticate off that, it caches the encrypted password. No need for AD schema changes.&lt;br /&gt;&lt;br /&gt;Maybe it's not SSO but at least you are using AD creds on Unix, and it is supported.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.linuxjournal.com/article/8374"&gt;http://www.linuxjournal.com/article/8374&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Better article with better scaling. Comes in 4 parts.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-115413222252066875?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.oo-services.com/en/articles/sso.aspx' title='Single-Sign-On on Linux using LDAP with Active Directory'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/115413222252066875'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/115413222252066875'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2006/07/single-sign-on-on-linux-using-ldap.html' title='Single-Sign-On on Linux using LDAP with Active Directory'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-115413184098689524</id><published>2006-07-28T19:10:00.000-05:00</published><updated>2006-07-28T19:10:41.300-05:00</updated><title type='text'>Turn your Linux web server into Fort Knox</title><content type='html'>An in depth article on how to secure your Linux web server. Who says that security is ever "easy"? It's a must-have for anybody running a web server - even if it's at home.&lt;br /&gt;&lt;br /&gt;I'm really surprised he didn't mention Denyhosts. Excellent program that prevents brute force SSH logins.&lt;br /&gt;&lt;a href="http://denyhosts.sourceforge.net/"&gt;http://denyhosts.sourceforge.net/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Denyhosts has definitely helped out our production servers by keeping the load averages down by blocking abusive ssh denial of service attacks. With some of the hardening mentioned in the article applied alongside Hardened Gentoo Linux a server could withstand allot of abusive exploit attacks. By using a system which compiles binaries as position independent every binaries memory execution insertion address is randomized. While this can be something more suited to administrators with a moderate to advanced understanding of compilers and programming architecture when used alongside grsecurity framework execution of a binary uses a different hexadecimal memory address which enforces a policy akin to winning the lottery for any malicious cracker. Our production 64bit and 32bit servers all have been using hardened gentoo for years and to date we have never experienced a system compromise. &lt;a href="http://hardened.gentoo.org"&gt;http://hardened.gentoo.org&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Anti-virus/Anti-malware/anti-rootkit items like chkrootkit or rootkit hunter are, unfortunately, pretty useless when it comes to security.&lt;br /&gt;&lt;br /&gt;There is two reasons:&lt;br /&gt;A. Because the rootkit writers have access to those tools also. So all they have to do to defeat them is setup a Linux server and run those programs. If they are detected, then they simply have to modify how thier program works so that they aren't detected anymore. It's almost trivially easy to defeat them with old fasion 'conventional' rootkits.&lt;br /&gt;&lt;br /&gt;B. Also kernel module rootkits are popular nowadays anyways. These are kernel modules that modify how a kernel behaves in order to mask the rootkit itself. These are nearly impossible to detect.&lt;br /&gt;&lt;br /&gt;BTW since Windows 2000 started having acceptable security kernel driver level rootkits for Windows have become popular.&lt;br /&gt;&lt;br /&gt;The only realy effective way to detect a rootkit is to setup a program like Tripwire.&lt;br /&gt;&lt;br /&gt;Tripwire is a program that you use to make checksums of all the files on your computer, then later you can run it to check the checksums. You have to store the checksums output on a secure computer or secure read-only medium (like a cdrom disk.). Also Tripwire is only usefull if you run it from a different operating system then the one your currently running (like say booted up in knoppix cdrom).. This is because it can be defeated by false reports created by a kernel module level rootkit.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;OpenBSD folks are probably going to be the formost on things like this that don't require special propriatory stuff or charge you money for information and such things, and are stuff you can impliment yourself.&lt;br /&gt;&lt;a href="http://www.bytelabs.org/papers.html"&gt;http://www.bytelabs.org/papers.html&lt;/a&gt;&lt;br /&gt;Check out the paper Paper title: "Integration of Security Measures and Techniques in an Operating System (considering OpenBSD as an example)"&lt;br /&gt;&lt;br /&gt;For Linux and GCC Redhat took a lot of work into rewriting ProPolice SSP (developed originally out of IBM's japan branch) and getting into the GCC release. I beleive it's in GCC 4.1.&lt;br /&gt;&lt;br /&gt;Also introduced into the lifetime of the 2.6.x kernel release has been things like heap protection and support for the 'no execute' bit and such.&lt;br /&gt;&lt;br /&gt;A example of this being used to protect a vunerable program is outlined in this Debian-Administrator.org article..&lt;br /&gt;&lt;a href="http://www.debian-administration.org/articles/408"&gt;http://www.debian-administration.org/articles/408&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;And of course Wikipedia has a good article on it.&lt;br /&gt;&lt;a href="http://en.wikipedia.org/wiki/StackGuard"&gt;http://en.wikipedia.org/wiki/StackGuard&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Other things for Linux (like he mentioned)&lt;br /&gt;grsecurity &lt;a href="http://www.grsecurity.net/"&gt;http://www.grsecurity.net/&lt;/a&gt;&lt;br /&gt;AppArmor (from Novell) &lt;a href="http://www.novell.com/apparmor"&gt;http://www.novell.com/apparmor&lt;/a&gt;&lt;br /&gt;SELinux (from the NSA (United States Government) and made workable by Redhat for their Enterprise Linux and Fedora Core stuff.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-115413184098689524?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.freesoftwaremagazine.com/articles/hardening_linux' title='Turn your Linux web server into Fort Knox'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/115413184098689524'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/115413184098689524'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2006/07/turn-your-linux-web-server-into-fort.html' title='Turn your Linux web server into Fort Knox'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-115276207452254748</id><published>2006-07-12T22:35:00.000-05:00</published><updated>2006-07-12T22:41:15.056-05:00</updated><title type='text'>Insights for a quick and easy Ubuntu printer installation</title><content type='html'>For a long time, setting up a printer in Linux has been somewhat challenging. But, it's been getting easier and easier. And today, setting up a printer in Ubuntu as simple as it gets - this article is firm evidence!&lt;br /&gt;&lt;br /&gt;This also follows on previous printing advice found &lt;a href="http://kevinuxtips.blogspot.com/2005/04/review-of-slashdot-discussion-of-cups.html"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;We bought an Epson Stylus D68 today in fact, after searching for it in &lt;a href="http://linuxprinting.org/printer_list.cgi"&gt;http://linuxprinting.org/printer_list.cgi&lt;/a&gt; and seeing that it worked. The description was that it "mostly worked" but we can't find what _doesn't_ work on it.&lt;br /&gt;&lt;br /&gt;We weren't using Ubuntu, but stock Debian. Literally three clicks using the browser-based CUPS interface and it worked. not a single thing needed to be installed. Test prints work from Opera, Firefox, OpenOffice, Gimp, KPDF..&lt;br /&gt;&lt;br /&gt;If you're thinking of buying a printer for your desktop, see this page: &lt;a href="http://linuxprinting.org/suggested.html"&gt;http://linuxprinting.org/suggested.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-115276207452254748?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.freesoftwaremagazine.com/articles/printing_ubuntu' title='Insights for a quick and easy Ubuntu printer installation'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/115276207452254748'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/115276207452254748'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2006/07/insights-for-quick-and-easy-ubuntu.html' title='Insights for a quick and easy Ubuntu printer installation'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-115275604700618128</id><published>2006-07-12T21:00:00.000-05:00</published><updated>2006-07-12T21:00:47.250-05:00</updated><title type='text'>Advanced Bash-Scripting Guide</title><content type='html'>An in-depth exploration of the art of shell scripting&lt;br /&gt;&lt;br /&gt;This is the BEST tutorial to learn bash scripting, which in turn is one of the best programming languages out there. I highly recommend it to anyone who uses linux. Bash scripting is at the heart of it all.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-115275604700618128?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.tldp.org/LDP/abs/html/' title='Advanced Bash-Scripting Guide'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/115275604700618128'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/115275604700618128'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2006/07/advanced-bash-scripting-guide.html' title='Advanced Bash-Scripting Guide'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-115275557627698408</id><published>2006-07-12T20:49:00.000-05:00</published><updated>2006-07-12T20:52:57.003-05:00</updated><title type='text'>SSH tricks</title><content type='html'>The article describes in a human language some of the powerful, yet very useful (even for total newbies) capabilities of OpenSSH, such as passwordless login, automatic execution of commands on a remote system or even mounting a remote folder using SSH.&lt;br /&gt;&lt;br /&gt;Three problems with this article:&lt;br /&gt;- Most people use SFTP, not SCP.&lt;br /&gt;- It's easier to tunnel a Samba session (if you really need to) than to install and use SSHFS.&lt;br /&gt;- They didn't mention the "-D" option, which in conjunction with tsocks allows you to tunnel any application through the encrypted connection, whether it has support for SOCKS or not.&lt;br /&gt;&lt;br /&gt;SFTP is perhaps the next step for users that upgraded from FTP access to a hosted web server, but I suspect most ssh users have migrated from the r commands and are using scp in place of rcp.&lt;br /&gt;&lt;br /&gt;Comparison...&lt;br /&gt;&lt;a href="http://winscp.net/eng/docs/protocols#protocol_comparison"&gt;http://winscp.net/eng/docs/protocols#protocol_comparison&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;My favorite tool though is rsync. While I use rsync over ssh, I never understood why ssync wasn't created to do this job...&lt;br /&gt;&lt;br /&gt;SSH is great for tunneling BonJour/DAAP:&lt;br /&gt;&lt;a href="http://www.shokk.com/blog/articles/2006/02/06/getting-ipods-and-itunes-everywhere"&gt;http://www.shokk.com/blog/articles/2006/02/06/getting-ipods-and-itunes-everywhere&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Now, if only there were a light daap client so I could avoid starting up iTunes...&lt;br /&gt;&lt;br /&gt;Ssh is also really neat as part of an ANT script - so you can use all these neatness for your java deployments and automation.&lt;br /&gt;&lt;a href="http://www.jcraft.com/jsch/index.html"&gt;http://www.jcraft.com/jsch/index.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-115275557627698408?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://en.jakilinux.org/apps/ssh-tricks/' title='SSH tricks'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/115275557627698408'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/115275557627698408'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2006/07/ssh-tricks.html' title='SSH tricks'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-113362169157034491</id><published>2005-12-03T08:54:00.000-06:00</published><updated>2005-12-03T08:54:51.610-06:00</updated><title type='text'>Setup the SSH server to use keys for authentication « Raoul’s Land Reloaded!</title><content type='html'>Raoul’s Land Reloaded! has a good tutorial on how to set up an SSH server to use keys for authentication.  Good read and something to save for future reference.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-113362169157034491?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.raoul.shacknet.nu/2005/11/10/ssh-with-keys/' title='Setup the SSH server to use keys for authentication « Raoul’s Land Reloaded!'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/113362169157034491'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/113362169157034491'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2005/12/setup-ssh-server-to-use-keys-for.html' title='Setup the SSH server to use keys for authentication « Raoul’s Land Reloaded!'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-113218977047195720</id><published>2005-11-16T19:09:00.000-06:00</published><updated>2005-11-16T19:09:30.526-06:00</updated><title type='text'>SSH scanning continues, some simple advice</title><content type='html'>The SANS Handler's Diary has a good overview of advice on their site.  In a nutshell they say:&lt;br /&gt;1 Run ssh on a non-standard port&lt;br /&gt;2 Choose good passphrases&lt;br /&gt;3 Monitor your logs&lt;br /&gt;Their updates are well worth the read for anyone who is looking to.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-113218977047195720?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://isc.sans.org/diary.php?storyid=846' title='SSH scanning continues, some simple advice'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/113218977047195720'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/113218977047195720'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2005/11/ssh-scanning-continues-some-simple.html' title='SSH scanning continues, some simple advice'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-113150290930498452</id><published>2005-11-08T20:21:00.000-06:00</published><updated>2005-11-08T20:21:49.303-06:00</updated><title type='text'>ssh tunnel with mysql or other ways of securing port 3306</title><content type='html'>&lt;a href="http://www.webmasterworld.com/forum40/1010.htm"&gt;ssh tunnel with mysql&lt;/a&gt;Another site I need to save and access at a later date&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-113150290930498452?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.webmasterworld.com/forum40/1010.htm' title='ssh tunnel with mysql or other ways of securing port 3306'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/113150290930498452'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/113150290930498452'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2005/11/ssh-tunnel-with-mysql-or-other-ways-of.html' title='ssh tunnel with mysql or other ways of securing port 3306'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-113150270024984143</id><published>2005-11-08T20:18:00.000-06:00</published><updated>2005-11-08T20:18:20.250-06:00</updated><title type='text'>Wicked Cool Shell Script -- by Dave Taylor</title><content type='html'>&lt;a href="http://www.intuitive.com/wicked/wicked-cool-shell-script-library.shtml"&gt;Shell Script Library :: Wicked Cool Shell Scripts: Unix, Linux, Mac OS X, Bash, Bourne Shell, scripting -- by Dave Taylor&lt;/a&gt; I've bought the book and this is an excellent site to go with the book&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-113150270024984143?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.intuitive.com/wicked/wicked-cool-shell-script-library.shtml' title='Wicked Cool Shell Script -- by Dave Taylor'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/113150270024984143'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/113150270024984143'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2005/11/wicked-cool-shell-script-by-dave.html' title='Wicked Cool Shell Script -- by Dave Taylor'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-112432642253657332</id><published>2005-08-17T19:53:00.000-05:00</published><updated>2005-08-17T19:53:42.536-05:00</updated><title type='text'>VNC &amp; SSH</title><content type='html'>&lt;a href="http://jollyblog.squarespace.com/recent1/2005/6/30/vnc-ssh.html"&gt;Passivemode &lt;/a&gt;has a good tutorial on how to install an SSh server onto a Windows machine.  Good job.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-112432642253657332?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://jollyblog.squarespace.com/recent1/2005/6/30/vnc-ssh.html' title='VNC &amp; SSH'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/112432642253657332'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/112432642253657332'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2005/08/vnc-ssh.html' title='VNC &amp; SSH'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-112432629023182218</id><published>2005-08-17T19:51:00.000-05:00</published><updated>2005-08-17T19:51:30.250-05:00</updated><title type='text'>Remote SSH access and SSH tunneling with the WRT54G</title><content type='html'>&lt;a href="http://hetos.de/sshtut.html"&gt;hetos.de&lt;/a&gt; has a good tutorial on how and why you would want to create a SSH tunnel to connect a couple of computers.  The writer goes into some fairly good detail explaining what to to do connect between two systems.  something to keep in mind when trying to set up a connection.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-112432629023182218?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/112432629023182218'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/112432629023182218'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2005/08/remote-ssh-access-and-ssh-tunneling.html' title='Remote SSH access and SSH tunneling with the WRT54G'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-112360636756759510</id><published>2005-08-09T11:52:00.000-05:00</published><updated>2005-08-10T12:35:19.556-05:00</updated><title type='text'>How do I create and use Public Keys with SSH?</title><content type='html'>&lt;a href="http://ask-leo.com"&gt;ask-leo.com&lt;/a&gt; has a series of quick tutorials about how to set up SSH and set up public keys to be used with SSH and the other different utilites that work with SSH. Like SFTP, SecureCRT, and psftp.&lt;br /&gt;&lt;br /&gt;The Ask Leo site seems pretty good overall and worth the time to take a quick look through.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-112360636756759510?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://ask-leo.com/how_do_i_create_and_use_public_keys_with_ssh.html' title='How do I create and use Public Keys with SSH?'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/112360636756759510'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/112360636756759510'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2005/08/how-do-i-create-and-use-public-keys.html' title='How do I create and use Public Keys with SSH?'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-112352484950868874</id><published>2005-08-08T13:14:00.000-05:00</published><updated>2005-08-08T13:14:09.510-05:00</updated><title type='text'>Tech jobs up in July </title><content type='html'>&lt;a href="http://news.com.com/Tech+jobs+up+in+July/2100-1022_3-5820754.html?part=rss&amp;amp;tag=5820754&amp;amp;subj=news"&gt;CNET News.com &lt;/a&gt;carries their monthly strly regarding tech employment.  In it they also reference a Hudson report which stated that the tech emplyment woes seems to have turned the corner last year and is improving steadily.  Not much time to add anything to this today so you'll have to read it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-112352484950868874?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://news.com.com/Tech+jobs+up+in+July/2100-1022_3-5820754.html?part=rss&amp;tag=5820754&amp;subj=news' title='Tech jobs up in July '/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/112352484950868874'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/112352484950868874'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2005/08/tech-jobs-up-in-july.html' title='Tech jobs up in July '/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-112310987203078325</id><published>2005-08-03T17:57:00.000-05:00</published><updated>2005-08-08T11:19:12.420-05:00</updated><title type='text'>CVS Camcorder download alpha - not disposable anymore</title><content type='html'>&lt;a href="http://www.hackaday.com/entry/1234000640052943/"&gt;hackaday.com &lt;/a&gt; has the best review of the hack for the CVS disposable camcorder.  &lt;a href="http://www.makezine.com/blog/archive/2005/08/cvs_camcorder_u.html"&gt;MAKE: &lt;/a&gt;has an overview of the chronology of the hack.  The sourcecode for the software can be found on sourceforge.net.&lt;br /&gt;&lt;br /&gt;I bought one of the camcorders last week to take to a concert with me. One of the things I'll say is that the general video quality is pretty good. The audio from the concert didn't pick up so well though. I think the best use for this camcorder will be to use as an emergency camcorder, for use at parties when you want to get small groups of people together, or to give to children to play with.&lt;br /&gt;Keep in mind these camcorders only work with the light that is available. I tried to record my trip home one night and it didn't record so well. The video from the concert that I took of the ladies walking around came out pretty good. It'll be fun to put together a cable and reuse these camcorders.&lt;br /&gt;&lt;br /&gt;#########################################&lt;br /&gt;MAKE has updated their site with the&lt;a href="http://www.makezine.com/blog/archive/2005/08/how_to_cvs_vide_1.html"&gt; step by step tutorial&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-112310987203078325?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.hackaday.com/entry/1234000640052943/' title='CVS Camcorder download alpha - not disposable anymore'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/112310987203078325'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/112310987203078325'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2005/08/cvs-camcorder-download-alpha-not.html' title='CVS Camcorder download alpha - not disposable anymore'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-112170967470491236</id><published>2005-07-18T13:01:00.000-05:00</published><updated>2005-07-18T13:01:14.703-05:00</updated><title type='text'>Tattle</title><content type='html'>&lt;a href="http://sodaphish.com/files/tattle"&gt;Sodaphish.com &lt;/a&gt;has a nice script that attempts to automatically notify domain authorities of machines in their domain that are actively performing SSH brute-force attacks.  A nice tool to have in your arsenal to protect your network.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-112170967470491236?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://sodaphish.com/files/tattle' title='Tattle'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/112170967470491236'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/112170967470491236'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2005/07/tattle.html' title='Tattle'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-112170938960657591</id><published>2005-07-18T12:56:00.000-05:00</published><updated>2005-07-18T12:56:29.636-05:00</updated><title type='text'>Recent SSH Brute-Force Attacks</title><content type='html'>&lt;a href="http://www.whitedust.net/article/27/Recent%20SSH%20Brute-Force%20Attacks/"&gt;Whitedust &lt;/a&gt;has a good article focusing on the recent rash of  Brute Force attacks.  The attacks haven't been an outbreak, but there has been someone trying to brute force their way into a good number of servers.  The nice thing about this article is the solutions and conclusions that the authors provide.  The solutions can be broken into denying Root Login, audit the logs for which names are beign used by the hackers, tracking down the domain authority from which an attack is being launched from, and finally changing the port number that someone uses.  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-112170938960657591?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.whitedust.net/article/27/Recent%20SSH%20Brute-Force%20Attacks/' title='Recent SSH Brute-Force Attacks'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/112170938960657591'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/112170938960657591'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2005/07/recent-ssh-brute-force-attacks.html' title='Recent SSH Brute-Force Attacks'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-112154224738387618</id><published>2005-07-16T14:30:00.000-05:00</published><updated>2005-07-16T14:30:47.433-05:00</updated><title type='text'>How to install OpenSSH sshd server and sftp server on a Windows 2000 or Windows XP or Windows Server 2003</title><content type='html'>&lt;a href="http://pigtail.net/LRP/printsrv/cygwin-sshd.html"&gt;How to install OpenSSH sshd server and sftp server on a Windows 2000 or Windows XP or Windows Server 2003. &lt;/a&gt;This looks like a pretty good step by step of how to install SSH on a Windows box and a Linux box.  I haven't had much time to go through everything but I do want to mark this site to come back to at a later time.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-112154224738387618?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://pigtail.net/LRP/printsrv/cygwin-sshd.html' title='How to install OpenSSH sshd server and sftp server on a Windows 2000 or Windows XP or Windows Server 2003'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/112154224738387618'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/112154224738387618'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2005/07/how-to-install-openssh-sshd-server-and.html' title='How to install OpenSSH sshd server and sftp server on a Windows 2000 or Windows XP or Windows Server 2003'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-112112164750299161</id><published>2005-07-11T17:40:00.000-05:00</published><updated>2005-07-11T17:40:47.526-05:00</updated><title type='text'>WRT54G SSH tunneling tutorial</title><content type='html'>&lt;a href="http://hetos.de/sshtut.html"&gt;hetos.de &lt;/a&gt;is carring a good basic tutorial for beginners to SSH tunneling locally and remotely using WRT54GS open source firmware. Putty/puttygen/pagent is used as client in demos and Sveasoft's Alchemy firmware config page is featured. &lt;br /&gt;&lt;br /&gt;Some items to take note of are the Advantages and Limitations section.  In the various SSH articles I've seen I don't remember anyone talking about the different limitations of SSH.  These limitations seem to be focused on the limitations of SSH tunneling and not so much as general limitations.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-112112164750299161?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://hetos.de/sshtut.html' title='WRT54G SSH tunneling tutorial'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/112112164750299161'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/112112164750299161'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2005/07/wrt54g-ssh-tunneling-tutorial.html' title='WRT54G SSH tunneling tutorial'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-111988869107626109</id><published>2005-06-27T11:11:00.000-05:00</published><updated>2005-06-27T11:11:31.116-05:00</updated><title type='text'>ssh_blocker</title><content type='html'>&lt;a href="http://blackshell.usebox.net/pub/shell/ssh_blocker.README"&gt;Another  SSH Server Attack Denial Tool &lt;/a&gt;can be found on the blackshell.usebox.net site.  I talked about similar tools with the &lt;a href="http://kevinuxtips.blogspot.com/2005/06/denyhosts-ssh-server-attack-denial.html"&gt;DenyHosts application&lt;/a&gt;.  The ssh_blocker is a shell script with similar functionality as the DenyHosts application, but written  for OpenBSD.  There is also a feature to block IP addresses from someone who is not authorized to be logging into the server.&lt;br /&gt;&lt;br /&gt;To return to the main directory for the &lt;a href="http://kevinuxtips.blogspot.com/2004/07/ssh-tutorial.html"&gt;SSH tutorials&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-111988869107626109?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://blackshell.usebox.net/pub/shell/ssh_blocker.README' title='ssh_blocker'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/111988869107626109'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/111988869107626109'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2005/06/sshblocker.html' title='ssh_blocker'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-111954071727090466</id><published>2005-06-23T10:31:00.000-05:00</published><updated>2005-06-23T10:31:57.303-05:00</updated><title type='text'>Using openSSH to Securely Access Remote Systems</title><content type='html'>&lt;a href="http://www.novell.com/coolsolutions/feature/15314.html"&gt;NOVELL: Cool Solutions &lt;/a&gt;has a basic tutorial on setting up and using SSH.  If you want a more detailed overview and look at the different option I would look at the &lt;a href="http://kevinuxtips.blogspot.com/2004/07/ssh-tutorial.html"&gt;SSH Tutorial&lt;/a&gt; I've been building throughout this site.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-111954071727090466?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.novell.com/coolsolutions/feature/15314.html' title='Using openSSH to Securely Access Remote Systems'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/111954071727090466'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/111954071727090466'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2005/06/using-openssh-to-securely-access.html' title='Using openSSH to Securely Access Remote Systems'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-111810113210938472</id><published>2005-06-06T18:38:00.000-05:00</published><updated>2005-06-06T18:38:52.156-05:00</updated><title type='text'>Security-SSH Tunnelling In Hotspots For Privacy</title><content type='html'>&lt;a href="http://itt.theintegrity.net/pmwiki.php?n=ITT.Security-SSHTunnellingInHotspotsForPrivacy"&gt;ITT Knowledgebase &lt;/a&gt;has a good article on how to use SSH from a wifi hotspot for security.  KevinDevin has ran a very good site for a long time and his ITT Knowledgebase is an excellent resource for any one involved in IT.  A good place to stop by and go through when you have some free time.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-111810113210938472?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://itt.theintegrity.net/pmwiki.php?n=ITT.Security-SSHTunnellingInHotspotsForPrivacy' title='Security-SSH Tunnelling In Hotspots For Privacy'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/111810113210938472'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/111810113210938472'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2005/06/security-ssh-tunnelling-in-hotspots.html' title='Security-SSH Tunnelling In Hotspots For Privacy'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-111808301178866533</id><published>2005-06-06T13:36:00.000-05:00</published><updated>2005-06-06T13:36:51.816-05:00</updated><title type='text'>DenyHosts, an SSH Server Attack Denial Tool</title><content type='html'>&lt;a href="http://www.linuxvoodoo.com/news/article.php?sid=3274"&gt;Linux Voodoo &lt;/a&gt;has a nice tutorial on a new application called DenyHosts.  The nice part of this application is it gives admins more control on what they want done if a failed SSH log in happens.  One of the weak points of SSH is it doesn't limit the number of failed log ons taht can occur.  This opens the SSH utility to a brute force attack.  DenyHosts helps fix this problem.&lt;br /&gt;&lt;br /&gt;The stable version of DenyHosts currently available is 0.60.  some of the system requiremetns are to have python ver 2.1 or greater installed on the system, and ensure sshd is compiled with tcp_wrappers support.  &lt;br /&gt;&lt;br /&gt;Once DenyHosts has been installed there are a number of options available when a failed SSH log on occurs.  Some of the options are what to do when a failed log on occurs, how many failed log ons must occur before any actions are taken, information that will be collected in case of a failed log on, and  where to send the log to when a failed log on occurs.&lt;br /&gt;&lt;br /&gt;This looks like a good utility to use on any system that you have to remotely log into.&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-111808301178866533?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.linuxvoodoo.com/news/article.php?sid=3274' title='DenyHosts, an SSH Server Attack Denial Tool'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/111808301178866533'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/111808301178866533'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2005/06/denyhosts-ssh-server-attack-denial.html' title='DenyHosts, an SSH Server Attack Denial Tool'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-111772774211738746</id><published>2005-06-02T10:55:00.000-05:00</published><updated>2005-06-02T10:55:42.116-05:00</updated><title type='text'> X Factor - understanding the X window system</title><content type='html'>&lt;a href="http://www.tectonic.co.za/view.php?id=465"&gt;Tectonic &lt;/a&gt; has a good overview of the X window system within Linux.  Much of what I've read here I've seen covered in other LPI material for preparing for the LPI exam.  good material.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-111772774211738746?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.tectonic.co.za/view.php?id=465' title=' X Factor - understanding the X window system'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/111772774211738746'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/111772774211738746'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2005/06/x-factor-understanding-x-window-system.html' title=' X Factor - understanding the X window system'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-111772758653692195</id><published>2005-06-02T10:53:00.000-05:00</published><updated>2005-06-02T10:53:06.570-05:00</updated><title type='text'>Everything you ever wanted to know about APT </title><content type='html'>&lt;a href="http://opensource.weblogsinc.com/entry/1234000287044352/"&gt;The Open Source Weblog &lt;/a&gt;is carrying an article that links to three other articles which essentially cover everything about the Debian package manager - APT.  The best one is the last article which focuses on optimizing Debian packages for your specific system.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-111772758653692195?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://opensource.weblogsinc.com/entry/1234000287044352/' title='Everything you ever wanted to know about APT '/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/111772758653692195'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/111772758653692195'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2005/06/everything-you-ever-wanted-to-know.html' title='Everything you ever wanted to know about APT '/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-111756660351243395</id><published>2005-05-31T14:09:00.000-05:00</published><updated>2005-05-31T14:10:03.516-05:00</updated><title type='text'>A Quick and Dirty Intro to Nessus</title><content type='html'>&lt;a href="http://www.irongeek.com/i.php?page=videos/nessus"&gt;Iron Geek &lt;/a&gt;has a flash tutorial covering the basics of Nessus. I've seen very little on the interent regarding the use of Nessus and this appears to be a good tutorial.&lt;br /&gt;&lt;br /&gt;Iron geek also has another tutorial called "&lt;a href="http://www.irongeek.com/i.php?page=videos/cainvoip1"&gt;Sniffing VoIP using Cain&lt;/a&gt;"&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-111756660351243395?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/111756660351243395'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/111756660351243395'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2005/05/quick-and-dirty-intro-to-nessus.html' title='A Quick and Dirty Intro to Nessus'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-111688551145994983</id><published>2005-05-23T16:58:00.000-05:00</published><updated>2005-06-08T19:11:49.953-05:00</updated><title type='text'>Multi-level 'su' access.</title><content type='html'>&lt;a href="http://www.corehackers.com/core/index.php?option=com_content&amp;task=view&amp;amp;amp;id=723&amp;amp;Itemid=88"&gt;COREHACKERS.COM &lt;/a&gt;has a very good article on how to configure mulitple levels of su access. From what the article says this works on slackware and other non-PAM distributions.&lt;br /&gt;&lt;br /&gt;This option brings up a number of different opportunities that would be available for administering systems. The site overall is one that is well worth the time to go through once in a while to see what is new that they have written about.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-111688551145994983?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.corehackers.com/core/index.php?option=com_content&amp;task=view&amp;id=723&amp;Itemid=88' title='Multi-level &apos;su&apos; access.'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/111688551145994983'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/111688551145994983'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2005/05/multi-level-su-access.html' title='Multi-level &apos;su&apos; access.'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-111668641612803839</id><published>2005-05-21T09:40:00.000-05:00</published><updated>2005-05-21T09:40:16.176-05:00</updated><title type='text'>Mobile SSH @ PhoneMag.com</title><content type='html'>&lt;a href="http://www.phonemag.com/index.php/weblog/read_more/mobile_ssh/"&gt;PhoneMag.com &lt;/a&gt;has a quick post about a program that Information Craft in Japan has created to set up an SSH connection form a cell phone to a server.&lt;br /&gt;&lt;br /&gt;I couldn't find anything from a company called Infromation Craft, but I did find a download from a company called  &lt;a href="http://www.idokorro.com/imssh6800.html"&gt;Idokorro Mobile&lt;/a&gt;.  There is also a &lt;a href="http://www.tucows.com/preview/372016"&gt;version 2.0&lt;/a&gt; for the &lt;a href="http://www.rimroad.com/software/rim1/Idokorro-Mobile-SSH-for-BlackBerry-2003-10-13-rim-rim1.html"&gt;Blackberry&lt;/a&gt; that is available.&lt;br /&gt;&lt;br /&gt;I haven't had an opportunity to use this application but it does open up some interesting ideas, along with other opportunities that might come along with encrypting a conversation through VoIP.  If someone can encrypt a data connection form a cell phone to a computer system, then why not from one cellular device to another.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-111668641612803839?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.phonemag.com/index.php/weblog/read_more/mobile_ssh/' title='Mobile SSH @ PhoneMag.com'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/111668641612803839'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/111668641612803839'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2005/05/mobile-ssh-phonemagcom.html' title='Mobile SSH @ PhoneMag.com'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-111575163024809497</id><published>2005-05-10T14:00:00.000-05:00</published><updated>2005-05-16T13:19:51.843-05:00</updated><title type='text'>Protecting SSH using known_hosts Hashing</title><content type='html'>&lt;a href="http://nms.csail.mit.edu/projects/ssh/"&gt;NMS @ MIT CSAIL: &lt;/a&gt; has a good article about why hackers want to target a known_hosts file when they first hack into a system. Through an initial hack they can gain a secure access to other systems that they wouldn't normally have to do all of the work to hack into it.&lt;br /&gt;&lt;br /&gt;The basic premis of the fix is to encrypt the known-hosts file either through a patch provided by the site or to upgrade to OpenSSH ver. 4.0. Some good things to remember when dealing with SSH.&lt;br /&gt;&lt;br /&gt;################################&lt;br /&gt;UPDATE&lt;br /&gt;&lt;a href="http://www.schneier.com/blog/archives/2005/05/the_potential_f.html"&gt;Bruce Schneier&lt;/a&gt; covers some of the implications from this type of a hack and &lt;a href="http://www.techworld.com/security/news/index.cfm?NewsID=3668"&gt;Techworld&lt;/a&gt; also carries an article looking at similar ideas.  The Techworld article covers some of the ahcks which have used this kind of attack,  the most prominent has beent eh theft of Cisco source code along wiht hacks into  major universities, corporations, national laboratories, super-computing centres and military institutions.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-111575163024809497?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://nms.csail.mit.edu/projects/ssh/' title='Protecting SSH using known_hosts Hashing'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/111575163024809497'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/111575163024809497'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2005/05/protecting-ssh-using-knownhosts.html' title='Protecting SSH using known_hosts Hashing'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-111428037340983807</id><published>2005-04-23T12:58:00.000-05:00</published><updated>2005-04-23T13:21:44.890-05:00</updated><title type='text'>Review of the Slashdot discussion of CUPS</title><content type='html'>&lt;p class="MsoNormal" style="margin-bottom: 12pt;"&gt;The following is a review of a &lt;a href="http://ask.slashdot.org/article.pl?sid=05/04/19/1849215&amp;from=rss"&gt;discussion&lt;/a&gt; which took place on the slashdot forum. I've summarized some of the postings into what I think is useful for working with CUPS.&lt;br /&gt;&lt;br /&gt;&lt;i&gt;I've been struggling with setting up a new laptop and getting it to talk to my print server, using Fedora Core 3, and nothing seems to have changed -- the admin items for adding a printer are exactly as Eric described them back then -- unclear, confusing, and no where near as friendly as their Win* equivalents. Definitely not something I'd expect my Aunt Ethel to be able to figure out. What's going on here?&lt;br /&gt;&lt;br /&gt;For those who are still frustrated with the CUPS GUI, how would you improve it?&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;By using &lt;a href="http://www.apple.com/macosx/features/printing/" title="apple.com" rel="nofollow"&gt;Mac OS X's interface to CUPS.&lt;/a&gt; [apple.com]&lt;/p&gt;   &lt;p class="MsoNormal" style="margin-bottom: 12pt;"&gt;The hardest part of setting up a printer using CUPS under Debian was knowing that I had to point my browser at &lt;a href="http://localhost:631/" title="localhost"&gt;http://localhost:631/&lt;/a&gt; [localhost]. After that, what's so hard about clicking on Printers, Add Printer, then select the make and model?&lt;/p&gt;   &lt;p class="MsoNormal" style="margin-bottom: 12pt;"&gt;Mandr{ake,iva}'s printer admin thingie actually runs nmap to sniff your network and find all printers exported by all machines using any protocols it knows how to talk. It's pretty amazing, but it took 10 minutes or more to run on the building network here, during which time the GUI didn't repaint and appeared hung.&lt;br /&gt;&lt;br /&gt;I would have killed it in disgust, thinking it really was hung, but first I did a "top" to see if I could tell what it was doing. Then my jaw dropped when I saw it running nmap and starting and stopping many other processes to try to connect to the open ports it was finding, so I let it finish and was fairly impressed. It really needs a progress bar, or better, to have printers pop up in the GUI as they are found.&lt;/p&gt;   &lt;p class="MsoNormal" style="margin-bottom: 12pt;"&gt;Fedora's printer config dialog sucks -&gt; Linux printing status: unfriendly.&lt;br /&gt;&lt;br /&gt;I'm partial to the &lt;a href="http://printing.kde.org/screenshots/" title="kde.org"&gt;KDEPrint system&lt;/a&gt; [kde.org], and wish that it was half as easy to configure network printers in Windows as it is through the nice KDE GUI.&lt;/p&gt; &lt;p class="MsoNormal" style="margin-bottom: 12pt;"&gt;Not long ago, &lt;a href="http://books.slashdot.org/article.pl?sid=05/04/19/1947233&amp;tid=190&amp;amp;tid=6&amp;tid=106" title="slashdot.org"&gt;there was a Slashdot review&lt;/a&gt; [slashdot.org] of a certain &lt;a href="http://www.oreilly.com/catalog/linuxckbk" title="oreilly.com"&gt;book&lt;/a&gt; [oreilly.com], which included a chapter on CUPS that can be &lt;a href="http://www.oreilly.com/catalog/linuxckbk/chapter/ch14.pdf" title="oreilly.com"&gt;downloaded for free&lt;/a&gt; [oreilly.com] (can't beat that price!).  It seems to demystify the entire process of administering CUPS.&lt;/p&gt; &lt;p class="MsoNormal" style="margin-bottom: 12pt;"&gt;The reason some printers work on OS X and not on Linux is because CUPS allows running binary print filters.&lt;br /&gt;&lt;br /&gt;Many printer manufacturers use Carbon filters for OS X. Game over.&lt;br /&gt;&lt;br /&gt;CUPS is a full featured RIP and postscript processor. It does support arbitrary binary printing, however, and this is exactly what happens when you print to cups from windows via samba. Please see &lt;a href="http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/images/a_small.png" title="samba.org"&gt;the cups documentation&lt;/a&gt; [samba.org]. &lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;    &lt;p&gt;If cups is just a "dumb spooler", explain lease how the heck it can print pdf, jpeg, hp-gl, tiff, and hundreds of other formats directly to your postscript printer? &lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;p&gt;If you don't have a postscript printer, yes, you must use a ppd that calls a intermediary driver (e.g., hpijs) that cups just passes the job to. &lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;   &lt;p class="MsoNormal"&gt;forget the CUPS application tools, user http://localhost:631. The www interface at least works all the time.&lt;br /&gt;&lt;br /&gt;&lt;span style=""&gt; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-111428037340983807?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/111428037340983807'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/111428037340983807'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2005/04/review-of-slashdot-discussion-of-cups.html' title='Review of the Slashdot discussion of CUPS'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-111403764264513887</id><published>2005-04-20T17:54:00.000-05:00</published><updated>2005-04-20T17:54:02.646-05:00</updated><title type='text'>Why Aren't More Distros Becoming LSB Certified?</title><content type='html'>&lt;a href="http://linux.slashdot.org/article.pl?sid=05/04/19/1836234&amp;amp;from=rss"&gt;Slashdot &lt;/a&gt; has a good discussion on wether Linux needs a standards base or not and what the costs/benefits are.  Good discussion.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-111403764264513887?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://linux.slashdot.org/article.pl?sid=05/04/19/1836234&amp;from=rss' title='Why Aren&apos;t More Distros Becoming LSB Certified?'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/111403764264513887'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/111403764264513887'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2005/04/why-arent-more-distros-becoming-lsb.html' title='Why Aren&apos;t More Distros Becoming LSB Certified?'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-111385005338466842</id><published>2005-04-18T12:58:00.000-05:00</published><updated>2005-04-18T14:00:56.880-05:00</updated><title type='text'>setting up DNS Server Resolution  &amp; /etc/resolv.conf</title><content type='html'>With &lt;a href="http://www.internetweek.com/showArticle.jhtml?articleID=160900791"&gt;Comcast's&lt;/a&gt; &lt;a href="http://blogs.pcworld.com/techlog/archives/000610.html"&gt;recent&lt;/a&gt; &lt;a href="http://www.businessweek.com/ap/financialnews/D89FF3NO0.htm?campaign_id=apn_tech_down"&gt;problems&lt;/a&gt; with their DNS servers and the spat of DNS server poisonings going around, I thought it would be a good idea to cover how to configure DNS servers within Linux and which files to configure.&lt;br /&gt;&lt;br /&gt;DNS servers are what allow normal people to find web pages by typing in website names and having those anmes associated with an actual server located somewhere else in teh world.&lt;br /&gt;&lt;br /&gt;The main file within Linus used for DNS resolution is the /etc/resolv.conf file. Servers that are checked for DNS settings are listed in this file. The format is similar to the following:&lt;br /&gt;        nameserver 208.164.186.1&lt;br /&gt;        nameserver 208.164.186.2&lt;br /&gt;Each nameserver will be checked in the order they are listed here. The nameserver entry tells the IP address of the host to use for DNS queries. If it is set to 127.0.0.1 (which is the default) then the local name daemon is used that may use the /etc/hosts database to translate host names. The default &lt;span style="font-style: italic;"&gt;nonamed&lt;/span&gt; name server  can't look beyond the local network.&lt;br /&gt;&lt;br /&gt;Here is a &lt;a href="http://www.broadbandreports.com/forum/remark,13154925"&gt;listing of DNS servers&lt;/a&gt; which you can plug in whenever you might be having problems:Some DNS servers I reccomend:&lt;br /&gt;4.2.2.1             4.2.2.2                 4.2.2.3&lt;br /&gt;4.2.2.4             4.2.2.5                 4.2.2.6&lt;br /&gt;These are all DNS server addresses that resolve differently across the country.&lt;br /&gt;&lt;br /&gt;dadkins See Profile adds these DNS servers:&lt;br /&gt;SpeakEasy Nameservers&lt;br /&gt;66.93.87.2             216.231.41.2        216.254.95.2&lt;br /&gt;64.81.45.2        64.81.111.2                    64.81.127.2&lt;br /&gt;64.81.79.2             64.81.159.2                   66.92.64.2&lt;br /&gt;66.92.224.2         66.92.159.2                   64.81.79.2&lt;br /&gt;64.81.159.2          64.81.127.2                    64.81.45.2&lt;br /&gt;216.27.175.2       66.92.159.2                    66.93.87.2&lt;br /&gt;&lt;br /&gt;ORSC Public Access DNS Nameservers&lt;br /&gt;199.166.24.253         199.166.27.253         199.166.28.10&lt;br /&gt;199.166.29.3              199.166.31.3             195.117.6.25&lt;br /&gt;204.57.55.100&lt;br /&gt;&lt;br /&gt;Sprintlink General DNS&lt;br /&gt;204.117.214.10         199.2.252.10             204.97.212.10&lt;br /&gt;&lt;br /&gt;Cisco&lt;br /&gt;128.107.241.185             192.135.250.69&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-111385005338466842?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/111385005338466842'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/111385005338466842'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2005/04/setting-up-dns-server-resolution.html' title='setting up DNS Server Resolution  &amp; /etc/resolv.conf'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-110912712493902365</id><published>2005-02-22T20:51:00.000-06:00</published><updated>2005-02-22T20:52:04.940-06:00</updated><title type='text'>SSH Security Warnings.</title><content type='html'>Over at the &lt;a href="http://uadmin.blogspot.com/2005/02/security-warnings.html"&gt;Unix Admin Corner &lt;/a&gt;they have a quick tip on how to add an SSH MoTD when someone logs into a remote sytstem.  Usually these messages are good to pass along warnings for someone trying to log into one of your remote systems.&lt;br /&gt;&lt;br /&gt;The Main directory for the SSH tutorials can be found &lt;a href="http://kevinuxtips.blogspot.com/2004/07/ssh-tutorial.html"&gt;here&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-110912712493902365?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/110912712493902365'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/110912712493902365'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2005/02/ssh-security-warnings.html' title='SSH Security Warnings.'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-110747354665985761</id><published>2005-02-03T17:31:00.000-06:00</published><updated>2005-02-08T20:49:36.506-06:00</updated><title type='text'>Disk Quotas</title><content type='html'>Disk Quotas can be used for several Administrative tasks.  The main goal on implementing quotas is to prevent a user, application or log file from overwhelming the system or taking up more space than whet they are allowed to use.  Disk quotas are implemented on a per-file system basis and can be set at the user level or the group level.&lt;br /&gt;&lt;br /&gt;There are three concepts to keep in mind when dealing with quotas; they are Hard Limits, Soft Limits, and Grace Periods.  A Hard Limit is the maximum amount of used space that can be used.  Once this limit has been reached, nothing else can be saved to this disk space.  A Soft Limit is similar to a Hard Limit except that the user can still save files to the disk.  Usually Administrators will set a soft limit to give the user warnings about reaching a limit on their use and then use a hard limit to put a maximum amount of space that the user or group can use.  The final concept is Grace Period.  A Grace Period is the time during which a soft Limit can be exceeded.  This value can be expressed in seconds, minutes, hours, days, weeks, or months.&lt;br /&gt;&lt;br /&gt;There are four main steps to follow when implementing quotas.  They are edit /etc/fstab, remount the file systems, run quotacheck, assign quotas.&lt;br /&gt;&lt;br /&gt;The first step is to open /etc/fstab in a text editor.  There are six fields in the /etc/fstab and the field we are interested in is the fourth field which describes the different mount options.  This field is formatted as a comma separated list of options.  For our use today we are interested in adding the options usrquota or grpquota.  &lt;br /&gt;&lt;br /&gt;LABEL=/        /                   ext3                 defaults                               1 1 &lt;br /&gt;LABEL=/boot /boot            ext3                 defaults                               1 2 &lt;br /&gt;none              /dev/pts        devpts             gid=5,mode=620                 0 0 &lt;br /&gt;LABEL=/home/home         ext3                 defaults,usrquota,grpquota 1 2&lt;br /&gt;none              /proc             proc                defaults                                0 0 &lt;br /&gt;none              /dev/shm       tmpfs              defaults                                0 0 &lt;br /&gt;/dev/hda3      swap             swap               defaults                                0 0 &lt;br /&gt;/dev/cdrom    /mnt/cdrom   udf,iso9660     noauto,owner,kudzu,ro        0 0 &lt;br /&gt;/dev/fd0         /mnt/floppy    auto                noauto,owner,kudzu             0 0&lt;br /&gt;&lt;br /&gt;If you want quotas to be implemented on only a certain area such as the home directory there has to be a listing for the home directory within /etc/fstab.  I’ve shown in the listing above how the /etc/fstab should look after it has been modified.  The next step is the save the changes and exit the text editor.  Also, the directory you are going to add quotas onto should already be identified as a block device within the system.  If it isn't then open up disk druid and repartition your hard drive to set up the /home directory as a separate partition.&lt;br /&gt;&lt;br /&gt;The second step in setting up quotas is to remount the file systems which were changed when you edited /etc/fstab.  You can either remount the file systems which were changed or reboot the system.&lt;br /&gt;&lt;br /&gt;The third step is to run the quotacheck command.  When quotacheck is ran it will examine each file system, build a table of current disk usage, and compare this table against that recorded in the disk quota file for the file system.  By default user and group quotas are checked.  Quotacheck checks the system for two files called .quota.user and/or .quota.group located at root’s filesystem.  If quotacheck doesn’t find the files it will create them automatically.&lt;br /&gt;&lt;br /&gt;The quotacheck command to be used is quotacheck –uagv.  The option – u checks for user disk quota information, -a checks for all quota-enabled, locally-mounted file systems, -g checks for group disk quota information, and –v displays the information verbosely. &lt;br /&gt;&lt;br /&gt;Once quotacheck has finished it will display the results in a table which will detail the quotas enabled for each user and group.  Now we can start assigning quotas.&lt;br /&gt;&lt;br /&gt;The final step is to assign quotas.  The edquota program edits both user and group quotas.  The edquota program uses a text editor to make changes.  Any setting which is left at 0 implies there is no limit for that value or no quota for that setting.  The command to use is edquota –u &lt;username&gt; &lt;br /&gt;Disk quotas for user Frank (uid 502):&lt;br /&gt;  Filesystem  blocks       soft       hard     inodes     soft     hard&lt;br /&gt;  /dev/hda3       24          0          0          7        0        0&lt;br /&gt;Blocks are the amount of space in 1K blocks the user is currently using and inodes are the number of files the user is currently using.  The soft and hard limits were explained earlier.  Save and exit the file and your quotas are installed.&lt;br /&gt;&lt;br /&gt;To monitor quotas you can use the repquota command which reports quota information for specified file systems, users or groups.  Once again there are four options a user can use and they are the same ones as used for the quotacheck command.&lt;br /&gt;&lt;br /&gt;Running the command quotacheck on a regular basis is a good administrative tool to ensure the tables are kept current.  Adding the command quotacheck –uagv to a weekly cron file is the best option here.  &lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-110747354665985761?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/110747354665985761'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/110747354665985761'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2005/02/disk-quotas.html' title='Disk Quotas'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-110626846433036002</id><published>2005-01-20T18:47:00.000-06:00</published><updated>2005-01-28T21:06:18.343-06:00</updated><title type='text'>Knowing Knoppix</title><content type='html'>&lt;a href="http://www.pjls16812.pwp.blueyonder.co.uk/knowing-knoppix/index.html"&gt;Knowing Knoppix&lt;/a&gt; Here is a free ebook on how to use Knoppix. If you are unaware of the knoppix version of Linux it is a bootable version of Linux which will boot your computer and run the Operating System straight from the cd, using only the cd and the other installed components on your computer. This is a great way to learn how to use Linux. The ebook is about 134 pages and it also includes a section on how to use Knoppix for Windows disaster recovery.&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-110626846433036002?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.pjls16812.pwp.blueyonder.co.uk/knowing-knoppix/index.html' title='Knowing Knoppix'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/110626846433036002'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/110626846433036002'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2005/01/knowing-knoppix.html' title='Knowing Knoppix'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-110618449547009586</id><published>2005-01-19T19:28:00.000-06:00</published><updated>2005-01-19T19:28:15.470-06:00</updated><title type='text'>How NERDY are you?</title><content type='html'>&lt;a href="http://www.wxplotter.com/ft_nq.php?im"&gt;How NERDY are you?&lt;/a&gt; I just had to post this quiz to see what anybody else might think.&lt;br /&gt;&lt;br /&gt;Also I've been rethinking the basic premise for this blog and I think I've come up with some ideas which might help me bring new content here on a regular basis.  I'll let you know in the coming weeks what I decide.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-110618449547009586?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.wxplotter.com/ft_nq.php?im' title='How NERDY are you?'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/110618449547009586'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/110618449547009586'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2005/01/how-nerdy-are-you.html' title='How NERDY are you?'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-110565236660525344</id><published>2005-01-13T15:39:00.000-06:00</published><updated>2005-01-13T17:23:55.846-06:00</updated><title type='text'>Linux Security</title><content type='html'>&lt;a href="http://www.puschitz.com/SecuringLinux.shtml"&gt;Securing Linux&lt;/a&gt; I've posted a variety of tips that people can use for securing their Linux systems in the past.  Here is one of several good articles that Werner Puschitz has written in his series on how to secure a Linux system running Oracle on it.  Obviously most people don't run Oracle on their home systems but his points are still valid for any Linux system.&lt;br /&gt;&lt;br /&gt;When there is some spare time I want to go through his other articles concerning Oracle and Linux.  He has a good site overall for working with both Linux and Oracle.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-110565236660525344?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.puschitz.com/SecuringLinux.shtml' title='Linux Security'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/110565236660525344'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/110565236660525344'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2005/01/linux-security.html' title='Linux Security'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-110488065639048731</id><published>2005-01-04T17:17:00.000-06:00</published><updated>2005-01-04T17:17:36.390-06:00</updated><title type='text'>Customizing the Motorola Vxxx - A Guide to Hex Editing</title><content type='html'>&lt;a href="http://xlr8.us/hofo/"&gt;Customizing the Motorola Vxxx - A Guide to Hex Editing&lt;/a&gt;  Sorry for anyone who thinks this is a Linux tip, but it aint!!  It is a cool site which gives descriptions on how to hack into a Motorola phone, along with the software to make changes.&lt;br /&gt;&lt;br /&gt;One possible use for this might be to open the bluetooth connection in Verizon phones to upload songs from a laptop.  I still need to look further into this.&lt;br /&gt;&lt;br /&gt;Fortunately/Unfortunately I left my cell phone out side over the weekend and with the dew I'm sure I only have a limited time for it to still keep working.  A good idea is to try some of these tricks after I've bought my replacement phone.  I'm sure T-Mobile will enjoy me voiding my warranty with them.  Come to think of it the warranty ended about a year ago on this phone anyway.&lt;br /&gt;&lt;br /&gt;I'll post my results when I finally hack into my cell phone.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-110488065639048731?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/110488065639048731'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/110488065639048731'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2005/01/customizing-motorola-vxxx-guide-to-hex.html' title='Customizing the Motorola Vxxx - A Guide to Hex Editing'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-110323677285690630</id><published>2004-12-16T16:36:00.000-06:00</published><updated>2004-12-16T16:39:32.856-06:00</updated><title type='text'>Short Break</title><content type='html'>I'm taking a short break from this weblog to make time for some other things, i.e. writing some articles, finishing some Finals and getting ready for school.  Hopefully after the New Year I can start up some other topics I want to cover in this weblog, like configuring a kernel and init scripts.&lt;br /&gt;&lt;br /&gt;So until next year have a Merry christmas and a Happy New Year.&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-110323677285690630?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/110323677285690630'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/110323677285690630'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2004/12/short-break.html' title='Short Break'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-110080408870176106</id><published>2004-11-18T13:39:00.000-06:00</published><updated>2004-11-18T12:54:48.700-06:00</updated><title type='text'>Services which should be turned off</title><content type='html'>Earlier in this blog I talked about services which should be turned off unless they were absolutely necessay for a system to run. The reason for turning these services off is that the less services that are running on a system means the less services that a hacker can use to break into your system. Linux is suppose to be a secure system and it's up to the administrator to keep it that way. Some of the services which should be shut off are as follows:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;telenet, rlogin, rsh &amp; rcp:&lt;/span&gt; these services allow a user to log in remotely and perform commands on the system from a remote location. The main problem with these services is the fact that they are not encrypted. Anyone can view a remote login session and see exactly what an administrator is doing as he is doing it. The more secure option is to use the SSH utilities.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;FTP:&lt;/span&gt; Like the above services FTP is not an encrypted protocol.  If FTP has to be ran on a system it is best to set the directory up as a separate partition.  This way any access someone might have is to that particular partition and no further.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;IMAP and POP:&lt;/span&gt; If the system is not set up to be an email server these services need to be shutdown.  Once again running these services when you don't need to is offering up access to your system when you don't need to. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The chkconfig utility can be used to turn these services off.  If you want ot ensure they stay off after a reboot make sure you comment out the lines in the start up scripts that turn these services on.&lt;br /&gt;The key, as always, is to shut down any unneeded services on your system. &lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-110080408870176106?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/110080408870176106'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/110080408870176106'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2004/11/services-which-should-be-turned-off.html' title='Services which should be turned off'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-110055497800144869</id><published>2004-11-15T15:42:00.000-06:00</published><updated>2004-11-15T15:42:58.003-06:00</updated><title type='text'>Introducing Novell Linux Desktop</title><content type='html'>&lt;a href="http://register.novell.com/listings/?id=17"&gt;Introducing Novell Linux Desktop&lt;/a&gt; Free Web Seminar which covers Novell's new desktop and allows attendees to "learn more about a solution that brings Linux security, performance, and freedom to business desktops."  It will be interesting to see which new products Novell will be bringing out for users and corporations next year.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-110055497800144869?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/110055497800144869'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/110055497800144869'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2004/11/introducing-novell-linux-desktop.html' title='Introducing Novell Linux Desktop'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-110001252959560737</id><published>2004-11-09T08:33:00.000-06:00</published><updated>2004-11-09T09:03:48.796-06:00</updated><title type='text'>umask settings for users</title><content type='html'>Umask defines the default settings for user files on a system, the setting is stored in the standard shell configuration files (.profile, .bashrc, etc). The umask is used by the open system call to set initial file permissions on a newly-created file.&lt;br /&gt;&lt;br /&gt;By default, the cp and ftp commands create files using the open system call. However, if a file of the same name already exists, the permissions of the existing file will be preserved (because no new file was created). The tar command, however, is a bit different. When extracting files, tar uses the permissions of each file (as the file was stored) as the base permission upon which to apply the umask.&lt;br /&gt;&lt;br /&gt;The essential point here is that strict user settings should be used when setting up the umask for users. The strictest is setting the umask at 077. this means that files and directories created by users will not be readable by any other user on the system. The user still has the ability to change their umask to something which may be more apporpriate for them or changing the file permissions on the file after the fact with the chmod command.&lt;br /&gt;&lt;br /&gt;The point still stands Linux is suppose to be a secure system, the best way to keep it secure is to ensure files that aren't suppose to be shared aren't shared across the network.&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-110001252959560737?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/110001252959560737'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/110001252959560737'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2004/11/umask-settings-for-users.html' title='umask settings for users'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-109965467303774989</id><published>2004-11-05T05:25:00.000-06:00</published><updated>2004-11-05T05:43:07.850-06:00</updated><title type='text'>SSH Configuration Tips from SANS - Internet Storm Center</title><content type='html'>The &lt;a href="http://isc.sans.org/diary.php?date=2004-11-04"&gt;SANS Internet Storm Center&lt;/a&gt; has been keeping an eye on some SSH brute force attempts that appear to be from a script kiddie trying to break into systems. There also is a write up which is easier to get to detailing the attempt to break into a Honey Pot on their &lt;a href="http://www.security.org.sg/gtec/honeynet/viewdiary.php?diary=20041102"&gt;HoneyNet Analysis page&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;One of the tips they offer up on their Internet Storm Center Diary page is with the SSHd configuration file. The main suggestions is to limit the accounts that can log in to SSHd and tighten up the other parameters so the time frame that someone can log in is limited, Their recommended settings are:&lt;br /&gt;         PermitRootLogin no          &lt;br /&gt;         AllowUsers userA userB userC&lt;br /&gt;         Protocol 2&lt;br /&gt;         LoginGraceTime 20s&lt;br /&gt;         MaxStartups 5&lt;br /&gt;         Banner /etc/ssh/sshd_banner&lt;br /&gt;also ensure your users use strong passwords.&lt;br /&gt;&lt;br /&gt;A second tips is one which I've talked about before and that is to run SSH on a different port than normal, but you have to check that your users systems know where to look for SSH too. Currently it seems that the SSH scanning are on the standard port and are not going beyond that.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To return to the &lt;a href="http://kevinuxtips.blogspot.com/2004/07/ssh-tutorial.html"&gt;main directory for the SSH tutorials&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-109965467303774989?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/109965467303774989'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/109965467303774989'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2004/11/ssh-configuration-tips-from-sans.html' title='SSH Configuration Tips from SANS - Internet Storm Center'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-109932797251261524</id><published>2004-11-01T10:33:00.000-06:00</published><updated>2004-11-12T14:44:14.763-06:00</updated><title type='text'>Group or World writeable Directories in root's PATH</title><content type='html'>Start by typing echo $PATH. The results will tell you where the shell will search for executable files. A null entry in your PATH equates to the same thing as a dot. Including the current working directory either with a "." or by "::" makes it possible for a hacker to gain superuser privileges by forcing an administrator operating as root to execute a Trojan horse program.&lt;br /&gt;&lt;br /&gt;The shell variable PATH defines the path and the order of priority for executable files on the system. Alternative paths are separated by a colon (:). The current directory can be specified by two or more adjacent colons, or by a period in between two colons. Path will search each directory in the order specified within the $PATH variable for an executable file that matches the name of the file you are trying to execute. &lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-109932797251261524?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/109932797251261524'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/109932797251261524'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2004/11/group-or-world-writeable-directories.html' title='Group or World writeable Directories in root&apos;s PATH'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-109845992964469848</id><published>2004-10-22T10:25:00.000-05:00</published><updated>2004-10-22T10:45:29.646-05:00</updated><title type='text'>Limit users with UID 0 accounts to root only</title><content type='html'>The ONLY superuser account on a machine should be root. Checking for the UID option in the /etc/passwd file. Somtimes when a hacker will attack a system they will try to leave a way for them to get back in at a later time. The easiest way is to leave a root account open for them to use from their system. The command: $grep :0: /etc/passwd will list everyone who has root access. The only user that should show up here is the root user.&lt;br /&gt;&lt;br /&gt;Also, for mission critical systems, do not allow direct root logons except at the console. Only terminals marked as secure in the file /etc/ttytab file will allow any user with UID = 0 to logon directly. If you want you can also mark a terminal as being unsecure, this will force users to log on as their normal user and then su to root.&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-109845992964469848?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/109845992964469848'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/109845992964469848'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2004/10/limit-users-with-uid-0-accounts-to.html' title='Limit users with UID 0 accounts to root only'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-109821836921185451</id><published>2004-10-19T15:24:00.000-05:00</published><updated>2004-10-19T15:39:29.213-05:00</updated><title type='text'>Setting account expiration parameters</title><content type='html'>All active accounts should have an account expiration set on them.  Because sys admins are not in the HR dept, when people leave the sys admin is not always told about employee turnover.  Using account expirations is a simple way to help prevent any loose accounts from staying out there.&lt;br /&gt;&lt;br /&gt;Also it is a good idea to force users to change their passwords on an account on a regular basis.  How regular depends on how important the system they are working on, if a user is only on a read-only that is kept in a secure-area they should almost never have to change their password where as a sys admin who has to move from one machine to another machine should be changing their password often.&lt;br /&gt;&lt;br /&gt;Finally, idle accounts should be expired.  The less mess hanging around means fewer opportunities for someone to use to hack into your system.&lt;br /&gt;&lt;br /&gt;You can set account expiration parameters either through the GUI or you can run a script to set the parameters.  I will try &amp;amp; have a script set up to check this later this week.&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-109821836921185451?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/109821836921185451'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/109821836921185451'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2004/10/setting-account-expiration-parameters.html' title='Setting account expiration parameters'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-109770024247299221</id><published>2004-10-13T15:33:00.000-05:00</published><updated>2004-10-13T15:47:17.790-05:00</updated><title type='text'>Empty Password Field in /etc/shadow</title><content type='html'>The next topic I want to cover is verifying that there are no empty passwords in the /etc/shadow file.  Why is this important??&lt;br /&gt;&lt;br /&gt;Well any account that has an empty password is open for anyone to log into. Part of the security within a Linux system is to ensure that all users are proper users and no one has any authorized access beyond what they need. Open user accounts are security risks that can be easily preventable. One way a hacker could use this is to set up a fake account that has root privileges through sudo. Then anytime they need to access your system they will log on through the fake account and they will never have to remember a password.&lt;br /&gt;&lt;br /&gt;One way to check this is to go through the /etc/passwd file and look for any account that might have a blank password in the password space. Another is to use the command&lt;br /&gt;&lt;br /&gt;awk -F: `($2 == "") { print $1 }` /etc/shadow&lt;br /&gt;&lt;br /&gt;this command will return any user account that has an empty password.  If there are no lines returned then your system is safe.&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-109770024247299221?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/109770024247299221'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/109770024247299221'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2004/10/empty-password-field-in-etcshadow.html' title='Empty Password Field in /etc/shadow'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-109751670909298475</id><published>2004-10-11T13:19:00.000-05:00</published><updated>2004-10-12T04:33:04.350-05:00</updated><title type='text'>User Accounts tips</title><content type='html'>For the next several posts I want to focus in on user accounts and the user environment. Most of what I want to cover is how to ensure that your system is safe from users going beyond what they are authorized to do within the system. Some of the tips will be ensuring that proper expiration paramters are set for user accounts other tips will help verify that users can't access other resources within a system that they don't have permissions to access.&lt;br /&gt;&lt;br /&gt;The first tip is to go through the /etc/password file and verify that there are no user accounts that don't belong and system accounts are not being misused. There is one command that helps here: &lt;span style="font-weight: bold;"&gt;finger 'sort /etc/passwd | cut -f1 ":"' | less&lt;/span&gt;&lt;font&gt;. The finger command displays information relating to the last time an account was used. This command lists each user ID and checks the last login time. Note the single quotes are back ticks. The back tick is found with the tilde (~).&lt;br /&gt;The Linux system also has a utility which will display the last time someone logged in called &lt;span style="font-weight: bold;"&gt;lastlog&lt;/span&gt; that displays the last time a user logged in.  The command to use this is simply&lt;span style="font-weight: bold;"&gt; lastlog&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;These commands will list when the last time someone logged into an account, accounts which haven't been used should be checked into whether they still need to exist or not. Also system accounts should never show someone logging into them. If you do show system accounts with a log in the first thing to do is verify there is no shell available for system accounts and if there is change the shell to &lt;span style="font-style: italic;"&gt;/dev/null&lt;/span&gt;.  Changing a shell to &lt;span style="font-style: italic;"&gt;/dev/null&lt;/span&gt; will prevent any user from using a system account to log into the system and be given root privileges.&lt;br /&gt;&lt;br /&gt;Finally, the command pwck should be ran to check for basic integrity, such as ensuring the right number of fields are present and that each name is uniquely identified. For the group file, use grpck.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-109751670909298475?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/109751670909298475'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/109751670909298475'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2004/10/user-accounts-tips.html' title='User Accounts tips'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-109656836062679586</id><published>2004-09-30T13:59:00.000-05:00</published><updated>2004-10-07T11:34:53.743-05:00</updated><title type='text'>NETSTAT - checking network status</title><content type='html'>I think the final tool I'm going to look into is the netstat command which is used to query TCP/IP about the network status of the local host. The netstat command will provide information on things like active TCP connections at the local host, the state of all TCP/IP servers on the local host and the sockets used by them, devices and links used by TCP/IP and the IP routing tables (gateway tables) in use on the local host.&lt;br /&gt;&lt;br /&gt;Some of the command options from the &lt;a href="http://www.hmug.org/man/1/netstat.html"&gt;man pages&lt;/a&gt; are:&lt;br /&gt;-i	   Show the state of interfaces which have been auto-configured&lt;br /&gt;	   (interfaces statically configured into a system, but not located at&lt;br /&gt;	   boot time are not shown).&lt;br /&gt;-a	   With the default display, show the state of all sockets; normally&lt;br /&gt;	   sockets used by server processes are not shown.&lt;br /&gt;-r	   Show the routing tables.&lt;br /&gt;-p         protocol, Show statistics about protocol, which is either a well-known&lt;br /&gt;        name for a protocol or an alias for it.&lt;br /&gt;-b	   With the interface display (option -i, as described below), show&lt;br /&gt;	   the number of bytes in and out.&lt;br /&gt;-d	   With either interface display (option -i or an interval, as&lt;br /&gt;	   described below), show the number of dropped packets.&lt;br /&gt;&lt;br /&gt;The output from this command will tell you what your system is listening for and what is possibly open for someone to connect to. The first thing to do is look for services that you have no need to be open and the ensure they are firewalled off, in conjunction you can go in and kill the process and make sure the process doesn't start up form a boot prompt as well as automatically regenerate itself.&lt;br /&gt;&lt;br /&gt;The &lt;a href="http://www.bigwebmaster.com/General/Howtos/Security-Quickstart-HOWTO/appendix.html#NETSTAT"&gt;Bigwebmast.com site&lt;/a&gt; has a good tutorial that starts at section 8.3 and offers more specifics as to what to be looking for with the different options. Also there is a &lt;a href="http://www.cablemodemhelp.com/netstat.htm"&gt;Netstat Analyzer tool&lt;/a&gt; which will help analyze the results from the netstat command.&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-109656836062679586?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/109656836062679586'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/109656836062679586'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2004/09/netstat-checking-network-status.html' title='NETSTAT - checking network status'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-109613029044137950</id><published>2004-09-25T11:23:00.000-05:00</published><updated>2004-10-11T12:15:11.540-05:00</updated><title type='text'>IOSTAT - Checking Disk Performance </title><content type='html'>The &lt;span style="font-weight: bold;"&gt;iostat&lt;/span&gt; command is used for monitoring system input/output device loading by observing the time the physical disks are active in relation to their average transfer rates. It is similar both in format and in use to the &lt;span style="font-weight: bold;"&gt;vmstat&lt;/span&gt; command.  The first line of  &lt;span style="font-weight: bold;"&gt;iostat&lt;/span&gt; reflects a summary of statistics since boot time. Each subsequent report covers the time since the previous report. All statistics are reported each time the &lt;span style="font-weight: bold;"&gt;iostat&lt;/span&gt; command is run. The report consists of a tty and CPU header row followed by a row of tty and CPU statistics.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;iostat 10 5&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;When this command is ran &lt;span style="font-weight: bold;"&gt;iostat&lt;/span&gt; will spend 10 seconds gathering data and reports a single line of statistics. This will continue 5 times. At least 5 seconds is needed for good accuracy.&lt;br /&gt;&lt;br /&gt;                       extended disk statistics       tty         cpu&lt;br /&gt;  disk r/s  w/s Kr/s Kw/s wait actv svc_t  %w  %b  tin tout us sy wt id&lt;br /&gt;  sd0   2.6 3.0 20.7 22.7 0.1  0.2  59.2   6   19   0   84  3  85 11 0&lt;br /&gt;  sd1   4.2 1.0 33.5  8.0 0.0  0.2  47.2   2   23&lt;br /&gt;  sd2   0.0 0.0  0.0  0.0 0.0  0.0   0.0   0    0&lt;br /&gt;  sd3  10.2 1.6 51.4 12.8 0.1  0.3  31.2   3   31&lt;br /&gt;&lt;br /&gt;A &lt;a href="http://www.princeton.edu/%7Epsg/unix/Solaris/troubleshoot/iostat.html"&gt;description of the information reported&lt;/a&gt; is:&lt;br /&gt;&lt;br /&gt; * disk: Disk device name.&lt;br /&gt; * r/s, w/s: Average reads/writes per second.&lt;br /&gt; * Kr/s, Kw/s: Average Kb read/written per second.&lt;br /&gt; * wait: Time spent by a process while waiting for block&lt;br /&gt; * (eg disk) I/O to complete. actv: Number of active requests in the hardware queue.&lt;br /&gt; * %w: Occupancy of the wait queue.&lt;br /&gt; * %b: Occupancy of the active queue with the device busy.&lt;br /&gt; * svc_t: Service time (ms). Includes everything: wait time, active queue time, seek rotation, transfer time.&lt;br /&gt; * us/sy: User/system CPU time (%).&lt;br /&gt; * wt: Wait for I/O (%).&lt;br /&gt; * id: Idle time (%).&lt;br /&gt;&lt;br /&gt;With this information in hand an Admin can go about tuning the environment to better suit the needs of the business. There are some good tutorials on tuning and interpreting the results at the &lt;a href="http://www.princeton.edu/%7Epsg/unix/Solaris/troubleshoot/iostat.html"&gt;Princeton University&lt;/a&gt; site,  &lt;a href="http://www.adminschoice.com/docs/iostat_vmstat_netstat.htm#Input%20Output%20statistics%20%28%20%20iostat%20%29"&gt;Admins choice site&lt;/a&gt;,  the &lt;a href="http://www.softlookup.com/tutorial/unix/unx39.asp"&gt;softlookup site&lt;/a&gt;, and (I know this is for an AIX system but the same ideas will apply here as well) the &lt;a href="http://nscp.upenn.edu/aix4.3html/aixbman/prftungd/montundisk.htm#UPD2i2f9doug"&gt;AIX performance Tuning guide&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;*********************************** UPDATE ********************&lt;br /&gt;The systat home page can be found &lt;a href="http://perso.wanadoo.fr/sebastien.godard/"&gt;here&lt;/a&gt;.  With this utility comes the iostat and some other utilities for monitoring Linux.&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-109613029044137950?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/109613029044137950'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/109613029044137950'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2004/09/iostat-checking-disk-performance.html' title='IOSTAT - Checking Disk Performance '/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-109578225640908344</id><published>2004-09-21T10:24:00.000-05:00</published><updated>2004-09-22T13:10:02.650-05:00</updated><title type='text'>VMSTAT - Virtual Memory Statistics</title><content type='html'>Sticking with the theme of performance monitoring, I'm going to cover some of the other utilities used to monitor a system's and network's performance. The &lt;span style="font-weight: bold;"&gt;vmstat&lt;/span&gt; utility gives a server-wide view of performance. &lt;span style="font-weight: bold;"&gt;vmstat&lt;/span&gt; reports information about processes, memory, paging, block IO, traps, and cpu activity. The first report produced gives averages since the last reboot. Additional reports give information on a sampling period of length delay. The process and memory reports are instantaneous.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;vmstat 10 5&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;When this command is ran vmstat will spend 10 seconds gathering data and reports a single line of statistics. This will continue 5 times. At least 5 seconds is needed for good accuracy. Example output(unfortuantly blooger doesn't format the table properly):&lt;br /&gt;&lt;br /&gt;procs  memory    page                                   faults            cpu&lt;br /&gt;----- ----------- ------------------------ ------------ -----------&lt;br /&gt;r b     avm fre      re pi po fr sr cy                 in sy cs         us sy id wa&lt;br /&gt;1 0 22478 1677    0 0  0  0  0  0                 188 1380      157 57 32 0 10&lt;br /&gt;1 0 22506 1609   0 0  0  0  0  0                 214 1476      186 48 37 0 16&lt;br /&gt;0 0 22498 1582   0 0  0  0  0  0                 248 1470      226 55 36 0 9&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.uwsg.iu.edu/usail/man/linux/vmstat.8.html"&gt;&lt;span style="font-weight: bold;"&gt;FIELD DESCRIPTIONS&lt;/span&gt;&lt;/a&gt; (These field descriptions came straight from the Man pages)&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;   Procs&lt;/span&gt;&lt;br /&gt;  r: The number of processes waiting for run time.&lt;br /&gt;  b: The number of processes in uninterruptable sleep.&lt;br /&gt;  w: The number of processes swapped out but otherwise runnable.  This&lt;br /&gt;     field is calculated, but Linux never desperation swaps.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;   Memory&lt;/span&gt;&lt;br /&gt;  swpd: the amount of virtual memory used (kB).&lt;br /&gt;  free: the amount of idle memory (kB).&lt;br /&gt;  buff: the amount of memory used as buffers (kB).&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;   Swap&lt;/span&gt;&lt;br /&gt;  si: Amount of memory swapped in from disk (kB/s).&lt;br /&gt;  so: Amount of memory swapped to disk (kB/s).&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;   IO&lt;/span&gt;&lt;br /&gt;  bi: Blocks sent to a block device (blocks/s).&lt;br /&gt;  bo: Blocks received from a block device (blocks/s).&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;   System&lt;/span&gt;&lt;br /&gt;  in: The number of interrupts per second, including the clock.&lt;br /&gt;  cs: The number of context switches per second.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;   CPU&lt;/span&gt;&lt;br /&gt;  These are percentages of total CPU time.&lt;br /&gt;  us: user time&lt;br /&gt;  sy: system time&lt;br /&gt;  id: idle time&lt;br /&gt;&lt;br /&gt;For CPU issues pay attention to the processes in the run queue (procs r), User time (cpu us), System time (cpu sy), &amp; Idle time (cpu id).  If the r column is higher than the number of CPU's in the machine adding some more CPU's would help out.  From here you can find out what is using your CPU time with &lt;span style="font-weight: bold;"&gt;TOP&lt;/span&gt;.&lt;br /&gt;For Memory Issues pay attention to the scan rate (sr). The scan rate is the pages scanned by the clock algorithm per second. If the scan rate (sr) is continuously over 200 pages per second then there is a memory shortage.  Remember that the free column will dwindle down due to memory being used for I/O cache and buffers, this is normal.&lt;br /&gt;&lt;br /&gt;These statistics will go a long way to giving you an idea as to how well your system is responding to requests and if there are any bottle necks it will help give clues as to where to start looking for the problem areas. Hopefully in the next couple of days I can also cover the iostat and netstat commands to help give you an overall look at a sytem and how well it is working.&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-109578225640908344?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/109578225640908344'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/109578225640908344'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2004/09/vmstat-virtual-memory-statistics.html' title='VMSTAT - Virtual Memory Statistics'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-109544199683668212</id><published>2004-09-17T11:56:00.000-05:00</published><updated>2004-09-17T12:26:36.840-05:00</updated><title type='text'>Process Monitoring through TOP</title><content type='html'>Top provides an ongoing look at processor activity in real time. It displays a listing of the most CPU-intensive tasks on the system, and can provide an interactive interface for manipulating processes.  It's a good idea to leave top running in aterminal window on machines that are busy but that you are not logged into to help build a history of what is happening on the system.&lt;br /&gt;&lt;br /&gt;There are several command line options which can be used to focus the TOP utility on specific things. The first is when starting top use the -d command to specify the type of delay for screen updates, the default is 2 seconds.&lt;br /&gt;&lt;br /&gt;Once top is running there are several toggle commands that can be used to sort the display options. The first option is m, which sorts by Mem Statistics based on memory usage.&lt;br /&gt;The i toggle command will cause top to ignore idle and zombie processes. The r toggle command will re-nice a process when you want to change the priority of a process. Some other commands are as follows: N sort tasks by pid, A sort tasks by age, P sort tasks by CPU usage, T sort tasks by time / cumulative time.&lt;br /&gt;&lt;br /&gt;You can kill processes from within top with the k toggle command you will be prompted to select the PID you want killed and the signal you want sent to the process, either select 9 or 15.&lt;br /&gt;&lt;br /&gt;The configuration files for top can be found at, /etc/toprc and ~/.toprc. The global configuration file may be used to restrict the usage of top to the secure mode for non-non-privileged users. The personal configuration file contains two lines. The first line contains lower and upper letters to specify which fields in what order are to be displayed. The letters correspond to the letters in the Fields or Order screens from top.&lt;br /&gt;&lt;br /&gt;As always if you have any further questions the first place to start is the man pages.&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-109544199683668212?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/109544199683668212'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/109544199683668212'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2004/09/process-monitoring-through-top_17.html' title='Process Monitoring through TOP'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-109467270158646940</id><published>2004-09-08T13:52:00.000-05:00</published><updated>2004-09-13T13:01:01.256-05:00</updated><title type='text'>Network Time Protocol NTP</title><content type='html'>&lt;a href="http://www.die.net/doc/linux/man/man1/ntpq.1.html"&gt;NTP is a utility program&lt;/a&gt; used to query NTP servers which hep format the current time and request changes to that time. Why is this important?? Having a constant time throughout a network helps with troubleshooting and gives the administrator a commonality when looking at problem spots within a network.&lt;br /&gt;&lt;br /&gt;The first thing to do is download and install the NTP package.  An RPM version can be found on the &lt;a href="http://www.sh-linux.org/rpm-index-2003/sh3/ntp-4.1.1-1.sh3.html"&gt;sh-linux.org web site&lt;/a&gt;.   Once the file is downloaded run the command rpm -Uvh ~/ntp-4.1.1-1.src.rpm.&lt;br /&gt;&lt;br /&gt;The /etc/ntp.conf file is the main configuration file for Linux's NTP where you put the IP addresses that you want to configure with. A listing of the servers with which to sync with can be found at the &lt;a href="http://www.eecis.udel.edu/%7Emills/ntp/clock2a.html"&gt;eecis.udel.edu site&lt;/a&gt;.  After you have made your changes save the file and restart the NTP server with the command  /etc/init.d/ntpd restart.&lt;br /&gt;&lt;br /&gt;To test that the NTP server is running type pgrep ntpd you should get the process number for the NTP process. Also trying using the command ntpq -p if the result set shows no IP addresses this is a good telltale sign that the NTP server is not updating properly.&lt;br /&gt;&lt;br /&gt;An issue to be aware of is in Fedore Core 2 file permissions are not set within the /etc directory and you will have to set the owner and group to be "ntp". Another issue is to be aware that NTP servers communicate using UDP through port 123 and sometimes a firewall will have this port blocked off. If you are having a problem communicating, check the firewall to see if it is allowing communication through this port.&lt;br /&gt;&lt;br /&gt;************ Update&lt;br /&gt;Linux.com has ran an article concerning this same subject through their &lt;a href="http://enterprise.linux.com/enterprise/04/09/10/1449232.shtml?tid=89"&gt;Command Line Series&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-109467270158646940?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/109467270158646940'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/109467270158646940'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2004/09/network-time-protocol-ntp.html' title='Network Time Protocol NTP'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-109414704290555060</id><published>2004-09-02T12:29:00.000-05:00</published><updated>2004-09-02T12:44:02.906-05:00</updated><title type='text'>Tuning IDE hard disks using hdparm</title><content type='html'>As per the &lt;a href="http://www.die.net/doc/linux/man/man8/hdparm.8.html"&gt;man page: hdparm&lt;/a&gt; provides a command line interface to various hard disk IO controls codes supported by the Linux device driver sub system. The command to get an idea of how well the sub system is working is &lt;span style="font-style: italic;"&gt;hdparm -Tt /dev/hda&lt;/span&gt;.  This will perform a buffer read and a disk read to help get a benchmark of how well your system is working currently.  The command &lt;span style="font-style: italic;"&gt;hdparm /dev/hda&lt;/span&gt; will tell how hdparm is addressing your drive.  I've found two sites with some good info on working with hdparm.  The first is the &lt;a href="http://usalug.org/phpBB2/viewtopic.php?p=33142"&gt;USA Linux Users group&lt;/a&gt; and the second is on the &lt;a href="http://www.linuxdevcenter.com/pub/a/linux/2000/06/29/hdparm.html"&gt;O'Reilly DevCenter.com site&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-109414704290555060?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/109414704290555060'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/109414704290555060'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2004/09/tuning-ide-hard-disks-using-hdparm.html' title='Tuning IDE hard disks using hdparm'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-109387576732161478</id><published>2004-08-30T08:41:00.000-05:00</published><updated>2004-08-31T08:14:19.126-05:00</updated><title type='text'>SSH Security through Obscurity</title><content type='html'>The &lt;a href="http://isc.sans.org/diary.php"&gt;SANS site&lt;/a&gt; has a good writeup on SSH security through obscurity. Recently there have reports of SSH scanning and brute force attempts. The handler's diary entry for Aug 30th talks about moving the SSH port to a different port, which puts up a small speedbump when hacker's try to access your SSH server. They point out an important issue that if a script kiddie is doing a general scan they should pass over your SSH server and mark it as not being accessible. If a hacker is focusing on your individual system then they will most likely be doing a full scan of your system. The handler who posted these suggestions has &lt;a href="http://www.stearns.org/"&gt;his own site&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;The first step is to open three SSH connections to the box. His reasoning for this is that if anything happens you still have some connections open to the remote server. Next edit the &lt;span style="font-style: italic;"&gt;/etc/sysconfig/sshd&lt;/span&gt; file by adding the port number to the "OPTIONS" line (OPTIONS = '-p 1011')&lt;br /&gt;The next step is to configure TSP wrappers and set the firewall to allow incoming connections on the new port.&lt;br /&gt;The next command to type is to restart sshd by &lt;span style="font-style: italic;"&gt;/etc/init.d/sshd restart&lt;/span&gt;&lt;br /&gt;The primary daemon will restart and the existing connections will remain open for emergencies on the old ssh port 22.&lt;br /&gt;The next step is to edit the ssh config file by adding the following line( Host mysshserver Port 1011)&lt;br /&gt;Now connect to the server with the command &lt;span style="font-style: italic;"&gt;ssh mysshserver&lt;/span&gt;&lt;br /&gt;everything should work and you should be in, if not you can use one of the other open connections to trouble shoot things or revert back to the previous settings.&lt;br /&gt;Thanks &lt;a href="http://www.stearns.org/"&gt;bill for the good tips&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;UPDATE******&lt;br /&gt;Other users on the &lt;a href="http://isc.sans.org/diary.php"&gt;SANS site&lt;/a&gt; logged in on AUG 30th regarding additional security measures which can be used with SSH &lt;a href="http://isc.sans.org/diary.php"&gt;&lt;/a&gt;.  Some of the additional suggestions are to use your firewall to restrict who is allowed to connect to the port.  Also in the sshd_config file set "PermitRootLogin no" and "PasswordAuthentication no".&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-109387576732161478?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/109387576732161478'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/109387576732161478'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2004/08/ssh-security-through-obscurity.html' title='SSH Security through Obscurity'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-109361539636826996</id><published>2004-08-27T08:24:00.000-05:00</published><updated>2004-08-27T10:27:07.610-05:00</updated><title type='text'>R00T access</title><content type='html'>Gaining root access is one of the most important preventive actions an administrator can protect from. Obviously if the main system is ran in Admin mode this will prevent someone else from remotely logging into the system and gaining access, then the issue is how secure the physical premises.&lt;br /&gt;&lt;br /&gt;If you have forgotten your root password though there are ways of dropping a system into a shell environment and resetting the root password in /etc/passwd. If LILO is used the first step is to try and boot into single user mode by typing &lt;span style="font-weight: bold;"&gt;LILO: Linux single&lt;/span&gt;. This should give you shell access to go into the passwd file and change the passwd for root. If LILO asks you for a passwd then you're working with a sharp admin whose password protected LILO. As a possibility try hitting &lt;span style="font-weight: bold;"&gt;^C&lt;/span&gt; which might drop you to a root prompt, unless of course the same sharp admin has trapped the &lt;span style="font-weight: bold;"&gt;^C&lt;/span&gt; access.  In which case the last option to try is to go back into the LILO prompt and type &lt;span style="font-weight: bold;"&gt;LILO: Linux init=/bin/bash&lt;/span&gt; what you are telling the kernel is to give you a shell.&lt;br /&gt;&lt;br /&gt;After gaining shell access it's possible that somethings can't be found due to being on a filesystem or disk which isn't mounted yet or it is on a read only mounted filesystem. These steps should help get around this:&lt;br /&gt;mount -o remount, rw              ' remount / readable and writable&lt;br /&gt;mount -a                                     ' mount all     &lt;br /&gt;mount                                          ' show mounted filesystems      &lt;br /&gt;vi /etc/passwd                           ' clear the password for root    &lt;br /&gt;sync                                             ' write buffers to disk     &lt;br /&gt;umount -a                                   ' unmount filesystems    &lt;br /&gt;mount -o remount, ro /            ' remount / read-only again&lt;br /&gt;&lt;br /&gt;Ctrl Alt Del      login: root                                   ' login as root without a password   &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If you are using GRUB instead of LILO the &lt;a href="http://www.redhat.com/docs/manuals/linux/RHL-7.3-Manual/custom-guide/s1-rescuemode-booting-single.html"&gt;RED Hat site&lt;/a&gt; has these steps which should work for you to gain a shell.  At the selection menu highlight the linux entry and type &lt;span style="font-weight: bold;"&gt;e&lt;/span&gt; for edit. Arrow down to the line which starts the kernel and type &lt;span style="font-weight: bold;"&gt;e&lt;/span&gt; to edit the line.  Go to the end of the line and either type &lt;span style="font-weight: bold;"&gt;single&lt;/span&gt; or type &lt;span style="font-weight: bold;"&gt;init 1&lt;/span&gt; and hit enter to exit edit mode.  back at the GRUB screen type &lt;span style="font-weight: bold;"&gt;b&lt;/span&gt; to boot up into the mode you selected. This should get you into a shell where you can vi into /etc/passwd and change the root passwd.&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-109361539636826996?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/109361539636826996'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/109361539636826996'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2004/08/r00t-access.html' title='R00T access'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-109328985882157380</id><published>2004-08-23T14:16:00.000-05:00</published><updated>2004-08-23T14:37:38.820-05:00</updated><title type='text'>Troubleshooting</title><content type='html'>The recent spat of SSH scans have been identified as a program called bruteSSHd which tries to brute force SSH passwords.  Brute forcing passwords is simply a program which will try a combination of password retries until the right password is found.  This is one of the security issues SSH has in that to the best of my knowledge there is no way to limit the number of failed logins under SSH.&lt;br /&gt;&lt;br /&gt;Some other Troubleshooting tips are as follows (most can be found &lt;a href="http://www.employees.org/%7Esatch/ssh/faq/ssh-faq-7.html"&gt;here&lt;/a&gt;):&lt;br /&gt;If you get the error msg: "Secure Connection Refused" This is usually a configuration issue. Somewhere within the installation of SSH a wrong parameter was given which currently has SSH looking for an RSH parameter.  The easiest thing to do is reinstall SSH.&lt;br /&gt;&lt;br /&gt;SSH asks for passwords despite an .rhosts file.  This error can be linked to a number of issues regarding the configuration files, whether they are readable or set up properly.&lt;br /&gt;&lt;br /&gt;X11 Forwarding problems - check the command line you are using, the proper command line for X11 connections is ssh -f  otherhost xclient.   Also, check the configuration files on both sides to verify everything is configured properly.&lt;br /&gt;&lt;br /&gt;To return to the &lt;a href="http://kevinuxtips.blogspot.com/2004/07/ssh-tutorial.html"&gt;main directory for the SSH Tutorials&lt;/a&gt;.&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-109328985882157380?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/109328985882157380'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/109328985882157380'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2004/08/troubleshooting.html' title='Troubleshooting'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-109301621812392371</id><published>2004-08-20T09:43:00.000-05:00</published><updated>2004-11-10T09:50:26.580-06:00</updated><title type='text'>Security</title><content type='html'>There have been several security issues identified with the SSH. Also Security web sites have noticed recently that hackers have been running scans searching the SSH service and trying to crack a login and password into systems. This brings up some all important issues when dealing with the SSH program.&lt;br /&gt;&lt;br /&gt;First off the latest version of SSH should always be installed.  As of this post the latest version of &lt;a href="http://www.openssh.com/"&gt;OpenSSH &lt;/a&gt;is 3.9 released Aug 17, 2004. The second thing to do is ensure your public and private keys are secured with proper file permissions.&lt;br /&gt;&lt;br /&gt;These two steps fix the majority of the issues people have had with the SSH agent. Occasionally there are issues of password brute force attempts. Ensuring you use a strong password is the first step along with safeguarding your public and private keys.&lt;br /&gt;&lt;br /&gt;The Network scanning site has identified several security issues with version &lt;a href="http://www.networkscanning.com/OpenSSH-2-3-1-authentication-bypass-vulnerability-VSS_10608.html"&gt;2.3.1&lt;/a&gt;, &lt;a href="http://www.networkscanning.com/OpenSSH-2-5-x--%3E-2-9-x-adv-option-VSS_10771.html"&gt;2.5.x&lt;/a&gt;, &lt;a href="http://www.networkscanning.com/OpenSSH-%3C-3-0-1-VSS_10802.html"&gt;3.0.1&lt;/a&gt; and &lt;a href="http://www.networkscanning.com/OpenSSH-Client-Unauthorized-Remote-Forwarding-VSS_11343.html"&gt;port forwarding with 2.3.0&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;I have also identified a security issue when you are using &lt;a href="http://kevinuxtips.blogspot.com/2004/08/x11-forwwarding.html"&gt;X11 Forwarding&lt;/a&gt; in that the connection is a two way connection and anyone you can connect to can connect back into you.&lt;br /&gt;************************************* UPDATE **************************&lt;br /&gt;&lt;a href="http://geekspeek.org/modules.php?name=News&amp;file=article&amp;amp;sid=36"&gt;Geekspeek.org&lt;/a&gt; has a post on some security steps to take when configuring SSH, the file which needs to be reconfigured is /etc/ssh/sshd_config. The one main difference which isn't covered in the configuration post is the line which reads: Protocol 2; if there is a 1 after the 2, remove the 1. This tells SSH which versions of SSH to run. there are too many security issues with the first version of SSH to even consider running. There is also a comment regarding the UsePrivilegeSeparation line which the only information I've been able to find is that this feature is not compatible with SSH version 3.2 or earlier.&lt;br /&gt;&lt;br /&gt;To return to the &lt;a href="http://kevinuxtips.blogspot.com/2004/07/ssh-tutorial.html"&gt;main directory for SSH Tutorials&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-109301621812392371?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/109301621812392371'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/109301621812392371'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2004/08/security.html' title='Security'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-109293597620726812</id><published>2004-08-19T12:00:00.000-05:00</published><updated>2004-08-19T12:22:34.206-05:00</updated><title type='text'>Port Forwarding</title><content type='html'>Port Forwarding can be used to encrypt email, web or any other traffic through the internet. Port Forwarding can also be used to bypass restrictive firewalls.&lt;br /&gt;&lt;br /&gt;There are two types of Port Forwarding: Local and Remote. Local forwarding allows you to open a port on YOUR machine and associate it with a port on some remote network. such as User =&gt; port on user's box =&gt; ssh =&gt; linuxbox =&gt; mail port on email server. Remote forwarding work the same way, but backwards.&lt;br /&gt;&lt;br /&gt;The ssh program can be told to listen on any port either on the remote or local computer, forward any service or data through the encrypted connection, and sent it to some other destination from the other end.&lt;br /&gt;&lt;br /&gt;The main command will be &lt;span style="font-style: italic;"&gt;ssh -f -N -L9999:mailhost:9999&lt;/span&gt;&lt;br /&gt;-f     switch tells ssh to run in the background&lt;br /&gt;-N   switch tells ssh to not actually run the command just do the forwarding&lt;br /&gt;-L   switch tells ssh which local machine to connect to.  You can specify as many -L lines as you like&lt;br /&gt;-C   switch tells ssh to use compression&lt;br /&gt;&lt;br /&gt;a good example is ssh -f remotesystem cat secretdata | lpr&lt;br /&gt;which tells ssh to connect to remotesystem and send the information in secretdata to the printer.&lt;br /&gt;&lt;br /&gt;Another example is to set your Linux box up to accept ssh connections and then connect to your box through an IE browser to bypass firewall restrictions. Descriptions for such a connection can be found on the &lt;a href="http://www.buzzsurf.com/surfatwork/"&gt;buzzsurf web site&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;To return to the &lt;a href="http://kevinuxtips.blogspot.com/2004/07/ssh-tutorial.html"&gt;main directory for SSH tutorials&lt;/a&gt;.&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-109293597620726812?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/109293597620726812'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/109293597620726812'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2004/08/port-forwarding.html' title='Port Forwarding'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-109284664021752876</id><published>2004-08-18T09:50:00.000-05:00</published><updated>2004-08-18T12:23:03.840-05:00</updated><title type='text'>X11 Forwwarding</title><content type='html'>X11 forwarding allows a user to connect to a remote machine and open a connection to the X11 interface on the remote machine.&lt;br /&gt;&lt;br /&gt;Some uses for X11 forwarding are to set up VNC connections or for ethereal connections to capture packets.&lt;br /&gt;&lt;br /&gt;Some security issues to remind users of are the fact that if you can see what is happening on someone else's machine through SSH, they can do the same to you. If you use weak file permissions this will allow someone to have access to your system. The &lt;a href="http://www.hackinglinuxexposed.com/articles/20040705.html"&gt;Hacking Linux Exposed&lt;/a&gt; site covers this vulnerability.  With this in mind let's look at how we can set up X11 Forwarding.&lt;br /&gt;&lt;br /&gt;The guide can be found &lt;a href="http://www.tldp.org/HOWTO/XDMCP-HOWTO/ssh.html"&gt;here&lt;/a&gt;.&lt;br /&gt;Starting up an X11 connection is done through the command:&lt;br /&gt;ssh -X &lt;connection&gt;&lt;br /&gt;&lt;br /&gt;You also need to ensure X11 connections are enabled on the server you are conencting to.&lt;br /&gt;On the machine you are going to connect to the sshd2_config file needs this line added:&lt;br /&gt;AllowX11Forwarding              yes&lt;br /&gt;&lt;br /&gt;Also X11 forwarding needs to be enabled within your sshd_config file with the following line:&lt;br /&gt;X11Forwarding                          yes&lt;br /&gt;&lt;br /&gt;To return to the &lt;a href="http://kevinuxtips.blogspot.com/2004/07/ssh-tutorial.html"&gt;main directory for SSH tutorials&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;/connection&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-109284664021752876?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/109284664021752876'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/109284664021752876'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2004/08/x11-forwwarding.html' title='X11 Forwwarding'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-109088394865449105</id><published>2004-07-26T17:49:00.000-05:00</published><updated>2004-07-26T18:22:41.373-05:00</updated><title type='text'>SSH Compression</title><content type='html'>This next section will cover when to use compression and when to not use compression with SSH connections.&lt;br /&gt; &lt;br /&gt; The two biggest reasons to use compression are when you are connecting through a slow connection, similar to a dial-up or when you have to move a large amount of data form one machine to another machine and the compression will make the data transfer move faster.&lt;br /&gt; &lt;br /&gt; There are some reasons not to use compression also, any time one of the systems has a slow processor you want to avoid compression due to the time spent uncompressing or compressing the data. Also if the data is already compressed, using compression will only add the time to compress and uncompress to the process. &lt;br /&gt; &lt;br /&gt; SSH uses GNU ZLIB (LZ777) for compression. By default compression is turned off in the &lt;a href="http://kevinuxtips.blogspot.com/2004/07/ssh-configuration-files.html"&gt;/etc/ssh/ssh_config&lt;/a&gt; file, but can be turned on at the command line with the command &lt;span style="font-style: italic;"&gt;ssh +C username@hostname&lt;/span&gt;. additionally the user can request a compression level at the command line from anywhere 1 to 9, with 1 being the fastest and 6 is the default.&lt;br /&gt; &lt;br /&gt; Two good sites for SSH compression are the &lt;a href="http://www.ssh.com/support/documentation/online/ssh/adminguide/32/Compression.html"&gt;ssh.com&lt;/a&gt; site and the &lt;a href="http://www-h.eng.cam.ac.uk/help/jpmg/ssh/adv-use.html"&gt;University of Cambridge&lt;/a&gt; site.&lt;br /&gt; I know this is a short piece this time but this pretty much covers the compression discussion, remember to look at your environment and what is actually happening before you enable cmpression due to the fact that it doesn't save time all the time.&lt;br /&gt; &lt;br /&gt; To return to the &lt;a href="http://kevinuxtips.blogspot.com/2004/07/ssh-tutorial.html"&gt;main directory for the SSH tutorials&lt;/a&gt;.&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-109088394865449105?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/109088394865449105'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/109088394865449105'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2004/07/ssh-compression.html' title='SSH Compression'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-109086492320686125</id><published>2004-07-26T12:12:00.000-05:00</published><updated>2004-07-26T18:21:21.030-05:00</updated><title type='text'>SSH Configuration Files</title><content type='html'>Continueing on the SSH topics, the next topic is to look at the configuration files for the SSH program. The global settings for the program can be found in the /etc/ssh directory. The two main files for global settings are &lt;a href="http://www.faqs.org/docs/securing/chap15sec121.html"&gt;/etc/ssh/ssh_config&lt;/a&gt; and &lt;a href="http://www.faqs.org/docs/securing/chap15sec122.html"&gt;/etc/ssh/sshd_config&lt;/a&gt;.  &lt;br /&gt; &lt;br /&gt; The &lt;span style="font-style: italic;"&gt;ssh_config&lt;/span&gt; file allows you to set options to modify the client programs, some of the more important settings are as follows:&lt;br /&gt; &lt;br /&gt; &lt;ul&gt;   &lt;li&gt;&lt;span style="font-weight: bold;"&gt;Forward Agent  &lt;/span&gt;specifies which conection authentication agent if any should be forwarded default is no there are some nstances where this should be yes though.&lt;/li&gt;   &lt;li&gt;&lt;span style="font-weight: bold;"&gt;Forward X11&lt;/span&gt; automatically redirects x11 sessions to the remote machine, since this should be a server set up this should be left at the default of no.&lt;/li&gt;   &lt;li&gt;&lt;span style="font-weight: bold;"&gt;Password Authentication&lt;/span&gt; specifies to use password authentication.  For strong security this should be set to yes.&lt;/li&gt;   &lt;li&gt;&lt;span style="font-weight: bold;"&gt;Batchmode&lt;/span&gt; used when scripts are used and you don;t want to be supplying a password through the script.&lt;/li&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;Compression&lt;/span&gt; controls wether compression is used or not, the default is NO.&lt;br /&gt;   &lt;/li&gt;  &lt;/ul&gt; &lt;br /&gt; The next file is the &lt;span style="font-style: italic;"&gt;sshd_config&lt;/span&gt; file which allows you to set options which modify the behaviour of the SSH daemon.&lt;br /&gt; &lt;br /&gt;  &lt;ul&gt;   &lt;li&gt;&lt;span style="font-weight: bold;"&gt;PermitRootLogin&lt;/span&gt; specifies whether root can log in through SSH.  This option should always be set to NO.&lt;/li&gt;   &lt;li&gt;&lt;span style="font-weight: bold;"&gt;StrictModes&lt;/span&gt; specifies whetheter SSH should check the user's permissions in their home directory and rhosts files before accepting logins. this option should always be set to YES.&lt;/li&gt;   &lt;li&gt;&lt;span style="font-weight: bold;"&gt;X11Forwarding&lt;/span&gt; specifies whether X11 forwarding should be allowed on the remote amchine, since this is a server this option should be set to NO.&lt;/li&gt;   &lt;li&gt;&lt;span style="font-weight: bold;"&gt;Password Authentication&lt;/span&gt; specifies whetehr password authentication should be used.  This should be set to YES.&lt;/li&gt;   &lt;li&gt;&lt;span style="font-weight: bold;"&gt;PermitEmptyPasswords&lt;/span&gt; specifies wether the server will allow logging in with null passwords, if you will be using the SCP utility this option must be set to YES.&lt;/li&gt;   &lt;li&gt;&lt;span style="font-weight: bold;"&gt;AllowUsers &lt;/span&gt;specifies which users are allowed to use SSH services, multiple users can be specified.&lt;/li&gt; &lt;/ul&gt;       &lt;br /&gt; If you are interested in some of the other features which can be adjusted you can check the man pages which were referrenced earlier in this post.&lt;br /&gt; &lt;br /&gt; To return to the &lt;a href="http://kevinuxtips.blogspot.com/2004/07/ssh-tutorial.html"&gt;main directory for the SSH tutorials&lt;/a&gt;.&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-109086492320686125?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/109086492320686125'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/109086492320686125'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2004/07/ssh-configuration-files.html' title='SSH Configuration Files'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-109077264555781721</id><published>2004-07-25T10:16:00.000-05:00</published><updated>2004-07-25T11:24:05.556-05:00</updated><title type='text'>SSH Public Keys</title><content type='html'>Continuing on the SSH topics, the next topic is the use of public/ private keys to enable passwordless logins.  &lt;br /&gt; &lt;br /&gt; One of the benefits of SSH is the ability for passwordless logins.  This is done through public key exchange.  the &lt;a href="http://www.eos.ncsu.edu/remoteaccess/man/ssh-keygen.html"&gt;ssh-keygen&lt;/a&gt; program can be used to generate either an RSA or DSA key.  The -t option allows you to select either RSA or DSA encryption.  The -b option selects the number of bits in the key to create, the default is 1024. The default location for the files created is in the ~Home/.ssh directory.  Stick with the default directory due to the fact that other SSH tools will look for keys in this same directory.&lt;br /&gt; &lt;br /&gt; After typing in the command &lt;span style="font-style: italic;"&gt;ssh-keygen -t (rsa/dsa)&lt;/span&gt;  you'll be given an option to select a password.  The reason to use a password is to protect your key from theft from someone outside your network.  If your system is in a protected environment usign a password can be tedious.  &lt;br /&gt; &lt;br /&gt; After the ssh-keygen program generates your key it will then ask you where to store the key, the default will be in the ~HOME/.ssh/ directory.  Then it will ask you for a pass phrase, remember what kind of environment your system is in.  Leaving the passphrase blank will leave the private key unencrypted so you have to secure the file from unauthorized access, on your local machine the permissions should be 0600.  SSH is very strict about the file permissions which are used on your system and on the remote system.&lt;br /&gt; &lt;br /&gt; When the ssh-keygen program completes, two new files will have been created ~HOME/.ssh/id_(rsa or dsa) and ~HOME/.ssh/id_(rsa or dsa).pub  the exact file name will depend on wether you selected rsa or dsa encryption.&lt;br /&gt; &lt;br /&gt; The final step is to get the keys to the remote system.  the first step is to log back into the remote system and create an .ssh directory in your home directory and verify the file permissions are set up properly.  The command &lt;span style="font-style: italic;"&gt;ssh user@hostname "mkdir .ssh; chmod 0700 .ssh"&lt;/span&gt; does this.  The next step is to copy the file ~HOME/.ssh/id_(rsa or dsa).pub to the remote sytem.  The command &lt;span style="font-style: italic;"&gt;scp .ssh/id_(rsa or dsa).pub hostname: .ssh/authorized_keys2&lt;/span&gt; does this.&lt;br /&gt; &lt;br /&gt; The next time you want to log into the remote sytem all that is needed is the command &lt;span style="font-style: italic;"&gt;ssh hostname&lt;/span&gt;.  This also works for the scp command.&lt;br /&gt; &lt;br /&gt; If there are any problems check the file permissions on both ~HOME/.ssh/* and hostname:~HOME/.ssh.*.  The id.(rsa or dsa) file should be 0600 and only on your local machine an everything else should be 0655 or better.&lt;br /&gt; &lt;br /&gt; &lt;a href="http://kimmo.suominen.com/docs/ssh/#public-key-crypto"&gt;Kimmo Suominen&lt;/a&gt; has a good overview of the ssh process.  Also the &lt;a href="http://www.deadman.org/ssh-tut.html"&gt;Deadman.org&lt;/a&gt; has a decent overview of the SSH agent.&lt;br /&gt; &lt;br /&gt; To return to the &lt;a href="http://kevinuxtips.blogspot.com/2004/07/ssh-tutorial.html"&gt;main directory for the SSH tutorials.&lt;/a&gt;&lt;br /&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-109077264555781721?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/109077264555781721'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/109077264555781721'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2004/07/ssh-public-keys.html' title='SSH Public Keys'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-109034917715478464</id><published>2004-07-20T12:44:00.000-05:00</published><updated>2004-07-20T13:46:17.156-05:00</updated><title type='text'>SSH Secure Copy/ File Transfers</title><content type='html'>This follows on the ideas I've been putting out about using SSH in the everyday environment of an Administrator.  The next use for SSH is to transfer files across a network, either from a remote machine or to a remote machine.  &lt;a href="http://www.eos.ncsu.edu/remoteaccess/man/scp.html"&gt;SCP (Secure Copy)&lt;/a&gt;, the SSH version of &lt;span style="font-style: italic;"&gt;rcp&lt;/span&gt;, can transparently and securly copy files over the SSH protocol.  With SSH you can also cpy between two remote systems without having to go through the local machine.  &lt;br /&gt; &lt;br /&gt; A good reason to transfer files via SSH is to move log files or configuration files from one machine to another machine.  A nice added feature of SCP is that jobs can be automated with a Cron job.  A key feature of the automated option is that public keys needs to be set up which I'll cover in another day or two.&lt;br /&gt; &lt;br /&gt; The basic command looks like this:  scp  &lt;filename&gt; user@remotebox:~/&lt;br /&gt; This will transfer the file listed in file name from the remote box to the local box.  The colon after the remote box tells scp where to copy the file to.  The ~/ lists the destination on the local box where to copy the file to, the default is the home directory of the user signed in with SSH.&lt;br /&gt; &lt;br /&gt; Changing the order of the command will give a different result.  Changing the order as thus: scp user@remotebox:&lt;filename&gt; /tmp/special  This command will copy the file from the user's home directory on the remote machine to the /tmp/special directory on the local machine.&lt;br /&gt; &lt;br /&gt; Relative file names resolve differently on the local machine than on the remote machine.  On remote machine the /HOME directory is assumed, on the local machine the current directoy is used.&lt;br /&gt; &lt;br /&gt; Some common options are: &lt;br /&gt;         -p option preserves modification times, access times, and modes from the original file.&lt;br /&gt;          -r recursively copy directories&lt;br /&gt; &lt;br /&gt; When you specify remote locations in the source and destination, scp will copy from the source to the destination without going through the local host.&lt;br /&gt; &lt;br /&gt; To return to the &lt;a href="http://kevinuxtips.blogspot.com/2004/07/ssh-tutorial.html"&gt;main directory for the SSH tutorials&lt;/a&gt;.&lt;br /&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-109034917715478464?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/109034917715478464'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/109034917715478464'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2004/07/ssh-secure-copy-file-transfers.html' title='SSH Secure Copy/ File Transfers'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-109025828872484563</id><published>2004-07-19T10:40:00.000-05:00</published><updated>2004-07-19T12:56:15.556-05:00</updated><title type='text'>SSH Overview</title><content type='html'>SSH was created by &lt;a href="http://www.ssh.com/"&gt;Tatu Ylonen&lt;/a&gt; in 1995, OpenBSD picked up on the project in Dec 1999. SSH is intended as a complete replacement of the r utilities (rlogin, rsh, rcp, etc) and telnet. SSH focuses on securing network applications, such as terminal sessions. &lt;br /&gt; &lt;br /&gt; SSHd is configured with the /etc/sshd_config file. This file can be used to configure such things as allow/deny hosts, idle timeout, and the type of authentication to be used. SSH reads the $HOME/.ssh/config file and the /etc/ssh_config when it starts up. Any configuration which needs to be done is accomplished with these three files, also the &lt;a href="http://sman.informatik.htw-dresden.de:6711/man?=ssh&amp;amp;=1"&gt;MAN pages&lt;/a&gt; will have more information about the SSH program.&lt;br /&gt; &lt;br /&gt; The basic command to use SSH is:&lt;br /&gt;     ssh -l user@hostname&lt;br /&gt; &lt;br /&gt; This will initiate the commands to log in. With SSH2, SSH splits the SSH functions into three separate protocolsusing the Transport Layer Protocol, Authentication Protocol, and the Connection Protocol. More information about the specifics of theses protocols can be found at the&lt;a href="http://infosecuritymag.techtarget.com/articles/june01/features_protocols.shtml"&gt; Information Security web site.&lt;/a&gt;  This article has a good overview of the  differences between SSH1 and SSH2.&lt;br /&gt; &lt;br /&gt; Once a connection with the remote computer is established then commands can be executed and the results will be returned to the same terminal screen. This brings us to having a connection and being able to run commands remotely. The next couple of days I'll look at secure copying of files, authentication and using Public Keys.&lt;br /&gt; &lt;br /&gt; To return to the &lt;a href="http://kevinuxtips.blogspot.com/2004/07/ssh-tutorial.html"&gt;main directory for the SSH tutuorials&lt;br /&gt; &lt;/a&gt; &lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-109025828872484563?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/109025828872484563'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/109025828872484563'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2004/07/ssh-overview.html' title='SSH Overview'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-109025142554210909</id><published>2004-07-19T10:29:00.000-05:00</published><updated>2005-06-27T11:13:02.433-05:00</updated><title type='text'>SSH tutorial</title><content type='html'>For the next couple of weeks I want to cover the different aspects of the SSH program, along with some different uses for SSH. The topics I want to cover are as follows:&lt;br /&gt;&lt;ol&gt;   &lt;li&gt;&lt;a href="http://kevinuxtips.blogspot.com/2004/07/ssh-overview.html"&gt;Overview&lt;/a&gt;&lt;/li&gt;   &lt;li&gt;&lt;a href="http://kevinuxtips.blogspot.com/2004/07/ssh-secure-copy-file-transfers.html"&gt;Secure Copy/ File Transfers&lt;/a&gt;&lt;/li&gt;   &lt;li&gt;&lt;a href="http://kevinuxtips.blogspot.com/2004/07/ssh-public-keys.html"&gt;Public Keys&lt;/a&gt;&lt;/li&gt;   &lt;li&gt;&lt;a href="http://kevinuxtips.blogspot.com/2004/07/ssh-configuration-files.html"&gt;Configuration Files&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;   &lt;li&gt;&lt;a href="http://kevinuxtips.blogspot.com/2004/07/ssh-compression.html"&gt;Compression&lt;/a&gt;&lt;/li&gt;   &lt;li&gt;&lt;a href="http://kevinuxtips.blogspot.com/2004/08/x11-forwwarding.html"&gt;X11 Forwarding&lt;/a&gt;&lt;/li&gt;   &lt;li&gt;&lt;a href="http://kevinuxtips.blogspot.com/2004/08/port-forwarding.html"&gt;Port Forwarding&lt;/a&gt;&lt;/li&gt;   &lt;li&gt;&lt;a href="http://kevinuxtips.blogspot.com/2004/08/security.html"&gt;Security&lt;/a&gt;&lt;/li&gt;   &lt;li&gt;&lt;a href="http://kevinuxtips.blogspot.com/2004/08/troubleshooting.html"&gt;Troubleshooting&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://kevinuxtips.blogspot.com/2004/11/ssh-configuration-tips-from-sans.html"&gt;SSH Configuration Tips from the SANS Internet Storm Center&lt;/a&gt;&lt;/li&gt;   &lt;li&gt;&lt;a href="http://kevinuxtips.blogspot.com/2005/02/ssh-security-warnings.html"&gt;SSH Security Warnings&lt;/a&gt;&lt;/li&gt;   &lt;li&gt;&lt;a href="http://kevinuxtips.blogspot.com/2005/05/protecting-ssh-using-knownhosts.html"&gt;Protecting SSH using known_hosts hashing&lt;/a&gt;&lt;/li&gt;   &lt;li&gt;&lt;a href="http://kevinuxtips.blogspot.com/2005/05/mobile-ssh-phonemagcom.html"&gt;Mobile SSH@PhoneMag.com&lt;/a&gt;&lt;br /&gt; &lt;/li&gt;   &lt;li&gt;&lt;a href="http://kevinuxtips.blogspot.com/2005/06/denyhosts-ssh-server-attack-denial.html"&gt;DenyHosts, an SSH Server Attack Denial Tool&lt;/a&gt;&lt;/li&gt;   &lt;li&gt;&lt;a href="http://kevinuxtips.blogspot.com/2005/06/security-ssh-tunnelling-in-hotspots.html"&gt;SSH Tunnelling in Hotspots for Privacy&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://kevinuxtips.blogspot.com/2005/06/sshblocker.html"&gt;ssh_blocker&lt;/a&gt;&lt;br /&gt;  &lt;/li&gt;    &lt;/ol&gt; Hopefully I can cover most of the uses of SSH for the average Sysadmin to uses SSh in their everyday environment.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-109025142554210909?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/109025142554210909'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/109025142554210909'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2004/07/ssh-tutorial.html' title='SSH tutorial'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-108991800389454310</id><published>2004-07-15T13:14:00.000-05:00</published><updated>2004-07-15T14:00:03.893-05:00</updated><title type='text'> Locking Down a Linux box part V (conclusion)</title><content type='html'>This will be the final piece on this subject for the time being.  In my look at the initial things to look at when securing a Linux box.  &lt;br /&gt;&lt;br /&gt;This post is going to follow-up on the find command which searched for setuid &amp; setgid permissions.  Vulnerabilities in the setuid/setgid binaries can often lead to root compromise, so they should only be used when necessary.  Once again after running the &lt;em&gt;find / -perm +6000 -type f ls&lt;/em&gt; command we will be given a list of the different files which are ran with root priveleges.  The &lt;a href="http://www.us-cert.gov/reading_room/intruder_det_check.html#A2"&gt;US-CERT site&lt;/a&gt; covers this topic as well as looking at the ncheck command.&lt;br /&gt;&lt;br /&gt;The root privileges should be removed from unnecessary binaries with the chmod command using the -s flag. &lt;br /&gt;&lt;br /&gt;Which permissions to remove this from are dependent on if your system has untrusted local users and which applications are required to run with system privileges from non-root users.   In a future post I'll try and look at the different files which are given root privileges by default and wether they actually need the priviliges or not.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-108991800389454310?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/108991800389454310'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/108991800389454310'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2004/07/locking-down-linux-box-part-v.html' title=' Locking Down a Linux box part V (conclusion)'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-10898310503090342</id><published>2004-07-14T13:23:00.000-05:00</published><updated>2004-07-14T13:50:50.310-05:00</updated><title type='text'> Locking Down a Linux box part IV</title><content type='html'>Today I'm going to go back to the netstat command that I talked about a couple of days ago.  Essentially it will show you all the sockets that are in the LISTEN state and the programs that are listening on each port. The big issue here is what services should this particular Linux box be listening for.  If this box is being used as a Web server should there be a printer hooked up &amp; should the box be running an lpd daemon in the back ground -- NO!!  This is why it is important to only have essential services and daemons running on a Linux box.&lt;br /&gt;&lt;br /&gt;There is a good article at the Techrepublic web site titled "&lt;a href="http://techrepublic.com.com/5100-6270-1053043.html"&gt;Improve your Linux security: Stop unnecessary services&lt;/a&gt;".  Which talks about the same issues.  A sample of the &lt;a href="http://www.userlocal.com/security/securinginetdetc.php"&gt;/etc/initd.conf&lt;/a&gt; file can be found at the userlocal.com web site.&lt;br /&gt;&lt;br /&gt;some other good sites with a good overview of the security implications are found on the &lt;a href="http://www.redhat.com/docs/manuals/linux/RHL-8.0-Manual/security-guide/s1-server-ports.html"&gt;Redhat site&lt;/a&gt;, &lt;a href="http://www.yolinux.com/TUTORIALS/LinuxTutorialInternetSecurity.html"&gt;YoLinux.com&lt;/a&gt; site, and the &lt;a href="http://www.resnet.ubc.ca/appropriate-use/linux.html"&gt;resnet.ubc.ca&lt;/a&gt; site.&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-10898310503090342?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/10898310503090342'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/10898310503090342'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2004/07/locking-down-linux-box-part-iv.html' title=' Locking Down a Linux box part IV'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-108964465330866472</id><published>2004-07-12T09:39:00.000-05:00</published><updated>2004-07-15T12:42:34.660-05:00</updated><title type='text'>Locking Down a Linux box part III</title><content type='html'>In this third entry into my Locking down items I want to look at the commands which tell &lt;br /&gt;the Linux box to run programs under a different user id or group id.  The SETUID and SETGID commands are very powerful commands in that they allow a program to be ran under a different user id or group id.  Why is this important - a program which doesn't need to be running on a server can be given ROOT privileges for no reason and can create a security hole that can be exploited.  as any good admin knows the only services which should be running are those that need to be running on that particular box.&lt;br /&gt;&lt;br /&gt;The fastest way to find these files is to use the &lt;strong&gt;FIND&lt;/strong&gt; command with a few particular options.  The command is &lt;em&gt;find / -perm +6000 -type f ls&lt;/em&gt;  what this command will do is search from the root partition for any file with permissions of 6000 or higher, is a file, and is executable. Obviously any executable file which runs with ROOT privileges should have the interest of the Administrator.  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-108964465330866472?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/108964465330866472'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/108964465330866472'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2004/07/locking-down-linux-box-part-iii.html' title='Locking Down a Linux box part III'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-108956573770068392</id><published>2004-07-11T11:57:00.000-05:00</published><updated>2004-07-14T13:26:29.540-05:00</updated><title type='text'>Locking Down a Linux box part II</title><content type='html'>Continuing with my look at different tools to monitor a Linux box, the next command I want to look at is the netstat command.  Before I look at the &lt;strong&gt;netstat&lt;/strong&gt; cpmmand I want to look at the file which determines which services get started at boot time.  This file is the &lt;em&gt;/etc/initd.conf&lt;/em&gt;, this file manages all the incoming connections into the Linux box.  When a connection is made, inetd starts a copy of the appropriate daemon for that port.  These are the services which are running in the background and which can potentially be security risks on a system.  Running the command &lt;em&gt;cat /etc/initd.conf&lt;/em&gt; and looking for uncommented lines will show you which services are running.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;netstat&lt;/strong&gt;  command&lt;br /&gt;Prints network connections, routing tables, interface statistics, masquerade connections, and multicast memberships. Essentially it will show you all the sockets that are in the &lt;em&gt;LISTEN&lt;/em&gt; state and the programs that are listening on each port. Netstat prints information about the Linux networking subsystem. &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;OPTIONS&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;em&gt;(none)&lt;/em&gt;&lt;br /&gt;By default, netstat displays a list of open sockets. If you don't specify any address families, then the active sockets of all configured address families will be printed.  &lt;br /&gt;&lt;br /&gt;&lt;em&gt;--route , -r&lt;/em&gt;&lt;br /&gt;Display the kernel routing tables.  &lt;br /&gt;&lt;br /&gt;&lt;em&gt;--interface=iface , -i&lt;/em&gt;&lt;br /&gt;Display a table of all network interfaces, or the specified iface).  &lt;br /&gt;&lt;br /&gt;&lt;em&gt;--verbose , -v&lt;/em&gt;&lt;br /&gt;Tell the user what is going on by being verbose. Especially print some useful information about unconfigured address families.  &lt;br /&gt;&lt;br /&gt;&lt;em&gt;--numeric , -n&lt;/em&gt;&lt;br /&gt;Show numerical addresses instead of trying to determine symbolic host, port or user names.  &lt;br /&gt;&lt;br /&gt;&lt;em&gt;-p, --program&lt;/em&gt;&lt;br /&gt;Show the PID and name of the program to which each socket belongs.  &lt;br /&gt;&lt;br /&gt;&lt;em&gt;-l, --listening&lt;/em&gt;&lt;br /&gt;Show only listening sockets. (These are omitted by default.)  &lt;br /&gt;&lt;br /&gt;&lt;em&gt;-a, --all&lt;/em&gt;&lt;br /&gt;Show both listening and non-listening sockets. With the --interfaces option, show interfaces that are not marked  &lt;br /&gt;  &lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-108956573770068392?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/108956573770068392'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/108956573770068392'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2004/07/locking-down-linux-box-part-ii.html' title='Locking Down a Linux box part II'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-108947382731597696</id><published>2004-07-10T10:26:00.000-05:00</published><updated>2004-07-15T13:13:44.226-05:00</updated><title type='text'>Locking Down a Linux box</title><content type='html'>I want to spend the next week looking at some of the different utilities used to lock down a Linux box and make it harder for someone to hack into it.  &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;PS&lt;/strong&gt; command&lt;br /&gt;PS stands for &lt;em&gt;process status&lt;/em&gt;.  This command lists the current running processes on a system appropriate for the privilege of the user using the command and also their characteristics, when used with certain options.  Used to check and minimize security breaches, unwanted accesses, and idle processes. If pid arguments are specified then only those processes are listed, otherwise all processes with the same effective user id and controlling terminal are listed.&lt;br /&gt;&lt;br /&gt;Older versions of the PS program will return an error if the dash (-) is used.  hence sometimes &lt;em&gt;ps -aux&lt;/em&gt; will be shown as &lt;em&gt;ps aux&lt;/em&gt;.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;OPTIONS&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;em&gt;-a, --interactive&lt;/em&gt;&lt;br /&gt;    List all processes associated with terminals.&lt;br /&gt;&lt;em&gt;-t, --terminals|ttys=tty...&lt;/em&gt;&lt;br /&gt;    List processes with controlling terminals in the tty list. &lt;br /&gt;&lt;em&gt;-T, --tree|forest&lt;/em&gt;&lt;br /&gt;    Display the process tree hierarchy in the COMMAND field list.&lt;br /&gt;&lt;em&gt;-u|U, --users=user...&lt;/em&gt;&lt;br /&gt;    List processes with real user id names or numbers in the user list. &lt;br /&gt;&lt;em&gt;-v, --verbose&lt;/em&gt;&lt;br /&gt;    List verbose error messages for inaccessible processes. &lt;br /&gt;&lt;em&gt;-x, --hex&lt;/em&gt;&lt;br /&gt;    List numeric entries in hexadecimal notation.&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-108947382731597696?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/108947382731597696'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/108947382731597696'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2004/07/locking-down-linux-box.html' title='Locking Down a Linux box'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-108938479018866573</id><published>2004-07-09T09:37:00.000-05:00</published><updated>2004-07-09T09:55:02.056-05:00</updated><title type='text'>Useful Apt-Get commands</title><content type='html'>Here are some useful Apt-Get commands that I've found.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;apt-get install rdate&lt;/strong&gt;&lt;br /&gt;This will install the rdate program once it's installed then you can decide which time server to set your clock against.  The two time servers I've found are the National Research Council, Ottawa, Canada or the NIST Laboratories, Boulder, CO.  The respective commands to be used are either &lt;em&gt;rdate time.nrc.ca&lt;/em&gt; or &lt;em&gt;rdate time.nist.gov&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;apt-get install makepasswd&lt;/strong&gt;&lt;br /&gt;This will install the makepasswd utility for randomly generated passwords.  The command after the makepasswd utility is installed is &lt;em&gt;makepasswd --count=10&lt;/em&gt; this would generate 10 passwords of various lengths.  &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;apt-get -s (command) (package name)&lt;/strong&gt;&lt;br /&gt;The -s option tells apt-get to simulate the events that would occur if the command were actually ran.  Simulate prints out a series of lines representing the command action, but does not actually change the system.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-108938479018866573?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/108938479018866573'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/108938479018866573'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2004/07/useful-apt-get-commands.html' title='Useful Apt-Get commands'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-108931308964862463</id><published>2004-07-08T13:28:00.000-05:00</published><updated>2004-11-15T13:05:24.886-06:00</updated><title type='text'>InstallShield X and Linux</title><content type='html'>&lt;a href="http://www.installshield.com/products/x/express/"&gt;InstallShield&lt;/a&gt; has released a version of their popular Installation software for Linux.&lt;br /&gt;&lt;br /&gt;Here is the &lt;a href="http://www.prnewswire.com/cgi-bin/stories.pl?ACCT=104&amp;STORY=/www/story/06-29-2004/0002201666&amp;amp;EDATE="&gt;Press Release&lt;/a&gt; with some of the features:&lt;br /&gt;&lt;br /&gt;   1. Easily create installations that will run on Linux using a dedicated&lt;br /&gt;      point-and-click interface&lt;br /&gt;   2. Compact Project Type for smallest footprint&lt;br /&gt;   3. Instantly Notify Users of Updates&lt;br /&gt;   4. Easily mark files that will always need to be overwritten at installation time&lt;br /&gt;   5. Mobile Device Support&lt;br /&gt;&lt;br /&gt;&lt;a href="http://business.newsforge.com/business/04/06/25/1415214.shtml?tid=2&amp;tid=82&amp;amp;tid=94"&gt;Newsforge&lt;/a&gt; has an interview with Bob Corrigan, the product manager for InstallShield X, and Gerold Franke, InstallShield public relations, regarding their push into the Linux world.&lt;br /&gt;&lt;br /&gt;One of the issues they've identified is the indivudual or corporation who are moving towards Linux and want an easy way to install software without having to get down and dirty with the install process. I think this is an important step in Linux making a move into mainstream use where users are focused on using the applications which can be used with Linux and not having users focus on specific installation processes.&lt;br /&gt;&lt;br /&gt;********************* UPDATE&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.newsisfree.com/iclick/i,60749396,1780,f/"&gt;Linux Journal&lt;/a&gt; has a review of the Installshield utility for Linux. The following statement pretty much sums up what I talked aobut above, "in the Linux world, most of us are used to tweaking config files and compiling from source. This is not done in any other consumer OS. To be able to expand our user base, we need tools such as InstallShield X to make the experience of installing and upgrading as painless as possible."&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-108931308964862463?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/108931308964862463'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/108931308964862463'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2004/07/installshield-x-and-linux.html' title='InstallShield X and Linux'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7552383.post-108930848958559617</id><published>2004-07-08T12:35:00.000-05:00</published><updated>2004-07-08T12:41:29.586-05:00</updated><title type='text'>Last command</title><content type='html'>&lt;strong&gt;last, lastb&lt;/strong&gt; - show listing of last logged in users  &lt;br /&gt;&lt;br /&gt;The &lt;strong&gt;Last&lt;/strong&gt; command searches back through the file &lt;em&gt;/var/log/wtmp&lt;/em&gt; (or the file designated by the -f flag) and displays a list of all users logged in (and out) since that file was created. Names of users and tty's can be given, in which case last will show only those entries matching the arguments.&lt;br /&gt;&lt;br /&gt;The &lt;strong&gt;Lastb&lt;/strong&gt; command is the same as &lt;strong&gt;last&lt;/strong&gt;, except that by default it shows a log of the file &lt;em&gt;/var/log/btmp&lt;/em&gt;, which contains all the bad login attempts. &lt;br /&gt;&lt;br /&gt;The pseudo user reboot logs in each time the system is rebooted. Thus &lt;strong&gt;last&lt;/strong&gt; reboot will show a log of all reboots since the log file was created.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;OPTIONS&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;em&gt;-num&lt;/em&gt;&lt;br /&gt;    This is a count telling last how many lines to show. &lt;br /&gt;&lt;br /&gt;&lt;em&gt;-n num&lt;/em&gt;&lt;br /&gt;    The same. &lt;br /&gt;&lt;br /&gt;&lt;em&gt;-t YYYYMMDDHHMMSS&lt;/em&gt;&lt;br /&gt;    Display the state of logins as of the specified time. This is useful, e.g., to determine easily who was logged in at a particular time -- specify that time with -t and look for "still logged in". &lt;br /&gt;&lt;br /&gt;&lt;em&gt;-R&lt;/em&gt;&lt;br /&gt;    Suppresses the display of the hostname field. &lt;br /&gt;&lt;br /&gt;&lt;em&gt;-a&lt;/em&gt;&lt;br /&gt;    Display the hostname in the last column. Useful in combination with the next flag. &lt;br /&gt;&lt;br /&gt;&lt;em&gt;-d&lt;/em&gt;&lt;br /&gt;    For non-local logins, Linux stores not only the host name of the remote host but its IP number as well. This option translates the IP number back into a hostname. &lt;br /&gt;&lt;br /&gt;&lt;em&gt;-i&lt;/em&gt;&lt;br /&gt;    This option is like -d in that it displays the IP number of the remote host, but it displays the IP number in numbers-and-dots notation. &lt;br /&gt;&lt;br /&gt;&lt;em&gt;-o&lt;/em&gt;&lt;br /&gt;    Read an old-type wtmp file (written by linux-libc5 applications). &lt;br /&gt;&lt;br /&gt;&lt;em&gt;-x&lt;/em&gt;&lt;br /&gt;    Display the system shutdown entries and run level changes. &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7552383-108930848958559617?l=kevinuxtips.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/108930848958559617'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7552383/posts/default/108930848958559617'/><link rel='alternate' type='text/html' href='http://kevinuxtips.blogspot.com/2004/07/last-command_08.html' title='Last command'/><author><name>crow930</name><uri>http://www.blogger.com/profile/00494030457204436888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry></feed>
