Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ chgrp(1) — Digital UNIX 3.2c

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

chmod(1)

chown(1)

groups(1)

chmod(2)

chown(2)

chgrp(1)  —  Commands

NAME

chgrp − Changes the group ownership of a file or directory

SYNOPSIS

chgrp [−fhR] group file

The chgrp command changes the group associated with the specified file or directory to group. 

FLAGS

−fSuppresses all error reporting. 

−hIf file is a symbolic link, chgrp −h file changes the group of the symbolic link. chgrp file changes the group of the file referenced by the symbolic link. 

−RCauses chgrp to descend recursively through its directory arguments, setting the specified group ID. 

DESCRIPTION

If you do not own the file and do not belong to the new group, you must have superuser authority to change the group name or group ID. 

The group argument must be either a valid group name or a valid group ID that exists in the group database. 

EXAMPLES

To change the group ownership of the file or directory named proposals to staff, enter:

chgrp  staff  proposals

The group access permissions for proposals now apply to staff.  See chmod for details. 

FILES

/etc/groupContains group information. 

RELATED INFORMATION

Commands:  chmod(1), chown(1), groups(1). 

Functions:  chmod(2), chown(2). 

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