CHOWN(1) Käyttäjän sovellukset CHOWN(1)

chown - change file owner and group

chown [VALITSIN]... [OMISTAJA][:[RYHMÄ]] TIEDOSTO...
chown [VALITSIN]... --reference=RTIED TIEDOSTO...

This manual page documents the GNU version of chown. chown changes the user and/or group ownership of each given file. If only an owner (a user name or numeric user ID) is given, that user is made the owner of each given file, and the files' group is not changed. If the owner is followed by a colon and a group name (or numeric group ID), with no spaces between them, the group ownership of the files is changed as well. If a colon but no group name follows the user name, that user is made the owner of the files and the group of the files is changed to that user's login group. If the colon and group are given, but the owner is omitted, only the group of the files is changed; in this case, chown performs the same function as chgrp. If only a colon is given, or if the entire operand is empty, neither the owner nor the group is changed.

Vaihda kunkin TIEDOSTOn omistajaksi ja/tai ryhmäksi OMISTAJA ja/tai RYHMÄ. Jos valitsin --reference on annettu, vaihda kunkin TIEDOSTOn omistajaksi ja ryhmäksi samat kuin VTIEDostolla.

-c, --changes
kuten monisanaisuus, mutta ilmoita vain tehdyt muutokset
-f, --silent, --quiet
vaienna useimmat virheilmoitukset
-v, --verbose
näytä ilmoitus jokaisesta käsitellystä tiedostosta
--dereference
vaikuttaa kunkin symbolisen linkin viitearvoon (tämä on oletus), eikä itse symbolista linkkiä
-h, --no-dereference
affect symbolic links instead of any referenced file; useful only on systems that can change the ownership of a symlink
--from=CURRENT_OWNER:CURRENT_GROUP
change the ownership of each file only if its current owner and/or group match those specified here. Either may be omitted, in which case a match is not required for the omitted attribute
--no-preserve-root
älä kohtele juurta (”/”) erityisesti (oletus)
--preserve-root
estä rekursiivinen toiminta juuressa (”/”)
--reference=RFILE
use RFILE's ownership rather than specifying values. RFILE is always dereferenced if a symbolic link.
-R, --recursive
käsittele tiedostot ja hakemistot rekursiivisesti

The following options modify how a hierarchy is traversed when the -R option is also specified. If more than one is specified, only the final one takes effect. -P is the default.

-H
if a command line argument is a symlink to a directory, traverse it
-L
seuraa jokaista hakemistoon osoittavaa symbolista linkkiä
-P
do not traverse any symbolic links
--help
näytä tämä ohje ja poistu
--version
näytä versiotiedot ja poistu

Jos omistaja puuttuu, sitä ei muuteta. Jos ryhmä puuttuu, se muutetaan kirjautumisryhmäksi siinä tapauksessa, että symbolisen OMISTAJAn perässä on ”:”. OMISTAJA ja RYHMÄ voivat olla joko numeerisia tai symbolisia.

Vaihda /u:n omistajaksi ”root”.
Sama kuin yllä, lisäksi ryhmäksi ”hlokunta”
Vaihda /u:n ja alitiedostojen omistajaksi ”root”.

Kirjoittaneet David MacKenzie ja Jim Meyering.

Ilmoita ohjelmistovioista (englanniksi) osoitteeseen bug-coreutils@gnu.org
GNU coreutils-kotisivu: https://www.gnu.org/software/coreutils/
Yleisohjeita GNU-ohjelmistojen käyttöön: https://www.gnu.org/gethelp/
Ilmoita käännösvirheistä osoitteeseen https://translationproject.org/team/fi.html

Copyright © 2026 Free Software Foundation, Inc. Lisenssi GPLv3+: GNU GPL versio 3 tai myöhempi https://gnu.org/licenses/gpl.html.
Tämä on vapaa ohjelmisto; sitä saa vapaasti muuttaa ja levittää edelleen. Siinä määrin kuin laki sallii, TAKUUTA EI OLE.

chown(2)

Koko dokumentaatio: https://www.gnu.org/software/coreutils/chown
tai saatavilla paikallisesti: info '(coreutils) chown invocation'

Tämän käsikirjan suomenkielisen käännöksen tekivät Jani Frilander <jani.frilander@mail.wwnet.fi>

Tämä käännös on ilmainen dokumentaatio; katso tekijänoikeusehdot GNU General Public License -versiosta 3 tai uudemmasta. Emme ota vastuuta.

April 2026 GNU coreutils 9.11