--- rpms/e-smith-ibays/sme10/e-smith-ibays-2.6.0-create_tmp_folder_in_ibays.patch 2016/06/26 16:30:04 1.2 +++ rpms/e-smith-ibays/sme10/e-smith-ibays-2.6.0-create_tmp_folder_in_ibays.patch 2016/06/26 17:43:08 1.3 @@ -16,12 +16,12 @@ diff -Nur e-smith-ibays-2.4.0/root/etc/e $experm |= $::fileperm; chmod $experm, $_; } -+ ##chmod 0700 ; chown www:www if upload_tmp_folder exists ++ ##chmod 0600 ; chown www:www if upload_tmp_folder exists + my $tmpdirperm = (('/var/cache/e-smith/files/ibays/' . $ibay->key . '/tmp')||''); + if ( -d $tmpdirperm) + { + system ('/bin/chown', '-R', 'www:www' , $tmpdirperm); -+ system ('/bin/chmod' ,'-R', '0700' , $tmpdirperm ); ++ system ('/bin/chmod', '0600' , $tmpdirperm ); + } } } @@ -58,7 +58,7 @@ diff -Nur e-smith-ibays-2.4.0/root/etc/e + #we test the condition if /tmp exists or if it is disabled in the Ibay + unless (-d $path || $tmpdb eq "disabled") + { -+ mkdir $path, 0700 or warn "Could not create dir $path: $!"; ++ mkdir $path, 0600 or warn "Could not create dir $path: $!"; + chown $uid, $gid, $path or warn "Could not chown dir $path: $!"; + } +}