inspect publish using correct chmod on cgi