Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43259
Total Topics: 7518
Most Online Today: 201
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 204
Total: 205

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

0 Members and 1 Guest are viewing this topic.

Offline ajac63

  • Jr. Member
  • **
  • Posts: 69
    • 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: 16436
    • 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

  • Jr. Member
  • **
  • Posts: 69
    • 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: 16436
    • 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

  • Jr. Member
  • **
  • Posts: 69
    • 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
6702 Views
Last post August 05, 2007, 01:40:57 pm
by rumboogy
20 Replies
15077 Views
Last post September 01, 2008, 07:20:21 pm
by Bar Nuthin
2 Replies
3929 Views
Last post October 23, 2011, 06:14:57 pm
by Sweetwater
4 Replies
4464 Views
Last post May 12, 2012, 07:49:26 pm
by ApplianceJunk
4 Replies
3297 Views
Last post November 26, 2019, 10:44:23 am
by Rock Lee

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal