I want to run my project on localhost and i gave permission to all directories including in my project. But the problem is in Image directory. how can i give permission to each and every images. it is quit difficult for me because there is lots of images in my image folder. I used sudo chmod 777 < directory>
Asked
Active
Viewed 852 times
0
-
yeah its working. – Param Aug 05 '14 at 20:51
-
3Setting permissions to 777 for **image files** is a **bad idea**. What are you trying to do? – kraxor Aug 05 '14 at 20:56
-
2No! not 777! You want 640! – Tim Aug 05 '14 at 21:09
-
1Or `644`. Preferably the entire directory should be group-owned by `www-data` and given `g+r`. – muru Aug 05 '14 at 21:13
-
m trying to run my project on localhost.. i give the permission because it is not showing the proper design . – Param Aug 06 '14 at 07:48
1 Answers
1
This is an evil trick that I some times use if I am lazy about changing permissions.
- [Cautionary] Disconnect the internet to prevent shenanigans from rogue elements.
- Ctrl+Alt+T to open up a terminal.
sudo nautilus- Navigate to your pictures directory.
- Select the files you want to change permissions of
- Right-click to Properties.
- Goto Permissions Tab.
- Do your ghastly deed.
- Exit Nautilus.
- Reconnect internet.
Remember; this is evil, because you are giving a file manager incredible power.