Wednesday, April 24, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 7466  / 1 Year ago, mon, may 8, 2023, 1:29:45

For some reason I can't change the file permissions of my var/www folder or anything else inside it. I've tried using gksu-nautilus to change the permissions but it doesn't work. When I open the properties window, and select a different level of permission for myself, it instantly switches back to the previous setting.



Any idea of how to fix this?


More From » permissions

 Answers
4

Use commands, from terminal. Ctrl + Alt + T by default, but you can find it in GNOME menu.



So open that terminal, and type:



sudo chmod 775 FILE(S) - for folders, use recursive option: sudo chmod 775 DIR(S) -R



The numbers are from the permissions: 7 means rwx(read, write, execute), 5 r-x(read, execute), 6 rw- (read, write).



The tree number combination is: ogx (owner, group, everyone).






To change group an owner, use:



sudo chown OWNER:GROUP FILE/FORDER -R eg. owner: root, group:users; (R=recursive)



To change group only, use:



sudo chgrp GROUP FILE/FOLDER -R ... same thing...



Please read the manual pages of these programes: man chmod chown chgrp - for more details.


[#44781] Monday, May 8, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
njuash

Total Points: 402
Total Questions: 125
Total Answers: 98

Location: Jersey
Member since Sun, Dec 4, 2022
1 Year ago
njuash questions
Wed, Jun 8, 22, 11:53, 2 Years ago
Wed, Nov 30, 22, 11:42, 1 Year ago
Mon, May 30, 22, 04:33, 2 Years ago
Mon, Apr 10, 23, 03:40, 1 Year ago
;