Linux and Apache Webserver Tips

BASH Commands

Here is a great resource

 

Backing Up Linux and also this for backing up and restoring

 

RAID in Linux and also this article as well

Unix permissions

0 = Nothing
1 = Execute
2 = Write
3 = Execute+Write (1+2)
4 = Read
5 = Execute+Read (1+4)
6 = Write+Read (2+4)
7 = Execute+Read+Write (1+2+4)

User Group World*

755 = User has 7 (R+W+E) Group has 5 (R+E) and World has 5 (R+E)

640 = User has 6 (R+W) Group has 4 (R) and World has 0 (nothing)

(* World is like the Everyone group in Windows)

Common Permissions for web files

 

How to apply permissions

chmod 640 filename

(ex. chmod 755 admin.php)

Notes

Directories are just special files. In order to allow someone to 'traverse' the directory tree (normally a very bad thing from a security standpoint!!), the user must have eXecute permissions on the directory even if they have read/write privileges.

(Above notes were gratefully borrowed from www.evolt.org/article/a_quick_and_dirty_chmod_tutorial/18/541 )

Security Related Articles

Mask Your Webserver For Security

9th USENIX Security Symposium Paper 2000

 

Sample HTTPD.conf file on Apache Webserver that allows for multiple websites on same IP address

How to use VIM (a basic text editor for when the server is not in XWindows mode)

Remote logins to Linux Server from a Windows machine

 

To use the VSFTPD server in Fedora Core 6, you will need this configuration

Change the line chroot_local_user=YES to be NO

 

To set up a new folder and user for the folder

to verify:

You will need to look at this as well

Or, try PureFTPD

Documentation for PureFTPD is found here

After install, it will install into /usr/local/sbin

Getting apps to run automatically in Linux

Also here


Back to Class Tips

Back to Home