Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 12361
Latest: nneocsoi
New This Month: 7
New This Week: 0
New Today: 0
Stats
Total Posts: 39803
Total Topics: 7013
Most Online Today: 68
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 53
Total: 53

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

0 Members and 1 Guest are viewing this topic.

Offline ajac63

  • SMF Classifieds Customer
  • Jr. Member
  • *****
  • Posts: 51
    • 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: 14916
    • 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: 51
    • 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: 14916
    • 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: 51
    • 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
5266 Views
Last post August 05, 2007, 01:40:57 pm
by rumboogy
20 Replies
13038 Views
Last post September 01, 2008, 07:20:21 pm
by Bar Nuthin
2 Replies
1784 Views
Last post October 23, 2011, 06:14:57 pm
by Sweetwater
4 Replies
2462 Views
Last post May 12, 2012, 07:49:26 pm
by ApplianceJunk
3 Replies
2835 Views
Last post September 09, 2014, 08:38:50 am
by SMFHacks

+- Recent Topics

Getting an error while installing SMF Gallery Pro by SMFHacks
August 18, 2019, 06:54:37 pm

Hashtag Mod Install Error by SMFHacks
August 15, 2019, 08:17:45 am

Rotating Image URLs by SMFHacks
August 05, 2019, 04:26:57 pm

[Mod]Block Proxy VPN On Registration by SMFHacks
August 01, 2019, 10:42:37 pm

[Mod]Nofollow Signature Links by SMFHacks
July 30, 2019, 11:52:28 am

Thinking of getting Ad Seller Pro as well by ajac63
July 28, 2019, 04:46:34 am

Just some questions about Ad Management mod by ajac63
July 26, 2019, 12:12:26 pm

[Mod]Login Menu Button by SMFHacks
July 05, 2019, 03:26:24 pm

Update by SMFHacks
June 19, 2019, 10:58:25 am

About Comments Approval by ajac63
June 12, 2019, 07:48:52 pm

Powered by EzPortal