Category Archives: Server
Execute script at startup
Write a script. put it in the /etc/init.d/ directory. Lets say you called it FOO. You then run $ update-rc.d FOO defaults You also have to make the file you created, FOO, executable, using $chmod +x FOO
Run executables/scripts with root privileges as regular user
This is a workaround, because many distributions have disabled the usage of setuid on shell scripts. A solution is to create a small C-program, setuid that program that runs the shell script. This is how: Create a new file, say … Continue reading
Update postfix /etc/postfix/virtual as regular user
[Please note: Many distributions have the usage of setuid on scripts disabled, so this method won't work! See the this post instead!] Or actually, running any script with privileges of the owner of the file. This is how: Use chmod … Continue reading
WebDAV on Ubuntu
Prettttty easy… http://ubuntuforums.org/showthread.php?t=119228
IPTables
Old-school-command-line-IPTables Listing your IPTables with line numbers: iptables -L <chain> –line-numbers Adding an ACCEPT rule to chain <chain>, with protocol <prot>, accepted source <src> and destination port <dport> goes like this: iptables -A <chain> -p <prot> -s <src> –dport <dport> … Continue reading
Howto logrotate
Not my own post, put placed here for reference: Are you administering a Linux/Unix system that’s running out of space? Getting to grips with the logrotate utility can solve a lot of problems for you. Especially when talking about apache … Continue reading
Shared IP, multiple vhosts and multiple SSL certificates on Apache
I’ve been trying to figure out a way to have two domains on a single physical server with two different SSL certificates. Turns out that it is possible to have multiple VirtualHosts on port 80 (Default http), but because of … Continue reading