chown (1)


NAME
SYNOPSIS
DESCRIPTION
OPTIONS
OPERANDS
COPYRIGHT
Source Code

NAME

chown - change the file ownership

SYNOPSIS

chown

[-h] owner[:group] file...

chown

-R [-H|-L|-P] owner[:group] file...

DESCRIPTION

The chown utility sets the user ID of the file named by each file operand to the user ID specified by the owner operand. If the option -R was used, the chown utility changes the ownership of directory trees.

OPTIONS

-R

Recursively change file user and group IDs.

-h

If a file is of type symbolic link, the chown utility tries to change the ownership of the link.

-H

If the -R option is specified and a symbolic link referencing a directory is specified on the command line, chown changes the user ID (and group ID, if specified) of the directory referenced by the symbolic link and all files in the file hierarchy below it.

-L

If the -R option is specified and a symbolic link referencing a directory is specified on the command line or encountered during traversal of a file hierarchy, chown changes the user ID (and group ID, if specified) of the directory referenced by the symbolic link and all files in the file hierarchy below it.

-P

If the -R option is specified and a symbolic link referencing a directory is specified on the command line or encountered during traversal of a file hierarchy, chown changes the user ID (and group ID, if specified) of the symbolic link.

OPERANDS

The following operands are supported:

owner[:group]

A user ID and optional group ID to be assigned to file.

file

A pathname of a file whose user ID is to be modified.

COPYRIGHT

Copyright © 2021 Benjamin Stürz
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.


Generated using groff on 2022-07-19 01:11:30 (UTC)

Look at my source code on GitHub Memes
This website is licensed under the terms of the AGPLv3.
Tor link: 3gto4zix3cpwhq32sh5ygsr3brlmgy4pdf26md46e4zpzfzmbftw3cyd.onion