Category: linux

Block xmlrpc.php

To block a whole server from using xmlrpc.php (sometimes used for an attack vector) just put this in your apache2.conf file:   # remove access to all xmlrpc.php files (attack vector) <Files xmlrpc.php> Order Deny,Allow Deny from all </Files> More info here.

Samba shares permissions

I couldn't get a samba share to give the same permissions as the parent folder until I added this to the share: inherit permissions = yes Be sure to restart samba to see the results.   (found here)

Linux Larnin'

I did a lot of Linux Larnin' today, here's some of it: Linux file permissions (traditional UNIX permissions) are very basic. You can set two owners, one user and one group, and then set access for the user, the group, and everyone else. That's it. So, in order to have a robust permission system you …

Continue reading

Moving Linux to a new network

We moved our Linux box and brought it into our logical network. This meant changing the IP, default DNS and gateway. Luckily I found an excellent book excerpt about TCP/IP configuration in Linux that told me what I needed to do. Here's the steps we took in a nutshell: Used ifconfig to quickly change the …

Continue reading

Linux commands

Note to self: To get a list of volumes and their free space from the Linux command line… df -h To get a list of all the running processes… ps -A

Apache Doesn't Start After System Restart

Linux web server restart problem… cd /etc/apache/ httpd -t httpd.conf [which websites are "missing", comment them out in httpd.conf] apachectl restart …Had a power outage today which means our linux web server went down. And, once again, the web server didn't start because it couldn't find all the web sites listed in it's config file. …

Continue reading