File: //proc/self/root/proc/self/root/scripts.20110531.215904.25158/chownpublichtmls
#!/usr/bin/perl
# cpanel - chownpublichtmls Copyright(c) 2010 cPanel, Inc.
# All rights Reserved.
# copyright@cpanel.net http://cpanel.net
# This code is subject to the cPanel license. Unauthorized copying is prohibited
BEGIN { unshift @INC, '/usr/local/cpanel'; }
require '/scripts/safetybits.pl';
while ( @PW = getpwent() ) {
if ( -d "$PW[7]/public_html" && -e "/var/cpanel/users/$PW[0]" ) {
print "Chowning $PW[0]....";
safe_recchown( $PW[2], $PW[3], "$PW[7]/public_html" );
print "Done\n";
}
}
if ( -e '/var/cpanel/fileprotect' ) {
exec '/scripts/enablefileprotect';
}
else {
exec '/scripts/disablefileprotect';
}