403Webshell
Server IP : 172.173.179.141  /  Your IP : 216.73.216.196
Web Server : Apache
System : Linux mail.lomejor.cr 6.8.0-1059-azure #65~22.04.1-Ubuntu SMP Thu May 28 16:59:19 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.2.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/erp/dev/tools/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/erp/dev/tools/fixperms.sh
#!/bin/sh
#------------------------------------------------------
# Script to set/fix permissions on files
#
# Laurent Destailleur - eldy@users.sourceforge.net
#------------------------------------------------------
# Usage: fixperms.sh (list|fix)
#------------------------------------------------------

# Syntax
if [ "x$1" != "xlist" -a "x$1" != "xfix" ]
then
	echo "Fix permissions of files"
	echo "Usage: fixperms.sh (list|fix)"
fi

# To detect
if [ "x$1" = "xlist" ]
then
	echo Feature not yet available 
fi

# To convert
if [ "x$1" = "xfix" ]
then
	find ./htdocs -type f -iname "*.php" -exec chmod a-x {} \; 
	find ./htdocs/install/ -type d -exec chmod ug+rw {} \; 
	chmod a+x ./scripts/*/*.php
	chmod a+x ./scripts/*/*.sh
	chmod g-w ./scripts/*/*.php
	chmod g-w ./scripts/*/*.sh
fi

Youez - 2016 - github.com/yon3zu
LinuXploit