#!/usr/bin/perl # cPlicensing.net – scripts Copyright(c) 2003 cPlicensing.net. # All rights Reserved. # support@cPlicensing.net http://cPlicensing.net # Version: 0.02 print “Starting Scan…\n”; while(@USERS=getpwent()){ if (-d “$USERS[7]/public_html”) { if (-f “$USERS[7]/public_html/404.shtml”) { print “$USERS[0] 404.shtml exists\n”; } else { print “$USERS[0] creating 404.shtml…”; open(FILE,”>$USERS[7]/public_html/404.shtml”) or die “Unable to create file: $!”; close(FILE); chmod(0644, [...]
Entries from December 2011
add a 404 page to each website on a cpanel server
December 28th, 2011 by EZ linux · No Comments
Tags: Cpanel and WHM · Linux Security · Linux Software / Scripts
Backup cleaner script for cpanel
December 28th, 2011 by EZ linux · No Comments
#!/usr/bin/perl # cPlicensing.net – scripts Copyright(c) 2003 cPlicensing.net. # All rights Reserved. # support@cPlicensing.net http://cPlicensing.net # Unauthorized copying is prohibited #Version: 0.01 use POSIX; $delete_old = ’1′; #0 or 1, set to 1 to remove old account backups if($ARGV[0] eq “-d”) { $delete_old = ’1′; } $|++; POSIX::nice(19); print “Reading Backup Config…”; open(CPBACK,”/etc/cpbackup.conf”) or [...]
Tags: Cpanel and WHM · Linux Security · Linux Software / Scripts
Manually changing an IP in Linux
December 17th, 2011 by EZ linux · No Comments
It’s pretty easy actually. Just go to this directory: /etc/sysconfig/network-scripts Then you will see a file for eachnetwork port, for example my server is: ifcfg-eth0 and ifcfg-eth1 I already have the ifcfg-eth0 set up from the install but I want to use the second one for back ups so I just opened the file and [...]
Tags: Cpanel and WHM · Hardware · Linux Drivers · Linux Operating Systems · Linux Security · Linux Software / Scripts · Linux Tricks · Ports
