Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ chgrp(1) — DG/UX R4.11

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

chmod(1)

chown(1)

groups(1)

id(1)

logname(1)

ls(1)

group(4)

passwd(4)



chgrp(1)                         DG/UX R4.11                        chgrp(1)


NAME
       chgrp - change the group ownership of a file

SYNOPSIS
       chgrp [-R] [-h] group file ...

DESCRIPTION
       chgrp changes the group ID of the files given as arguments to group.
       The group may be either a decimal group ID or a group name found in
       the group ID file, /etc/group.

       You must be the owner of the file, or be a user with appropriate
       privilege to use this command.  On a generic DG/UX system,
       appropriate privilege is granted by having an effective UID of 0
       (root).  See the appropriateprivilege(5) man page for more
       information.

       On a system with DG/UX information security, appropriate privilege is
       granted by having one or more specific capabilities enabled in the
       effective capability set of the user.  See the capdefaults(5) man
       page for more information.

       Valid options to chgrp are:

       -R     Recursive.  chgrp descends through the directory, and any
              subdirectories, setting the specified group ID as it proceeds.
              When symbolic links are encountered, they are traversed.

       -h     If the file is a symbolic link, change the group of the
              symbolic link.  Without this option, the group of the file
              referenced by the symbolic link is changed.

EXAMPLES
       $ chgrp 1009 chapter

       If you own a file chapter, the new group will be the group named by
       the numeric group ID 1009.

       $ chgrp work *

       This command changes the group for all the files you own in the
       current directory.  The new group will be the group with the group
       name work.  work must be a valid group name listed in the /etc/group
       file.

FILES
       /etc/group

SEE ALSO
       chmod(1), chown(1), groups(1), id(1), logname(1), ls(1).
       group(4), passwd(4).
       appropriateprivilege(5).


Licensed material--property of copyright holder(s)

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