SCP only users UBUNTU

Monday, April 7th, 2008
apt-get install scponly #answer yes to the question in the blue dialogue about scponlyc and suid
cd /home/
mkdir jails
chown root jails
chmod 755 jails
cd jails/
cd /usr/share/doc/scponly/setup_chroot
gunzip setup_chroot.sh.gz
chmod u+x setup_chroot.sh
./setup_chroot.sh

----
setup_chroot.sh is interactive and will prompt for the following information for each user you want to set up:
username to install:
home directory you wish to set for this user:
name of the writeable subdirectory:

http://ubuntuforums.org/showthread.php?t=451510

.htaccess password protect

Thursday, February 28th, 2008
  1. Make an .htpasswd file. The htpasswd command in Unix does this. You should put the password file outside of your web directory. So a command like “htpasswd -bc /home/matt/.htpasswd review donotenter” will create a new file using a username of review and a password of donotenter into the file /home/matt/.htpasswd . If you were to run the command “cat /home/matt/.htpasswd” you might see a line like “review:M1OdtjdGiDn1Y”.
  2. Make an .htaccess file. In this case, the file would be located at /home/matt/www/.htaccess and it would look something like
    AuthUserFile /home/matt/.htpasswd
    AuthName EnterPassword
    AuthType Basic
    <Limit GET POST>
    require valid-user
    </Limit>

http://www.mattcutts.com/blog/htaccess-101/

http://www.maths.ox.ac.uk/help/faqs/www/htaccess

Name based hosting apache2

Wednesday, January 30th, 2008

http://httpd.apache.org/docs/2.2/vhosts/name-based.html

Setting up Apache - even more useful!

Tuesday, January 29th, 2008

http://httpd.apache.org/docs/1.3/mod/mod_mime.html#addtype

Useful referance for configuring apache

Tuesday, January 29th, 2008

http://articles.techrepublic.com.com/5100-22-5076696.html

Login for most things on Ubuntu - forgotten your mysql root password

Tuesday, January 29th, 2008

need a login for everything in ubuntu look here:

/etc/mysql/debian.cnf

Vhosts on Apache (just for referance)

Tuesday, January 22nd, 2008

http://httpd.apache.org/docs/2.0/vhosts/examples.html