Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 12356
Latest: how to logo design
New This Month: 7
New This Week: 2
New Today: 1
Stats
Total Posts: 40076
Total Topics: 7055
Most Online Today: 141
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 36
Total: 36

Author Topic: About using chmod to secure files  (Read 1122 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: 15040
    • 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: 15040
    • 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
5343 Views
Last post August 05, 2007, 01:40:57 pm
by rumboogy
20 Replies
13237 Views
Last post September 01, 2008, 07:20:21 pm
by Bar Nuthin
2 Replies
1886 Views
Last post October 23, 2011, 06:14:57 pm
by Sweetwater
4 Replies
2559 Views
Last post May 12, 2012, 07:49:26 pm
by ApplianceJunk
4 Replies
294 Views
Last post November 26, 2019, 10:44:23 am
by Rock Lee

+- Recent Topics

Cannot install Gallery Pro on SMF 2.1 RC2 by Hatshepsut
March 19, 2020, 12:55:00 am

Newbie questions by SMFHacks
March 08, 2020, 09:28:17 am

Update detect mobile mode PHP5 to PHP7 by Plus
March 05, 2020, 11:19:05 am

Just a hello by Plus
March 05, 2020, 11:05:56 am

Enotify Copyright Problem by SMFHacks
March 04, 2020, 09:21:09 pm

Cannot import by shawnb
March 02, 2020, 12:17:00 pm

Error message with latest SMF 2.1 Github build by Hatshepsut
March 01, 2020, 10:06:10 am

[Mod]Avatars Display Integration by SMFHacks
February 15, 2020, 07:30:47 pm

[Mod]BBC Message Boxes 1.0 by SMFHacks
February 15, 2020, 07:26:46 pm

[Mod]Stack Trace by live627 by SMFHacks
February 15, 2020, 07:21:33 pm

Powered by EzPortal