inicio mail me! sindicaci;ón

Starting services automatically in CentOS

Had a service in CentOS 4 server that went down every time the box rebooted. Got tired of starting it manually so I had to go find the command to start it automagically.

Surprisingly, it has nothing to do with “service”, which is how you start/stop it manually. It has the very unintuitive command “chkconfig” to make it start on boot. What a choice: chckconfig!

Oh well, here it is:

chkconfig --add httpd
chkconfig httpd on

Finding group/world writable files and directories in Linux

find / -type f \( -perm -2 -o -perm -20 \) -exec ls -lg {} \;

CVS tunnel via CLI SSH

/usr/bin/ssh -v -a -L 2401:localhost:2401  cvsnobody@ns2.cyterm.com