
{"id":18573,"date":"2010-03-13T15:00:55","date_gmt":"2010-03-13T09:30:55","guid":{"rendered":"http:\/\/froisa.com\/?p=1038"},"modified":"2010-03-13T15:00:55","modified_gmt":"2010-03-13T09:30:55","slug":"chmod-change-file-mode-bits","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2010\/03\/13\/chmod-change-file-mode-bits\/","title":{"rendered":"chmod &#8211; change file mode bits"},"content":{"rendered":"<p><u>ABOUT chmod<\/u><\/p>\n<pre>\nIn Unix and Unix-like operating systems, chmod is the command and system call which is used to change the access permissions of file system objects (files and directories). It is also used to change special mode flags. The request is filtered by the umask. The name is an abbreviation of change mode.[1]\n<\/pre>\n<p><u>TYPICAL COMMANDLINE EXPOSURE<\/u><br \/>\n[bash]<br \/>\n$ chmod +t source\/<br \/>\n$ ls -l<br \/>\ntotal 12<br \/>\ndrwxr-xr-x 2 ahiliation ahiliation 4096 2010-03-13 04:40 Desktop<br \/>\ndrwxr-xr-x 2 ahiliation ahiliation 4096 2010-03-13 19:20 Downloads<br \/>\ndrwxr-xr-t 2 ahiliation ahiliation 4096 2010-03-13 20:41 source<br \/>\n[\/bash]<\/p>\n<pre>\nt - Save text attribute (sticky bit) - The user may delete or modify only those files in the directory that they own or have write permission for.\n<\/pre>\n<p>[bash]<br \/>\n$chmod -c<br \/>\n$ls -l rwsem.c<br \/>\n-rw-rw-r&#8211; 1 root root 21007 Aug 30  2011 rwsem.c<br \/>\n$chmod -c rwsem.c<br \/>\nchmod: missing operand after \u2018rwsem.c\u2019<br \/>\nTry &#8216;chmod &#8211;help&#8217; for more information.<br \/>\n$chmod -c<br \/>\nchmod: missing operand<br \/>\nTry &#8216;chmod &#8211;help&#8217; for more information.<br \/>\n$chmod -c 700  rwsem.c<br \/>\nchmod: changing permissions of \u2018rwsem.c\u2019: Operation not permitted<br \/>\n$sudo chmod -c 700  rwsem.c<br \/>\nmode of \u2018rwsem.c\u2019 changed from 0664 (rw-rw-r&#8211;) to 0700 (rwx&#8212;&#8212;)<br \/>\n$<br \/>\n[\/bash]<\/p>\n<p>LINKS<br \/>\n<a href=\"https:\/\/en.wikipedia.org\/wiki\/Chmod\">https:\/\/en.wikipedia.org\/wiki\/Chmod<\/a><br \/>\n<a style=\"text-decoration:underline;\" href=\"http:\/\/www.gnu.org\/software\/coreutils\/manual\/html_node\/chmod-invocation.html\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/www.gnu.org\/software\/coreutils\/manual\/html_node\/chmod-invocation.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>ABOUT chmod In Unix and Unix-like operating systems, chmod is the command and system call which is used to change the access permissions of file system objects (files and directories). It is also used to change special mode flags. The request is filtered by the umask. The name is an abbreviation of change mode.[1] TYPICAL &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2010\/03\/13\/chmod-change-file-mode-bits\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;chmod &#8211; change file mode bits&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[83,87],"tags":[536,1217,1623],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/18573"}],"collection":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/comments?post=18573"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/18573\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=18573"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=18573"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=18573"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}