SlideShare una empresa de Scribd logo
1 de 19
Getting to grips with ownership
        and permissions

     Ruth Cheesley – Virya Technologies
         @RCheesley / @ViryaTech


 Did you tell people you're at @JoomlaSuffolk
this evening? Did you check in at Basepoint?
In an interconnected world, we need to control who can access what!
Some things I want to
                                                                              Share with everyone
                                                                                  (the world)
                                      Emergency Phone Number
                                (share with all who know where to find it)

 Some things I might
nly want to be available
    to me (owner)




                                                                             Some things I might
                                                                              want to share with
      I might want to share                                                     these groups
     something with just this
              group
So how does it all work
 'behind the scenes'?
World

(The world, the universe, and everything – not in the same group
                          as the owner)


                             Group

         (A set of users in the same group as the owner)

                             Owner

                         (owns the file)
Can view the file
               Chmod +r / -r
               Numerical value = 4
Read (r)



Write (w)     Can make changes or modify the file
              Chmod +w / -w
              Numerical value = 2

Execute (x)
               Can run the file (generally applicable at command line)
               Chmod +x / -x
               Numerical value = 1



                   NOTE: Folders cannot be listed and files within
                   can't be accessed if the folder does not have
                   execute permissions
So what about 7's and 6's
●   All permission combinations are derived by
    adding these basic permissions

●   7 represents Read (4) + Write (2) + Execute
    (1)

●   6 represents Read (4) + Write (2)
Basic file permissions
Number                Permission

  0                     Deny all

  1                 Execute (x) only

  2                  Write (w) only

  3              Write & Execute (2+1)

  4                    Read only

  5              Read & Execute (4+1)

  6                Read & Write (4+2)

  7          Read + Write + Execute (4+2+1)
Important considerations
●   Write permissions are required for moving a file

●   You must be owner of a file/folder to change its
    permissions

●   You need read permission on a folder to show
    the contents

●   Generally permissions are tighter for 'world', less
    so for 'group' and least for 'owner'
So what does 755 and 644 mean?
●   In Joomla! Folders should be 755 and files 644
    – configuration.php should be 444

●   What does this mean?

●   Let's work it out!
Joomla! permissions


        Owner                  Group               World
           7                       5                  5
(Read + Write + Execute)   (Read + Execute)   (Read + Execute)
         rwx                      r-x                r-x
           6                      4                  4
     (Read + Write)            (Read)             (Read)
          rw-                   (r--)              (r--)
What is chmod all about?
●   A command you can use to change the
    permissions on files and folders

●   Used in command line

●   Example:

    chmod [options] [permissions] [item]

    chmod +R 644 MyFolder
Why does this cause problems?
●   Generally down to poor setup by hosting
    providers (or simply lack of awareness)

●   Usually relates to how Joomla! was originally
    installed

●   Which user 'owns' the files and folders, and
    therefore has or doesn't have permissions
File and
folder has
permissions
which restrict
who can:
                                                           If file/folder is not
●   Read                                                   available with
●   Write                                                  appropriate
●   Execute                Trying to access and/or move    access, 403
                           files and/or folders, or list   forbidden
                           folders will result in:




                 FTP username is                           If file/folder is
                    joebloggs                              available with
                                                           appropriate
                    Therefore                              access, access
                   OWNED by                                granted
                    joebloggs

                  joebloggs is in
                  the managers
                      group
Where it goes wrong
                             World

(The world, the universe, and everything – not in the same group
                          as the owner)


                             Group

         (A set of users in the same group as the owner)

                             Owner

                         (owns the file)
How to fix this
●   Chmod the files & folders to the correct
    permissions, if permission is an issue (or use
    Admin Tools!)

●   Set up the server correctly -
    www.virya.co.uk/joomlaserversetup
The geeky stuff
●   If your server runs mod_php
       –   Document root: 750
       –   Directories: 755 (711 if you're paranoid – only if not listed)
       –   Files: 644
●   If your server runs fast-cgi, suphp or cgi
       –   Document root: 750
       –   Directories: 755 (711 if you're paranoid – only if not listed)
       –   HTML & Image files: 644 (444 if you're paranoid)
       –   PHP files: 600 (400 if you're paranoid)

           SOURCE: www.virya.co.uk/joomlaserversetup
A word of warning
●   It's very useful to have a basic understanding of
    ownership & permissions to help you
    troubleshoot, but TAKE BACKUPS!

●   You can completely break things by tinkering
    with permissions if you don't know what you're
    doing!

●   If in doubt, speak to a geek!
Thank you!

    Any questions?



    Ruth Cheesley
@Rcheesley / @ViryaTech

Más contenido relacionado

Similar a Joomla! User Group Suffolk - Demystifying Ownership and Permissions in Unix and Joomla!

Apache Spark Talk for Applied machine learning
Apache Spark Talk for Applied machine learningApache Spark Talk for Applied machine learning
Apache Spark Talk for Applied machine learningGoDataDriven
 
Apache Spark talk @ The Amsterdam Applied Machine Learning meetup group
Apache Spark talk @ The Amsterdam Applied Machine Learning meetup groupApache Spark talk @ The Amsterdam Applied Machine Learning meetup group
Apache Spark talk @ The Amsterdam Applied Machine Learning meetup groupfvanvollenhoven
 
Course 102: Lecture 14: Users and Permissions
Course 102: Lecture 14: Users and PermissionsCourse 102: Lecture 14: Users and Permissions
Course 102: Lecture 14: Users and PermissionsAhmed El-Arabawy
 
Linux for CS Majors
Linux for CS MajorsLinux for CS Majors
Linux for CS Majorsworr1244
 
Django Files — A Short Talk
Django Files — A Short TalkDjango Files — A Short Talk
Django Files — A Short TalkJames Aylett
 
Linux day 2.ppt
Linux day  2.pptLinux day  2.ppt
Linux day 2.pptKalkey
 
Frequently asked questions answered frequently - but now for the last time
Frequently asked questions answered frequently - but now for the last timeFrequently asked questions answered frequently - but now for the last time
Frequently asked questions answered frequently - but now for the last timeAndreas Jung
 
Surviving OS X as a Windows Admin
Surviving OS X as a Windows AdminSurviving OS X as a Windows Admin
Surviving OS X as a Windows AdminDell World
 
LXC Containers and AUFs
LXC Containers and AUFsLXC Containers and AUFs
LXC Containers and AUFsDocker, Inc.
 
Face your fears: Drush and Aegir
Face your fears: Drush and AegirFace your fears: Drush and Aegir
Face your fears: Drush and AegirIztok Smolic
 
File system discovery
File system discovery File system discovery
File system discovery DevMix
 
Learning Linux v2.1
Learning Linux v2.1Learning Linux v2.1
Learning Linux v2.1sdiviney
 
Introduction to Linux Privilege Escalation Methods
Introduction to Linux Privilege Escalation MethodsIntroduction to Linux Privilege Escalation Methods
Introduction to Linux Privilege Escalation MethodsBishop Fox
 

Similar a Joomla! User Group Suffolk - Demystifying Ownership and Permissions in Unix and Joomla! (20)

Apache Spark Talk for Applied machine learning
Apache Spark Talk for Applied machine learningApache Spark Talk for Applied machine learning
Apache Spark Talk for Applied machine learning
 
Apache Spark talk @ The Amsterdam Applied Machine Learning meetup group
Apache Spark talk @ The Amsterdam Applied Machine Learning meetup groupApache Spark talk @ The Amsterdam Applied Machine Learning meetup group
Apache Spark talk @ The Amsterdam Applied Machine Learning meetup group
 
Intro to Drush
Intro to DrushIntro to Drush
Intro to Drush
 
Course 102: Lecture 14: Users and Permissions
Course 102: Lecture 14: Users and PermissionsCourse 102: Lecture 14: Users and Permissions
Course 102: Lecture 14: Users and Permissions
 
Linux for CS Majors
Linux for CS MajorsLinux for CS Majors
Linux for CS Majors
 
Php File Operations
Php File OperationsPhp File Operations
Php File Operations
 
API Design
API DesignAPI Design
API Design
 
Guild Prototype
Guild PrototypeGuild Prototype
Guild Prototype
 
Django Files — A Short Talk
Django Files — A Short TalkDjango Files — A Short Talk
Django Files — A Short Talk
 
Linux day 2.ppt
Linux day  2.pptLinux day  2.ppt
Linux day 2.ppt
 
Racing with Droids
Racing with DroidsRacing with Droids
Racing with Droids
 
Frequently asked questions answered frequently - but now for the last time
Frequently asked questions answered frequently - but now for the last timeFrequently asked questions answered frequently - but now for the last time
Frequently asked questions answered frequently - but now for the last time
 
Surviving OS X as a Windows Admin
Surviving OS X as a Windows AdminSurviving OS X as a Windows Admin
Surviving OS X as a Windows Admin
 
LXC Containers and AUFs
LXC Containers and AUFsLXC Containers and AUFs
LXC Containers and AUFs
 
Face your fears: Drush and Aegir
Face your fears: Drush and AegirFace your fears: Drush and Aegir
Face your fears: Drush and Aegir
 
File system discovery
File system discovery File system discovery
File system discovery
 
Learning Linux v2.1
Learning Linux v2.1Learning Linux v2.1
Learning Linux v2.1
 
Drupal Front End PHP
Drupal Front End PHPDrupal Front End PHP
Drupal Front End PHP
 
Hadoop
HadoopHadoop
Hadoop
 
Introduction to Linux Privilege Escalation Methods
Introduction to Linux Privilege Escalation MethodsIntroduction to Linux Privilege Escalation Methods
Introduction to Linux Privilege Escalation Methods
 

Más de Ruth Cheesley

Open source meets marketing - Presentation - OpenFest 2019
Open source meets marketing - Presentation - OpenFest 2019Open source meets marketing - Presentation - OpenFest 2019
Open source meets marketing - Presentation - OpenFest 2019Ruth Cheesley
 
Data first web development
Data first web developmentData first web development
Data first web developmentRuth Cheesley
 
Integrated Marketing Strategies with Mautic
Integrated Marketing Strategies with MauticIntegrated Marketing Strategies with Mautic
Integrated Marketing Strategies with MauticRuth Cheesley
 
Automating your marketing workflows in Joomla with Mautic
Automating your marketing workflows in Joomla with MauticAutomating your marketing workflows in Joomla with Mautic
Automating your marketing workflows in Joomla with MauticRuth Cheesley
 
Fight for the Pixel - Innovation Martlesham - Ruth Cheesley
Fight for the Pixel - Innovation Martlesham - Ruth CheesleyFight for the Pixel - Innovation Martlesham - Ruth Cheesley
Fight for the Pixel - Innovation Martlesham - Ruth CheesleyRuth Cheesley
 
Custom Fields in Joomla - JoomlaDay UK 2016 - Marco Dings
Custom Fields in Joomla - JoomlaDay UK 2016 - Marco DingsCustom Fields in Joomla - JoomlaDay UK 2016 - Marco Dings
Custom Fields in Joomla - JoomlaDay UK 2016 - Marco DingsRuth Cheesley
 
Time to stop breaking your promises - dealing with 404's, broken URLs and pla...
Time to stop breaking your promises - dealing with 404's, broken URLs and pla...Time to stop breaking your promises - dealing with 404's, broken URLs and pla...
Time to stop breaking your promises - dealing with 404's, broken URLs and pla...Ruth Cheesley
 
Chalk and cheese - how developers and designers can work together and not cru...
Chalk and cheese - how developers and designers can work together and not cru...Chalk and cheese - how developers and designers can work together and not cru...
Chalk and cheese - how developers and designers can work together and not cru...Ruth Cheesley
 
Discovering Joomla! - Find out about Joomla's features
Discovering Joomla! - Find out about Joomla's featuresDiscovering Joomla! - Find out about Joomla's features
Discovering Joomla! - Find out about Joomla's featuresRuth Cheesley
 
Ruth Cheesley - Joomla World Conference 2014 - How to prove you're worth a mi...
Ruth Cheesley - Joomla World Conference 2014 - How to prove you're worth a mi...Ruth Cheesley - Joomla World Conference 2014 - How to prove you're worth a mi...
Ruth Cheesley - Joomla World Conference 2014 - How to prove you're worth a mi...Ruth Cheesley
 
Conflict as an opportunity for growth in Open Source communities - European C...
Conflict as an opportunity for growth in Open Source communities - European C...Conflict as an opportunity for growth in Open Source communities - European C...
Conflict as an opportunity for growth in Open Source communities - European C...Ruth Cheesley
 
The world needs Open Source - Ruth Cheesley - NorDevCon 2014
The world needs Open Source - Ruth Cheesley - NorDevCon 2014The world needs Open Source - Ruth Cheesley - NorDevCon 2014
The world needs Open Source - Ruth Cheesley - NorDevCon 2014Ruth Cheesley
 
A gaze into the crystal ball of Google - social, local and predictive search
A gaze into the crystal ball of Google - social, local and predictive searchA gaze into the crystal ball of Google - social, local and predictive search
A gaze into the crystal ball of Google - social, local and predictive searchRuth Cheesley
 
Women in Open Source - Ruth Cheesley - CMS Africa 2014
Women in Open Source - Ruth Cheesley - CMS Africa 2014Women in Open Source - Ruth Cheesley - CMS Africa 2014
Women in Open Source - Ruth Cheesley - CMS Africa 2014Ruth Cheesley
 
Ruth Cheesley - Joomla! World Conference 2013 - What are you trying to say (a...
Ruth Cheesley - Joomla! World Conference 2013 - What are you trying to say (a...Ruth Cheesley - Joomla! World Conference 2013 - What are you trying to say (a...
Ruth Cheesley - Joomla! World Conference 2013 - What are you trying to say (a...Ruth Cheesley
 
Ruth Cheesley - Joomla! World Conference 2013 - Is your business intelligent?
Ruth Cheesley - Joomla! World Conference 2013 - Is your business intelligent?Ruth Cheesley - Joomla! World Conference 2013 - Is your business intelligent?
Ruth Cheesley - Joomla! World Conference 2013 - Is your business intelligent?Ruth Cheesley
 
Suffolk Internet Marketing & SEO/M Specialists - Ruth Cheesley - Don't get in...
Suffolk Internet Marketing & SEO/M Specialists - Ruth Cheesley - Don't get in...Suffolk Internet Marketing & SEO/M Specialists - Ruth Cheesley - Don't get in...
Suffolk Internet Marketing & SEO/M Specialists - Ruth Cheesley - Don't get in...Ruth Cheesley
 
Ruth Cheesley - Joomla!Day UK - Joomla in your area
Ruth Cheesley - Joomla!Day UK - Joomla in your areaRuth Cheesley - Joomla!Day UK - Joomla in your area
Ruth Cheesley - Joomla!Day UK - Joomla in your areaRuth Cheesley
 
Ruth Cheesley - Joomla!Day UK - Articles are boring, long live the CCK!
Ruth Cheesley - Joomla!Day UK - Articles are boring, long live the CCK!Ruth Cheesley - Joomla!Day UK - Articles are boring, long live the CCK!
Ruth Cheesley - Joomla!Day UK - Articles are boring, long live the CCK!Ruth Cheesley
 
Ruth Cheesley - Joomla!Day UK - Giving back to Joomla!
Ruth Cheesley - Joomla!Day UK - Giving back to Joomla!Ruth Cheesley - Joomla!Day UK - Giving back to Joomla!
Ruth Cheesley - Joomla!Day UK - Giving back to Joomla!Ruth Cheesley
 

Más de Ruth Cheesley (20)

Open source meets marketing - Presentation - OpenFest 2019
Open source meets marketing - Presentation - OpenFest 2019Open source meets marketing - Presentation - OpenFest 2019
Open source meets marketing - Presentation - OpenFest 2019
 
Data first web development
Data first web developmentData first web development
Data first web development
 
Integrated Marketing Strategies with Mautic
Integrated Marketing Strategies with MauticIntegrated Marketing Strategies with Mautic
Integrated Marketing Strategies with Mautic
 
Automating your marketing workflows in Joomla with Mautic
Automating your marketing workflows in Joomla with MauticAutomating your marketing workflows in Joomla with Mautic
Automating your marketing workflows in Joomla with Mautic
 
Fight for the Pixel - Innovation Martlesham - Ruth Cheesley
Fight for the Pixel - Innovation Martlesham - Ruth CheesleyFight for the Pixel - Innovation Martlesham - Ruth Cheesley
Fight for the Pixel - Innovation Martlesham - Ruth Cheesley
 
Custom Fields in Joomla - JoomlaDay UK 2016 - Marco Dings
Custom Fields in Joomla - JoomlaDay UK 2016 - Marco DingsCustom Fields in Joomla - JoomlaDay UK 2016 - Marco Dings
Custom Fields in Joomla - JoomlaDay UK 2016 - Marco Dings
 
Time to stop breaking your promises - dealing with 404's, broken URLs and pla...
Time to stop breaking your promises - dealing with 404's, broken URLs and pla...Time to stop breaking your promises - dealing with 404's, broken URLs and pla...
Time to stop breaking your promises - dealing with 404's, broken URLs and pla...
 
Chalk and cheese - how developers and designers can work together and not cru...
Chalk and cheese - how developers and designers can work together and not cru...Chalk and cheese - how developers and designers can work together and not cru...
Chalk and cheese - how developers and designers can work together and not cru...
 
Discovering Joomla! - Find out about Joomla's features
Discovering Joomla! - Find out about Joomla's featuresDiscovering Joomla! - Find out about Joomla's features
Discovering Joomla! - Find out about Joomla's features
 
Ruth Cheesley - Joomla World Conference 2014 - How to prove you're worth a mi...
Ruth Cheesley - Joomla World Conference 2014 - How to prove you're worth a mi...Ruth Cheesley - Joomla World Conference 2014 - How to prove you're worth a mi...
Ruth Cheesley - Joomla World Conference 2014 - How to prove you're worth a mi...
 
Conflict as an opportunity for growth in Open Source communities - European C...
Conflict as an opportunity for growth in Open Source communities - European C...Conflict as an opportunity for growth in Open Source communities - European C...
Conflict as an opportunity for growth in Open Source communities - European C...
 
The world needs Open Source - Ruth Cheesley - NorDevCon 2014
The world needs Open Source - Ruth Cheesley - NorDevCon 2014The world needs Open Source - Ruth Cheesley - NorDevCon 2014
The world needs Open Source - Ruth Cheesley - NorDevCon 2014
 
A gaze into the crystal ball of Google - social, local and predictive search
A gaze into the crystal ball of Google - social, local and predictive searchA gaze into the crystal ball of Google - social, local and predictive search
A gaze into the crystal ball of Google - social, local and predictive search
 
Women in Open Source - Ruth Cheesley - CMS Africa 2014
Women in Open Source - Ruth Cheesley - CMS Africa 2014Women in Open Source - Ruth Cheesley - CMS Africa 2014
Women in Open Source - Ruth Cheesley - CMS Africa 2014
 
Ruth Cheesley - Joomla! World Conference 2013 - What are you trying to say (a...
Ruth Cheesley - Joomla! World Conference 2013 - What are you trying to say (a...Ruth Cheesley - Joomla! World Conference 2013 - What are you trying to say (a...
Ruth Cheesley - Joomla! World Conference 2013 - What are you trying to say (a...
 
Ruth Cheesley - Joomla! World Conference 2013 - Is your business intelligent?
Ruth Cheesley - Joomla! World Conference 2013 - Is your business intelligent?Ruth Cheesley - Joomla! World Conference 2013 - Is your business intelligent?
Ruth Cheesley - Joomla! World Conference 2013 - Is your business intelligent?
 
Suffolk Internet Marketing & SEO/M Specialists - Ruth Cheesley - Don't get in...
Suffolk Internet Marketing & SEO/M Specialists - Ruth Cheesley - Don't get in...Suffolk Internet Marketing & SEO/M Specialists - Ruth Cheesley - Don't get in...
Suffolk Internet Marketing & SEO/M Specialists - Ruth Cheesley - Don't get in...
 
Ruth Cheesley - Joomla!Day UK - Joomla in your area
Ruth Cheesley - Joomla!Day UK - Joomla in your areaRuth Cheesley - Joomla!Day UK - Joomla in your area
Ruth Cheesley - Joomla!Day UK - Joomla in your area
 
Ruth Cheesley - Joomla!Day UK - Articles are boring, long live the CCK!
Ruth Cheesley - Joomla!Day UK - Articles are boring, long live the CCK!Ruth Cheesley - Joomla!Day UK - Articles are boring, long live the CCK!
Ruth Cheesley - Joomla!Day UK - Articles are boring, long live the CCK!
 
Ruth Cheesley - Joomla!Day UK - Giving back to Joomla!
Ruth Cheesley - Joomla!Day UK - Giving back to Joomla!Ruth Cheesley - Joomla!Day UK - Giving back to Joomla!
Ruth Cheesley - Joomla!Day UK - Giving back to Joomla!
 

Último

How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 

Último (20)

How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 

Joomla! User Group Suffolk - Demystifying Ownership and Permissions in Unix and Joomla!

  • 1. Getting to grips with ownership and permissions Ruth Cheesley – Virya Technologies @RCheesley / @ViryaTech Did you tell people you're at @JoomlaSuffolk this evening? Did you check in at Basepoint?
  • 2. In an interconnected world, we need to control who can access what!
  • 3. Some things I want to Share with everyone (the world) Emergency Phone Number (share with all who know where to find it) Some things I might nly want to be available to me (owner) Some things I might want to share with I might want to share these groups something with just this group
  • 4. So how does it all work 'behind the scenes'?
  • 5. World (The world, the universe, and everything – not in the same group as the owner) Group (A set of users in the same group as the owner) Owner (owns the file)
  • 6. Can view the file Chmod +r / -r Numerical value = 4 Read (r) Write (w) Can make changes or modify the file Chmod +w / -w Numerical value = 2 Execute (x) Can run the file (generally applicable at command line) Chmod +x / -x Numerical value = 1 NOTE: Folders cannot be listed and files within can't be accessed if the folder does not have execute permissions
  • 7. So what about 7's and 6's ● All permission combinations are derived by adding these basic permissions ● 7 represents Read (4) + Write (2) + Execute (1) ● 6 represents Read (4) + Write (2)
  • 8. Basic file permissions Number Permission 0 Deny all 1 Execute (x) only 2 Write (w) only 3 Write & Execute (2+1) 4 Read only 5 Read & Execute (4+1) 6 Read & Write (4+2) 7 Read + Write + Execute (4+2+1)
  • 9. Important considerations ● Write permissions are required for moving a file ● You must be owner of a file/folder to change its permissions ● You need read permission on a folder to show the contents ● Generally permissions are tighter for 'world', less so for 'group' and least for 'owner'
  • 10. So what does 755 and 644 mean? ● In Joomla! Folders should be 755 and files 644 – configuration.php should be 444 ● What does this mean? ● Let's work it out!
  • 11. Joomla! permissions Owner Group World 7 5 5 (Read + Write + Execute) (Read + Execute) (Read + Execute) rwx r-x r-x 6 4 4 (Read + Write) (Read) (Read) rw- (r--) (r--)
  • 12. What is chmod all about? ● A command you can use to change the permissions on files and folders ● Used in command line ● Example: chmod [options] [permissions] [item] chmod +R 644 MyFolder
  • 13. Why does this cause problems? ● Generally down to poor setup by hosting providers (or simply lack of awareness) ● Usually relates to how Joomla! was originally installed ● Which user 'owns' the files and folders, and therefore has or doesn't have permissions
  • 14. File and folder has permissions which restrict who can: If file/folder is not ● Read available with ● Write appropriate ● Execute Trying to access and/or move access, 403 files and/or folders, or list forbidden folders will result in: FTP username is If file/folder is joebloggs available with appropriate Therefore access, access OWNED by granted joebloggs joebloggs is in the managers group
  • 15. Where it goes wrong World (The world, the universe, and everything – not in the same group as the owner) Group (A set of users in the same group as the owner) Owner (owns the file)
  • 16. How to fix this ● Chmod the files & folders to the correct permissions, if permission is an issue (or use Admin Tools!) ● Set up the server correctly - www.virya.co.uk/joomlaserversetup
  • 17. The geeky stuff ● If your server runs mod_php – Document root: 750 – Directories: 755 (711 if you're paranoid – only if not listed) – Files: 644 ● If your server runs fast-cgi, suphp or cgi – Document root: 750 – Directories: 755 (711 if you're paranoid – only if not listed) – HTML & Image files: 644 (444 if you're paranoid) – PHP files: 600 (400 if you're paranoid) SOURCE: www.virya.co.uk/joomlaserversetup
  • 18. A word of warning ● It's very useful to have a basic understanding of ownership & permissions to help you troubleshoot, but TAKE BACKUPS! ● You can completely break things by tinkering with permissions if you don't know what you're doing! ● If in doubt, speak to a geek!
  • 19. Thank you! Any questions? Ruth Cheesley @Rcheesley / @ViryaTech

Notas del editor

  1. Data is everything in the digital age – with vital information no longer entrusted to lock and key but being stored on computers often thousands of miles away from where they were deposited. Controlling who can access this data – whether it be your bank account or your facebook photos – comes down to a simple matter of ownership, and permissions. People often get totally baffled by these core concepts so hopefully this should make a bit of sense and help you understand how it works. Once you 'get' this you're over a large hurdle when it comes to web design and hosting issues!
  2. Facebook