|
|||
|
Is there a way to set /dev/null to :fail:?
We have a bunch of people who have set /dev/null. We also have a bunch of people who have set various combinations of blackhole and fail to things like;
blackhole: :blackhole blackhole fail: :fail fail /dev/null I used the replace command on the server to correct it; replace :blackhole: :fail: -- /etc/valiases/* replace blackhole: :fail: -- /etc/valiases/* replace :blackhole :fail: -- /etc/valiases/* replace :fail :fail: -- /etc/valiases/* replace fail: :fail: -- /etc/valiases/* BUT there are a bunch of people who have set it to /dev/null Is there a way to use the replace command to set /dev/null to :fail:? replace /dev/null :fail: -- /etc/valiases/* does not fix it. Last edited by jackie46; 04-23-2006 at 12:33 PM. |
|
||||
|
That ought to do it. This is what I use as a first pass:
Code:
replace :blackhole: :fail: -- /etc/valiases/* replace :blackhole :fail: -- /etc/valiases/* replace blackhole: :fail: -- /etc/valiases/* replace blackhole :fail: -- /etc/valiases/* replace " fail:" " :fail:" -- /etc/valiases/* replace /dev/null :fail: -- /etc/valiases/* cd /etc/valiases/ grep fail * | grep -v " :fail:"
__________________
Jonathan Michaelson cPanel Forum Moderator Need your cPanel servers secured and tuned? cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf http://www.configserver.com |
|
||||
|
That's correct. The actual entry in /etc/valiases/domain file should be:
*: :fail: which is what you have.
__________________
Jonathan Michaelson cPanel Forum Moderator Need your cPanel servers secured and tuned? cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf http://www.configserver.com |
![]() |
| Thread Tools | |
| Display Modes | |
|
|