cron – email recipient other the root

bsd-daemon-tux-logo

We all use cron (this part of the world, “open source” world). But some times we wouldn’t want to send the output or error messages to root, or anyone in /etc/aliases. Only to an email we trust or a normal user on the server. Cron is flexible. Thanks Vixie, Paul Vixie.

Problem :

Status of cron jobs are often sent to root of the server. Is there a way to only send to another email address other then root? or other then the aliases in /etc/aliases?


Solution :

Read More »

ssh persistent error “Permission denied (publickey).”

ssh-logo


One fine day while checking up on cron backup job on the server, it recorded an error while doing a rsync to the backup storage server. All other users have no problem login onto the backup storage server, just this particular username have problem. After checking out the interactive verbose output of the attempt ssh server session, public & private key, log files, server user’s credentianls, below is the solution :


Problem :

ssh to server that uses only public key authentication only persistently got,

Permission denied (publickey).

Checked log file and got,

sshd: Authentication refused: bad ownership or modes for directory
/user/home/directory


Solution :



Read More »

Problem upgrading php related packages in PORTS on FreeBSD

bsd-daemon-logophp-logo


Apache & php are a essential to any open source servers. Not just only web, but a lot of utilities / programs are running on them as well. This make them popular. Popular to target vulnerabilities. Program bugs are also less desirable if not patching them regularly. Not to mentioned the latest functionalities that will make our life easier. All in all, less user complains, more user prasing. :p


Problem :

Upgrading php prior 5.2.8 giving errors. e.g.

warning: package ‘php5-pcre-5.2.6_2′ requires ‘php5-5.2.8′, but ‘php5-pcre-5.2.6_2′ is installed


Solution :



Read More »

BIND error “permission denied”

isc-logo


Problem :

Error found in log file,

general: error: dumping master file: master/tmp-cFRWfFf7ah: open: permission denied

while doing a “rndc“, “/etc/rc.d/named restart” or “/etc/init.d/named restart“.


Solution :



Read More »

find – files modified in period of time

gnu-logo


Problem :

search every files recursively from the current directory that the modification time is the last 14 days with .conf extension


Solution :



Read More »

Reverse SSH

ssh-logo


Problem :

SSH server / PC in a close network unable to open port 22 or ssh port for public access


Solution :



Read More »

Add group(s) to user in Linux or FreeBSD

bsd-daemon-tux-logo


FreeBSD :

pw usermod username -G grouplist

** grouplist is a comma separated list of group to be assign to the username. Exit & login again for the group permission to take effect.


Linux :

usermod -G groupname username


Adiós !!!

Apache failed to start – httpready

apache-logo


Problem :

While doing one of the below :

apachectl start
apachectl restart
/usr/local/etc/rc.d/apache start
/usr/local/etc/rc.d/apache restart

an error message appear

No such file or directory: Failed to enable the 'httpready' Accept Filter


Solution :


Read More »

how to retrieve akismet API key –aka– wordpress.com api key

wp-logo


After re-installing a new wordpress  blog, we only found out that the akismet plugin key id has lost. But without the akismet plugin key, akismet simply won’t allow to activate. We could apply a new account from wordpress.com but that would render our presiously applied wordpress.com account email address useless. More over, one might only have 1 email address to spend. How do we recover it? Scroll down :



Read More »

Please sponsor my coffee if you find my posts worth reading, thanks!


-->
Improve the web with Nofollow Reciprocity.