Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 2833  / 3 Years ago, thu, july 29, 2021, 11:35:55

I have setup apache and php and i work in /var/www so i've changed the permission of this folder owning it from my user and giving all others users read-only access.



But when i create new files using right click->create document they get created with "no rights" for others users and also for my group while the folder permission are to giv read-only to all users.



How can i solve?



This is the output of ls -la /var/www



matteo@matteo-stable:~$ ls -la /var/www
totale 24
drwxrwsr-x 5 matteo matteo 4096 2011-12-17 13:55 .
drwxr-xr-x 18 root root 4096 2011-12-17 14:03 ..
drwxrwsr-x 5 matteo matteo 4096 2011-12-18 19:34 CloudNotesCI
drwxrwsr-x 6 matteo matteo 4096 2011-12-11 19:52 CloudNotesLayout
-rw-rw-r-- 1 matteo matteo 25 2011-12-11 20:26 info.php
drwxrwsr-x 7 matteo matteo 4096 2011-12-17 13:55 OldP

More From » filesystem

 Answers
4

I've found the solution.



My umask is



022


so every new file should give read and execute rights to all users out and in my groups like what i want.



The problem was in my templates files which had different permission, now i've changed thems it works correctly


[#41394] Saturday, July 31, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
musining

Total Points: 171
Total Questions: 124
Total Answers: 121

Location: Zambia
Member since Thu, Jun 25, 2020
4 Years ago
;