• 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!

Linux Permission Denied while ./tfs

Joriku

Working in the mines, need something?
Joined
Jul 16, 2016
Messages
1,076
Solutions
15
Reaction score
370
Location
Sweden
YouTube
Joriku
as the title says
617b062da4dcd8ea47b4ff8e15cec730.png
 
Solution
Do not use 777 you can be hacked
Go to www folder
Code:
cd /var/www
or
Code:
cd /var/www/html
and press comand:

Code:
chown -R www-data:www-data /var/www/html
or
chown -R www-data:www-data /var/www
Code:
chmod -R 755 /var/www/html
or
chmod -R 755 /var/www/html

Or
Code:
chmod -R 755 /var/www/html config/config.php
Do not use 777 you can be hacked
Go to www folder
Code:
cd /var/www
or
Code:
cd /var/www/html
and press comand:

Code:
chown -R www-data:www-data /var/www/html
or
chown -R www-data:www-data /var/www
Code:
chmod -R 755 /var/www/html
or
chmod -R 755 /var/www/html

Or
Code:
chmod -R 755 /var/www/html config/config.php
 
Solution
777 is insecure. You probably just needed chmod +x tfs for the binary. Also, you do not need to use sudo. You are already root. For the website, do not chmod the whole dir, just the needed ones.
 
777 is insecure. You probably just needed chmod +x tfs for the binary. Also, you do not need to use sudo. You are already root. For the website, do not chmod the whole dir, just the needed ones.
i already used 777 tho D:
how do i set server path?
55e7d05b40492a40978864a0187052dc.png
 
Do not use 777 you can be hacked
Go to www folder
Code:
cd /var/www
or
Code:
cd /var/www/html
and press comand:

Code:
chown -R www-data:www-data /var/www/html
or
chown -R www-data:www-data /var/www
Code:
chmod -R 755 /var/www/html
or
chmod -R 755 /var/www/html

Or
Code:
chmod -R 755 /var/www/html config/config.php
Would you mind to explain why(and how) is 777 more "hackeable" than 755?
 
@Thexamx
A 777 permission on the directory means that everyone has access to read/write/execute (execute on a directory means that you can do a ls of the directory).

755 means read and execute access for everyone and also write access for the owner of the file. When you perform chmod 755 filename command you allow everyone to read and execute the file, owner is allowed to write to the file as well.

But I would suggest not to give 777 permission to all folder and it's all contents. You should give specific permission to each sub-folder in www directory folders.

Ideally give 755 permission for security reasons to web folde
More Info:
What file permissions should I set on web root?
Why shouldn't /var/www have chmod 777
 
Last edited:
Back
Top