{"id":290,"date":"2019-10-21T19:34:07","date_gmt":"2019-10-21T17:34:07","guid":{"rendered":"http:\/\/linuxboxen2.dk\/?p=290"},"modified":"2019-10-21T19:34:07","modified_gmt":"2019-10-21T17:34:07","slug":"org_chown","status":"publish","type":"post","link":"https:\/\/www.linuxboxen.dk\/?p=290","title":{"rendered":"CHOWN"},"content":{"rendered":"<div class=\"view-content\">\n<div class=\"views-row\">\n<div class=\"views-field views-field-body\">\n<div class=\"field-content\">\n<p>CHOWN(1)\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 User Commands\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 CHOWN(1)<\/p>\n<p>NAME<\/p>\n<p>chown &#8211; change file owner and group<\/p>\n<p>SYNOPSIS<\/p>\n<p>chown [OPTION]&#8230; [OWNER][:[GROUP]] FILE&#8230;<br \/>\nchown [OPTION]&#8230; &#8211;reference=RFILE FILE&#8230;<\/p>\n<p>DESCRIPTION<\/p>\n<p>This manual page documents the GNU version of chown.\u00a0 chown changes<br \/>\nthe user and\/or group ownership of each given file.\u00a0 If only an owner<br \/>\n(a user name or numeric user ID) is given, that user is made the<br \/>\nowner of each given file, and the files&#8217; group is not changed.\u00a0 If<br \/>\nthe owner is followed by a colon and a group name (or numeric group<br \/>\nID), with no spaces between them, the group ownership of the files is<br \/>\nchanged as well.\u00a0 If a colon but no group name follows the user name,<br \/>\nthat user is made the owner of the files and the group of the files<br \/>\nis changed to that user&#8217;s login group.\u00a0 If the colon and group are<br \/>\ngiven, but the owner is omitted, only the group of the files is<br \/>\nchanged; in this case, chown performs the same function as chgrp.\u00a0 If<br \/>\nonly a colon is given, or if the entire operand is empty, neither the<br \/>\nowner nor the group is changed.<\/p>\n<p>OPTIONS<\/p>\n<p>Change the owner and\/or group of each FILE to OWNER and\/or GROUP.<br \/>\nWith &#8211;reference, change the owner and group of each FILE to those of<br \/>\nRFILE.<\/p>\n<p>-c, &#8211;changes<br \/>\nlike verbose but report only when a change is made<\/p>\n<p>-f, &#8211;silent, &#8211;quiet<br \/>\nsuppress most error messages<\/p>\n<p>-v, &#8211;verbose<br \/>\noutput a diagnostic for every file processed<\/p>\n<p>&#8211;dereference<br \/>\naffect the referent of each symbolic link (this is the<br \/>\ndefault), rather than the symbolic link itself<\/p>\n<p>-h, &#8211;no-dereference<br \/>\naffect symbolic links instead of any referenced file (useful<br \/>\nonly on systems that can change the ownership of a symlink)<\/p>\n<p>&#8211;from=CURRENT_OWNER:CURRENT_GROUP<br \/>\nchange the owner and\/or group of each file only if its current<br \/>\nowner and\/or group match those specified here.\u00a0 Either may be<br \/>\nomitted, in which case a match is not required for the omitted<br \/>\nattribute<\/p>\n<p>&#8211;no-preserve-root<br \/>\ndo not treat &#8216;\/&#8217; specially (the default)<\/p>\n<p>&#8211;preserve-root<br \/>\nfail to operate recursively on &#8216;\/&#8217;<\/p>\n<p>&#8211;reference=RFILE<br \/>\nuse RFILE&#8217;s owner and group rather than specifying OWNER:GROUP<br \/>\nvalues<\/p>\n<p>-R, &#8211;recursive<br \/>\noperate on files and directories recursively<\/p>\n<p>The following options modify how a hierarchy is traversed when the -R<br \/>\noption is also specified.\u00a0 If more than one is specified, only the<br \/>\nfinal one takes effect.<\/p>\n<p>-H\u00a0\u00a0\u00a0\u00a0 if a command line argument is a symbolic link to a directory,<br \/>\ntraverse it<\/p>\n<p>-L\u00a0\u00a0\u00a0\u00a0 traverse every symbolic link to a directory encountered<\/p>\n<p>-P\u00a0\u00a0\u00a0\u00a0 do not traverse any symbolic links (default)<\/p>\n<p>&#8211;help display this help and exit<\/p>\n<p>&#8211;version<br \/>\noutput version information and exit<\/p>\n<p>Owner is unchanged if missing.\u00a0 Group is unchanged if missing, but<br \/>\nchanged to login group if implied by a &#8216;:&#8217; following a symbolic<br \/>\nOWNER.\u00a0 OWNER and GROUP may be numeric as well as symbolic.<\/p>\n<p>EXAMPLES<\/p>\n<p>chown root \/u<br \/>\nChange the owner of \/u to &#8220;root&#8221;.<\/p>\n<p>chown root:staff \/u<br \/>\nLikewise, but also change its group to &#8220;staff&#8221;.<\/p>\n<p>chown -hR root \/u<br \/>\nChange the owner of \/u and subfiles to &#8220;root&#8221;.<\/p>\n<p>GNU coreutils online help: &lt;http:\/\/www.gnu.org\/software\/coreutils\/&gt;<br \/>\nReport chown translation bugs to<br \/>\n&lt;http:\/\/translationproject.org\/team\/&gt;<\/p>\n<p>AUTHOR<\/p>\n<p>Written by David MacKenzie and Jim Meyering.<\/p>\n<p>COPYRIGHT<\/p>\n<p>Copyright \u00a9 2014 Free Software Foundation, Inc.\u00a0 License GPLv3+: GNU<br \/>\nGPL version 3 or later &lt;http:\/\/gnu.org\/licenses\/gpl.html&gt;.<br \/>\nThis is free software: you are free to change and redistribute it.<br \/>\nThere is NO WARRANTY, to the extent permitted by law.<\/p>\n<p>SEE ALSO<\/p>\n<p>chown(2)<\/p>\n<p>The full documentation for chown is maintained as a Texinfo manual.<br \/>\nIf the info and chown programs are properly installed at your site,<br \/>\nthe command<\/p>\n<p>info coreutils &#8216;chown invocation&#8217;<\/p>\n<p>should give you access to the complete manual.<\/p>\n<p>COLOPHON<\/p>\n<p>This page is part of the coreutils (basic file, shell and text<br \/>\nmanipulation utilities) project.\u00a0 Information about the project can<br \/>\nbe found at \u27e8http:\/\/www.gnu.org\/software\/coreutils\/\u27e9.\u00a0 If you have a<br \/>\nbug report for this manual page, see<br \/>\n\u27e8http:\/\/www.gnu.org\/software\/coreutils\/\u27e9.\u00a0 This page was obtained from<br \/>\nthe tarball coreutils-8.23.tar.xz fetched from<br \/>\n\u27e8http:\/\/www.gnutls.org\/download.html\u27e9 on 2014-12-30.\u00a0 If you discover<br \/>\nany rendering problems in this HTML version of the page, or you<br \/>\nbelieve there is a better or more up-to-date source for the page, or<br \/>\nyou have corrections or improvements to the information in this<br \/>\nCOLOPHON (which is not part of the original manual page), send a mail<br \/>\nto\u00a0man-pages@man7.org<\/p>\n<p>GNU coreutils 8.23\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 December 2014\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 CHOWN(1)<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"view-footer\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>CHOWN(1)\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 User Commands\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 CHOWN(1) NAME chown &#8211; change file owner and group SYNOPSIS chown [OPTION]&#8230; [OWNER][:[GROUP]] FILE&#8230; chown [OPTION]&#8230; &#8211;reference=RFILE FILE&#8230; DESCRIPTION This manual page documents the GNU version of chown.\u00a0 chown changes the user and\/or group ownership of each given file.\u00a0 If only an owner (a user name or numeric user ID) is given, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_sitemap_exclude":false,"_sitemap_priority":"","_sitemap_frequency":"","footnotes":""},"categories":[8],"tags":[],"class_list":["post-290","post","type-post","status-publish","format-standard","hentry","category-shell"],"_links":{"self":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/posts\/290","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=290"}],"version-history":[{"count":0,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/posts\/290\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=290"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=290"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=290"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}