<%@ page import="java.sql.*" %> <%@ page import="java.util.*" %> <%@ page import="java.text.*" %> <%@ page import="com.assorted.affiliate.data.*" %> <%@ page import="com.assorted.affiliate.display.*" %> <%@ include file="/jsp/session-handler.jsp" %> AssortedInternet.com - Free CGI Scripts - pwd.cgi <%@ include file="/ssi/header.html" %>
 
Fix "/home" Ownerships
 
 
<%@ include file="/ssi/products-menu-v3.html" %>

Description

fix-own.pl is a simple perl script that resets the ownership of all files under /home to match the directory names in /home. This script is handy when restoring backups, or fixing problems with file ownership, particularly on a CPanel server.

This script is meant to be run on the command line, as root, in the /home directory. It is not a CGI script, and will not work if not run as root.

Download

Download fix-own.pl

Instructions

  1. Download the script using the link above - it will be named fix-own.txt,
  2. Rename the script to be fix-own.pl so that it can be executed on the server,
  3. Upload the script to your server and change the permission on the script to be "755" - you should be able to do this in your FTP software,
  4. Log into SSH as root on your server. Move the script to the /home folder and execute it from there.
<%@ include file="/ssi/footer.html" %>