Run a script from anywhere

Cheetah asked: I have a script: #!/bin/bash echo “$(dirname $(readlink -e $1))/$(basename $1)” that sits here: /home/myuser/bin/abspath.sh which has execute permissions. If I run echo $PATH I get the following: /usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/myuser/bin I wish to be able to, from any directory, […]

Continue reading »

Configuring RHEL 6.6 repositories

lorenzog asked: I’ve been given a RHEL 6.6 system which seems poorly configured – there is no subscription-manager tool available and network access has been restricted upstream. I was able to obtain outbound HTTPS connectivity but no FTP (don’t ask). […]

Continue reading »

SPF redirect modifier

hmiller asked: The SPF record for domain replace the current record. The macro-expanded domain is also substituted for the current-domain in those look-ups. Examples: In the following example, the client IP is 1.2.3.4 and the current-domain is example.com. “v=spf1 redirect=example.com” […]

Continue reading »

Postfix Catchall – Avoid Spam

Pedro Lobito asked: I’ve 2 accounts on my CentOS server configured with catchall email accounts. Lately I’ve been receiving bounced emails with virus that were supposedly sent from my server account, Ex: somestragename@mydomain.com. The postfix mail server is configured to […]

Continue reading »
1 2 3 318