Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ chown(1) — HP-UX 6.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

chmod(1)

chown(2)

group(4)

passwd(4)

CHOWN(1)  —  HP-UX

NAME

chown, chgrp − change file owner or group

SYNOPSIS

chown owner file ... 

chgrp group file ... 

DESCRIPTION

Chown changes the owner of the files to owner. The owner can be either a decimal user ID or a login name found in the password file.

Chgrp changes the group ID of the files to group. The group can be either a decimal group ID or a group name found in the group file.

In order to change the owner or group, you must own the file or be the super-user.  If either command is invoked by other than the super-user on a regular file, the set-user-ID and set-group-ID bits of the file mode, 04000 and 02000 respectively, will be cleared. 

When using chown or chgrp on symbolic links, the owner or group of the file referred to by the link is changed. 

EXAMPLES

The following command changes the owner of the file jokes to sandi:

chown sandi jokes

Note that you must be either the owner of jokes or the super-user. 

DEPENDENCIES

Series 800
Symbolic links are not supported.

FILES

/etc/group
/etc/passwd

SEE ALSO

chmod(1), chown(2), group(4), passwd(4). 

INTERNATIONAL SUPPORT

8-bit file names. 

Hewlett-Packard Company  —  Version B.1,  May 11, 2021

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026