• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[HELP] Permissions File Linux

Bloody-War

New Member
Joined
Feb 9, 2016
Messages
88
Reaction score
1
Hello Otland.
I Am Using Linux Lighttpd MY PROBLEM IS: People Can Enter To My Layout or in any folder in WWW.

Please i Need Help To Set Permissions.

i wanna do Show image on website, and i wanna 403 Forbidden FOR FOLDERS!
 
Last edited:
You've messed up the rigths, chmod the whole folder with 0644.
Usually 0644 is a good choice, which gives the owner read and write rights, but everybody else only.

0644 works like this:
Code:
*(owning)User: read & write
*Group: read*Other: read

Some files might need 755 as permission, if so set the files permission to that.
 
You've messed up the rigths, chmod the whole folder with 0644.
Usually 0644 is a good choice, which gives the owner read and write rights, but everybody else only.

0644 works like this:
Code:
*(owning)User: read & write
*Group: read*Other: read

Some files might need 755 as permission, if so set the files permission to that.
can you tell me what commands i need to run for fix that please
 
Use the command chmod like this:

First we can give all files 0644 as permission type:
Code:
chmod -R 0644 /path/to/website
-R means recursive, which means:
Operating on a directory and its contents, including the contents of any subdirectories.

Once you've set all files to 0644 we can set the directories to 0755
Code:
chmod 0755 /path/to/directory
 
Use the command chmod like this:

First we can give all files 0644 as permission type:
Code:
chmod -R 0644 /path/to/website
-R means recursive, which means:
Operating on a directory and its contents, including the contents of any subdirectories.

Once you've set all files to 0644 we can set the directories to 0755
Code:
chmod 0755 /path/to/directory
okey now i no have permisons to any folder and i cant enter to website..
chmod 0755 /var/www/phpmyadmin
still sayng
Forbidden
 
Do you have phpmyadmin inside /var/www/phpmyadmin or is it just an empty folder?

Make sure phpmyadmin's config.inc.php file got permission 0755.
Navigate to the config file and run this:
Code:
chmod 0755 config.inc.php
 
Do you have phpmyadmin inside /var/www/phpmyadmin or is it just an empty folder?

Make sure phpmyadmin's config.inc.php file got permission 0755.
Navigate to the config file and run this:
Code:
chmod 0755 config.inc.php
no i have files in phpmyadmin and i dont got config.inc.php inside phpmyadmin folder

!help

For example i wanna show images on website but i dont want people acces that folder!
Can some one help me please
 
Last edited by a moderator:
Back
Top