Friday, October 26th, 2007 at
10:35 am
Are you new here? Subscribe to my RSS feed. Thanks for visiting!
Need to find out what all the file types in a certain directory are? Simple!
Execute the following on the command line:
find /path/here/ -type f -print | xargs file
I typed: find /home/adam/test/ -type f -print | xargs file
The output will look something like this:
/home/adam/test/music.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 44100 Hz
/home/adam/test/package.deb: Debian binary package (format 2.0)
/home/adam/test/file.tar.gz: gzip compressed data, from Unix, last modified: Tue Jun 20 12:51:11 2006
/home/adam/test/widget.xml: ASCII text, with CRLF line terminators
/home/adam/test/logfile.txt: empty
Cheers!
Popularity: 4% [?]
Wednesday, October 24th, 2007 at
7:05 am
If you’re worried about FTP users exploring outside of their home directory, you want to set up what is called a chroot jail.
To do this, open the /etc/vsftpd.conf file:
vim /etc/vsftpd.conf
and make the following modifications (line should be uncommented):
chroot_local_user=YES
After you save the file, restart vsftpd:
/etc/init.d/vsftpd restart
Now all users will be jailed to their own home directory when using FTP.
Now, lets say you only want to jail certain users, and allow other users to browse other directories. To do this, you’ll want to again edit the configuration file.
vim /etc/vsftpd.conf
uncomment the following lines:
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list
After you save the file, restart vsftpd:
/etc/init.d/vsftpd restart
Now you will need to create the /etc/vsftpd.chroot_list file and add in users you do NOT want to jail. By default, all users will be jailed. In the /etc/vsftpd.chroot_list file you can specify what users to allow to browse all directories.
Popularity: 5% [?]
Wednesday, January 3rd, 2007 at
8:54 am
Build Your Own Debian/Ubuntu LAMP Server – Quick & Easy Do it Yourself Installation
This howto tutorial was written by Scott from MySQL-Apache-PHP.com.
- Apache 2 – Linux Web server
- MySQL 5 – MySQL Database Server
- PHP4/5 – PHP Scripting Language
- phpMyAdmin – Web-based database admin software.
Note: Linux + Apache + MySQL + PHP/Perl together commonly known as LAMP Server.
Read the rest of this entry
Popularity: 26% [?]
Friday, December 1st, 2006 at
8:17 am
There are many settings I find myself adjusting after every Slackware installation I complete. This article takes place immediately after an installation of Slackware 11, logged in as root for the first time. Here are some of the settings I adjust: Read the rest of this entry
Popularity: 11% [?]
Tuesday, November 28th, 2006 at
1:02 pm
If you are a system administrator who allows remote access to your server or desktop, you may want to disable certain users from logging into the system both remotely and locally. This article will explain how to prevent certain users from logging into your Linux machine via SSH (OpenSSH_4.4p1) and FTP (vsftpd 2.0.5).
First we must understand that in most cases there are two different ways an allowed user may be logging into your Linux server.
Read the rest of this entry
Popularity: 6% [?]
Friday, November 24th, 2006 at
1:41 pm
If your a Linux user who enjoys learning new things, I recommend taking a look at the following 20 must read HOW TOs and Guides I’ve gathered over the years. These documents are vital to both new and old Linux users…
Read the rest of this entry
Popularity: 29% [?]
Monday, November 6th, 2006 at
12:42 pm
This is a simple walk through guide to installing nessus, configuring nessus, and running the popular Nessus Vulnerability Scanner on Linux. From the Nessus website: Nessus is the world’s most popular vulnerability scanner used in over 75,000 organizations world-wide. Many of the world’s largest organizations are realizing significant cost savings by using Nessus to audit business-critical enterprise devices and applications. Read the rest of this entry
Popularity: 5% [?]
Wednesday, November 1st, 2006 at
10:46 am
If you are wanting to connect your Windows machine(s) to your Linux machine(s) over your network, then Samba is what you need. Essentially, Samba allows your Linux machine to communicate with your Windows network to share files, resources, and printers. This document will cover the steps of installing and configuring Samba on Slackware 11.0.0. Read the rest of this entry
Popularity: 21% [?]
Tuesday, October 31st, 2006 at
11:55 am
Following are a collection of nifty Windows XP Tips & Tricks that I have gathered and used over time.
- Delete Files Immediately
This will allow you to delete files from your system without sending them to the recycle bin first.
Select Start > Run… type gpedit.msc then select User Configuration > Administrative Templates > Windows Components > Windows Explorer then locate the ‘Dsupo not move deleted files to the Recycle Bin‘ setting and set it.
Read the rest of this entry
Popularity: 6% [?]
Thursday, September 7th, 2006 at
11:55 am
One very important aspect of computer security and hack prevention is the collection and assessment of system log files. In the mind of a hacker, when gaining unlawful entry to a system their first instinct is to cover all traceable tracks. This means deleting log files and possibly even setting up backdoors to enter again at will sometime later in the future. It is important, as a system administrator, to ensure that even if your system has been broken into or tampered with, that you have traceable evidence to figure out exactly what went wrong, and where it went wrong. Hackers tend to tamper with system logs making this sometimes impossible to figure out. Setting up a remote syslog server for all of your servers to send their logs to is how we can ensure that your logs will be completely accurate and un tampered with.
The syslog server configured in this example is an old 486 with an 8GB hard drive, running Slackware Linux 10.2. However, the configuration and commands will work for just about any Linux distribution.
Read the rest of this entry
Popularity: 13% [?]