Change directory and folder permissions on mass: Difference between revisions
From Cheeky Factor
(Created page with "{{Header |Status=Resolved |PubDate=2019-09-05 |Categories=Permissions |The problem=Recently, I was doing some work on the on a MediaWiki installation. For some reason I had all the permissions set up wrong. }} {{How to guide |Device=Server |Operating system=Ubuntu |Software=Command Line Interface |Guidance=Obviously, MediaWiki has thousands of files to change. So first of all, in the shell, I ran the command from public_html directory:<blockquote>find -xtype f |...") |
No edit summary |
||
| Line 2: | Line 2: | ||
|Status=Resolved | |Status=Resolved | ||
|PubDate=2019-09-05 | |PubDate=2019-09-05 | ||
|Categories=Permissions | |Categories=Permissions, apache, Linux | ||
|The problem=Recently, I was doing some work on the on a MediaWiki installation. For some reason I had all the permissions set up wrong. | |The problem=Recently, I was doing some work on the on a MediaWiki installation. For some reason I had all the permissions set up wrong. | ||
}} | }} | ||
Latest revision as of 21:14, 1 September 2024
Status: Resolved
Publication date: 2019-09-05
Last edited by: Garyf
Last updated: 2024 - 09 - 1
The problem
Recently, I was doing some work on the on a MediaWiki installation. For some reason I had all the permissions set up wrong.
The resolution
Please note: cheekyfactor.com or the owners of this site cannot be held responsible if things go wrong. You perform these tasks at your own risk.
Device: Server
Operating system: Ubuntu
Software: Command Line Interface
Guidance for Server, Ubuntu, Command Line Interface
Obviously, MediaWiki has thousands of files to change.
So first of all, in the shell, I ran the command from public_html directory:
find -xtype f | xargs chmod 644
That changed the the files. I then ran the following command from the public_html director:
find -xtype d | xargs chmod 755