Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 12403
Latest: HenryLilley
New This Month: 9
New This Week: 4
New Today: 2
Stats
Total Posts: 39916
Total Topics: 7026
Most Online Today: 74
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 93
Total: 93

Author Topic: About using chmod to secure files  (Read 918 times)

0 Members and 1 Guest are viewing this topic.

Offline ajac63

  • SMF Classifieds Customer
  • Jr. Member
  • *****
  • Posts: 66
    • View Profile
    • "blag-it" Forum
About using chmod to secure files
« on: June 01, 2019, 03:16:48 am »
As I understand it, I should use chmod to secure my files, but how exactly does this work?  What is the syntax, etc and which files do I secure? 

I assume it's all files under public_html but not sure which directory to be honest.  I have a shared hosting acct with greyweb (great people) and am familiar with cpanel and so on, but I have little linux/unix experience.  All help greatly appreciated.
« Last Edit: June 01, 2019, 03:18:23 am by ajac63 »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14965
    • View Profile
Re: About using chmod to secure files
« Reply #1 on: June 01, 2019, 07:23:50 pm »
You would use chmod or file manager on linux. I do not use linux much for webservers so I do know a lot. Generally I see people use 644 or 755 permissions.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline ajac63

  • SMF Classifieds Customer
  • Jr. Member
  • *****
  • Posts: 66
    • View Profile
    • "blag-it" Forum
Re: About using chmod to secure files
« Reply #2 on: June 01, 2019, 08:21:56 pm »
Many thanks.  So I would use 644 or 755 permissions?  Can you elaborate on this more?  How does the syntax go? 
As to you saying 'use chmod or file manager on linux', do you mean the file manager under cpanel?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14965
    • View Profile
Re: About using chmod to secure files
« Reply #3 on: June 01, 2019, 08:50:02 pm »
I am not really an expert in this area. You would do either via cmd line or cpanel file manager.
« Last Edit: June 01, 2019, 08:57:10 pm by SMFHacks »
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline ajac63

  • SMF Classifieds Customer
  • Jr. Member
  • *****
  • Posts: 66
    • View Profile
    • "blag-it" Forum
Re: About using chmod to secure files
« Reply #4 on: June 05, 2019, 04:02:28 am »
OK, many thanks for the pointer and sorry for late reply, only I'm between forums (smfhacks and the official smf one) and a whole lot of other things...
 
I've found out how to do it using cPanel by clicking on the icon for the required folder or file and selecting permissions from the pop-up menu.  A table then comes-up showing me the chmod settings for that folder or file.  Almost invariably files are set to 644 and folders to 755 by default - people on the official forum have told me what I should change them to.  Anyway, thanks for your help  :)
« Last Edit: June 05, 2019, 04:04:03 am by ajac63 »

 

Related Topics

  Subject / Started by Replies Last post
4 Replies
5303 Views
Last post August 05, 2007, 01:40:57 pm
by rumboogy
20 Replies
13125 Views
Last post September 01, 2008, 07:20:21 pm
by Bar Nuthin
2 Replies
1824 Views
Last post October 23, 2011, 06:14:57 pm
by Sweetwater
4 Replies
2503 Views
Last post May 12, 2012, 07:49:26 pm
by ApplianceJunk
3 Replies
2898 Views
Last post September 09, 2014, 08:38:50 am
by SMFHacks

+- Recent Topics

PHP error by davejo
November 12, 2019, 12:09:47 pm

Message Editor Pro Issues by SMFHacks
November 06, 2019, 09:58:33 pm

most popular categories doesnt work by fussilet
November 02, 2019, 02:51:42 pm

Change colors of Halloween theme by SMFHacks
October 24, 2019, 11:44:59 am

prettyurls - TroubleShooting.wiki by Rock Lee
October 10, 2019, 11:37:09 am

Some issues with adding and editing a listing by ajac63
October 07, 2019, 04:16:40 am

Problem update 1.1.21 to 2.0.15 by Rock Lee
October 06, 2019, 06:09:16 pm

[Mod]SMF 2.0.x PHP 7.2 Support by sah62
October 04, 2019, 01:46:00 pm

Ideas by shuban
October 03, 2019, 10:19:06 pm

How to space icons and multiple reacts? by shadav
October 03, 2019, 04:20:07 pm

Powered by EzPortal