how to set execute permission in linux
chmod +x script-name-here.sh #Change the "script-name-here" to the name of your .sh file.
how to set execute permission in linux
chmod +x script-name-here.sh #Change the "script-name-here" to the name of your .sh file.
set file permissions using code
private function set_perms($file, $is_dir, $permission)
{
$perm = substr(sprintf("%o", fileperms($file)), -4);
$dirPermissions = $permission;
$filePermissions = $permission;
if($is_dir && $perm != $dirPermissions){
chmod($file, octdec($dirPermissions));
}
else if(!$is_dir && $perm != $filePermissions){
chmod($file, octdec($filePermissions));
}
flush();
}
$permission = '0777';
$dir = storage_path('framework');
$dp = opendir($dir);
while($file = readdir($dp))
{
$path = $dir . DIRECTORY_SEPARATOR . $file;
$is_dir = is_dir($path);
set_perms($path, $is_dir, $permission);
}
how to set execute permission in linux
chmod -x script-name-here.sh #Change the "script-name-here" to the name of your .sh file.
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us