Chmod
Chmod is a generic shell script, it is already installed on your computer at the start of the game. It is used to set the permissions of folders or files.
Note: to use chmod you will need to be root, otherwise you will only able to set permissions of the files that you are the owner.
Permissions
There is also 3 type of user that are restricted under the permissions.
- User, which is the owner of the file or folder. Is referrer is 'u'.
- Group, which are the users on the current computer. Is referrer is 'g'.
- Other, which are the guest. Is referrer is 'o'.
Permissions define what a user can do with a file. There's 3 type of permissions.
- Write, which allow the writing of files or folders. Is referrer is 'w'.
- Read, which allow the reading of files or folders. Is referrer is 'r'.
- Execute, which allow the execution of a files. Is referrer is 'x'.
There is 2 operators , to signal if we want to remove or add permissions.
- + , define that we want to add permissions.
- - , define that we want to remove permissions.
There is 1 option parameter.
- -R, which allow to apply recursively the permissions of a folder to all is child.
Chmod a file
To set the permissions of a file, simply open a terminal on your computer and type chmod [u,g,o][+,-][wrx] [file]
or
chmod [u,g,o][+,-][wrx] [path/file]
.
Chmod a folder
To set the permissions of a folder, simply open a terminal on your computer and type chmod [u,g,o][+,-][wrx] [path/folder]
.
Chmod recursively a folder
To set recursively the permissions of a folder, simply open a terminal on your computer and type chmod -R [u,g,o][+,-][wrx] [path/folder]
.
Debug data:
[SQLBagOStuff] MainObjectStash using store ReplicatedBagOStuff
[objectcache] MainWANObjectCache using store EmptyBagOStuff
IP: 34.239.152.207
Start request GET /wiki/Chmod
HTTP HEADERS:
CONTENT-LENGTH: 0
CDN-LOOP: cloudflare
CF-IPCOUNTRY: US
CF-CONNECTING-IP: 34.239.152.207
ACCEPT-LANGUAGE: en-US,en;q=0.5
ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
USER-AGENT: CCBot/2.0 (https://commoncrawl.org/faq/)
CF-VISITOR: {"scheme":"https"}
X-FORWARDED-PROTO: https
CF-RAY: 7affa5bddeab206f-IAD
X-FORWARDED-FOR: 34.239.152.207
ACCEPT-ENCODING: gzip
CONNECTION: close
HOST: wiki.ghtools.xyz[localisation] LocalisationCache: using store LCStoreDB
[session] SessionManager using store SqlBagOStuff
[DBReplication] Cannot use ChronologyProtector with EmptyBagOStuff
[DBReplication] Wikimedia\Rdbms\LBFactory::getChronologyProtector: request info {
"IPAddress": "34.239.152.207",
"UserAgent": "CCBot\/2.0 (https:\/\/commoncrawl.org\/faq\/)",
"ChronologyProtection": false,
"ChronologyPositionIndex": 0,
"ChronologyClientId": false
}[DBConnection] Wikimedia\Rdbms\LoadBalancer::lazyLoadReplicationPositions: executed chronology callback.
[DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: connected to database 0 at 'localhost'.
[SQLBagOStuff] Connection mysql object #145 (handle id #151) will be used for SqlBagOStuff
[session] SessionBackend "60anapobl7520d0vvkvp33j9a3hc451l" is unsaved, marking dirty in constructor
[session] SessionBackend "60anapobl7520d0vvkvp33j9a3hc451l" save: dataDirty=1 metaDirty=1 forcePersist=0
[cookie] already deleted setcookie: "c6_wiki_session", "", "1648635914", "/", "", "1", "1"
[cookie] already deleted setcookie: "c6_wikiUserID", "", "1648635914", "/", "", "1", "1"
[cookie] already deleted setcookie: "c6_wikiToken", "", "1648635914", "/", "", "1", "1"
[cookie] already deleted setcookie: "forceHTTPS", "", "1648635914", "/", "", "", "1"
[DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: connected to database 0 at 'localhost'.
Title::getRestrictionTypes: applicable restrictions to [[Chmod]] are {edit,move}
[ContentHandler] Created handler for wikitext: WikitextContentHandler
[MessageCache] MessageCache using store SqlBagOStuff
[SQLBagOStuff] Connection mysql object #145 (handle id #151) will be used for SqlBagOStuff
[SQLBagOStuff] Connection mysql object #145 (handle id #151) will be used for SqlBagOStuff
[SQLBagOStuff] Connection mysql object #145 (handle id #151) will be used for SqlBagOStuff
[SQLBagOStuff] Connection mysql object #145 (handle id #151) will be used for SqlBagOStuff
[SQLBagOStuff] SqlBagOStuff::lock failed due to timeout for c6_wiki:messages:en.
[SQLBagOStuff] Connection mysql object #145 (handle id #151) will be used for SqlBagOStuff
[SQLBagOStuff] Connection mysql object #145 (handle id #151) will be used for SqlBagOStuff
[MessageCache] MessageCache::load: Loading en... local cache is empty, global cache is expired/volatile, loading from database
ParserFactory: using preprocessor: Preprocessor_Hash
Unstubbing $wgLang on call of $wgLang::_unstub from ParserOptions->__construct
[caches] parser: SqlBagOStuff
Article::view using parser cache: yes
[SQLBagOStuff] Connection mysql object #145 (handle id #151) will be used for SqlBagOStuff
Article::view: doing uncached parse
[SQLBagOStuff] Connection mysql object #145 (handle id #151) will be used for SqlBagOStuff
[Preprocessor] Cached preprocessor output (key: c6_wiki:preprocess-hash:a7ab213a0a00eb82ddeb7e24e151904a:0)
[Mime] MimeAnalyzer::loadFiles: loading mime types from /var/www/clients/client6/web12/web/w/includes/libs/mime/mime.types
[Mime] MimeAnalyzer::loadFiles: loading mime info from /var/www/clients/client6/web12/web/w/includes/libs/mime/mime.info
File::transform: Doing stat for mwstore://local-backend/local-thumb/0/05/Chmod_file2.png/300px-Chmod_file2.png
TransformationalImageHandler::doTransform: creating 300x236 thumbnail at mwstore://local-backend/local-thumb/0/05/Chmod_file2.png/300px-Chmod_file2.png using scaler im
TransformationalImageHandler::doTransform: Transforming later per flags.
File::transform: Doing stat for mwstore://local-backend/local-thumb/0/05/Chmod_file2.png/450px-Chmod_file2.png
TransformationalImageHandler::doTransform: creating 450x354 thumbnail at mwstore://local-backend/local-thumb/0/05/Chmod_file2.png/450px-Chmod_file2.png using scaler im
TransformationalImageHandler::doTransform: Transforming later per flags.
File::transform: Doing stat for mwstore://local-backend/local-thumb/0/05/Chmod_file2.png/473px-Chmod_file2.png
[FileOperation] FileBackendStore::ingestFreshFileStats: File mwstore://local-backend/local-thumb/0/05/Chmod_file2.png/473px-Chmod_file2.png does not exist
TransformationalImageHandler::doTransform: creating 473x372 thumbnail at /var/www/clients/client6/web12/tmp/transform_6e6ec277cb51.png using scaler im
TransformationalImageHandler::doTransform: returning unscaled image
File::transform: Doing stat for mwstore://local-backend/local-thumb/5/55/Chmod_folder.png/300px-Chmod_folder.png
TransformationalImageHandler::doTransform: creating 300x106 thumbnail at mwstore://local-backend/local-thumb/5/55/Chmod_folder.png/300px-Chmod_folder.png using scaler im
TransformationalImageHandler::doTransform: Transforming later per flags.
File::transform: Doing stat for mwstore://local-backend/local-thumb/5/55/Chmod_folder.png/450px-Chmod_folder.png
TransformationalImageHandler::doTransform: creating 450x159 thumbnail at mwstore://local-backend/local-thumb/5/55/Chmod_folder.png/450px-Chmod_folder.png using scaler im
TransformationalImageHandler::doTransform: Transforming later per flags.
File::transform: Doing stat for mwstore://local-backend/local-thumb/5/55/Chmod_folder.png/481px-Chmod_folder.png
[FileOperation] FileBackendStore::ingestFreshFileStats: File mwstore://local-backend/local-thumb/5/55/Chmod_folder.png/481px-Chmod_folder.png does not exist
TransformationalImageHandler::doTransform: creating 481x170 thumbnail at /var/www/clients/client6/web12/tmp/transform_5fc4faea7045.png using scaler im
TransformationalImageHandler::doTransform: returning unscaled image
File::transform: Doing stat for mwstore://local-backend/local-thumb/3/3b/Chmod_r_folder.png/300px-Chmod_r_folder.png
TransformationalImageHandler::doTransform: creating 300x70 thumbnail at mwstore://local-backend/local-thumb/3/3b/Chmod_r_folder.png/300px-Chmod_r_folder.png using scaler im
TransformationalImageHandler::doTransform: Transforming later per flags.
File::transform: Doing stat for mwstore://local-backend/local-thumb/3/3b/Chmod_r_folder.png/450px-Chmod_r_folder.png
TransformationalImageHandler::doTransform: creating 450x105 thumbnail at mwstore://local-backend/local-thumb/3/3b/Chmod_r_folder.png/450px-Chmod_r_folder.png using scaler im
TransformationalImageHandler::doTransform: Transforming later per flags.
File::transform: Doing stat for mwstore://local-backend/local-thumb/3/3b/Chmod_r_folder.png/475px-Chmod_r_folder.png
[FileOperation] FileBackendStore::ingestFreshFileStats: File mwstore://local-backend/local-thumb/3/3b/Chmod_r_folder.png/475px-Chmod_r_folder.png does not exist
TransformationalImageHandler::doTransform: creating 475x111 thumbnail at /var/www/clients/client6/web12/tmp/transform_bba9b32ad04d.png using scaler im
TransformationalImageHandler::doTransform: returning unscaled image
[Preprocessor] Cached preprocessor output (key: c6_wiki:preprocess-hash:a7ab213a0a00eb82ddeb7e24e151904a:0)
Saved in parser cache with key c6_wiki:pcache:idhash:68-0!canonical and timestamp 20230330102514 and revision id 206
[SQLBagOStuff] Connection mysql object #145 (handle id #151) will be used for SqlBagOStuff
[SQLBagOStuff] Connection mysql object #145 (handle id #151) will be used for SqlBagOStuff
MediaWiki::preOutputCommit: primary transaction round committed
MediaWiki::preOutputCommit: pre-send deferred updates completed
MediaWiki::preOutputCommit: session changes committed
MediaWiki::preOutputCommit: LBFactory shutdown completed
Title::getRestrictionTypes: applicable restrictions to [[Chmod]] are {edit,move}