Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ chgrp(1) — AIX PS/2 1.2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

groups

chown

fchown

group



CHGRP(1,C)                  AIX Commands Reference                   CHGRP(1,C)



-------------------------------------------------------------------------------
chgrp



PURPOSE

Changes the group ownership of a file or directory.

SYNTAX


         +--------+   +- groupname -+   +-----------+
chgrp ---| +----+ |---|             |---| file      |---|
         +-| -f |-+   +-- groupid --+ ^ | directory | |
          ^| -r ||                    | +-----------+ |
          || -R ||                    +---------------+
          |+----+|
          +------+


Warning: See restrictions, Chapter 18, AIX Programming Tools and Interfaces.

DESCRIPTION

The chgrp command changes the group associated with the specified file or
directory to groupname or groupid.  Unless you have superuser authority, you
can change the group ownership only on files that you own and only to groups of
which you are a member.

FLAGS

-f      Suppresses all error reporting.

-r      Causes the untranslated group ID to be used.

-R      Causes chgrp to descend recursively through its directory arguments,
        setting the specified group ID.  When symbolic links are encountered,
        their group is changed, but they are not traversed.

EXAMPLES

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

  chgrp staff proposals

The group access permissions for "proposals" now apply to the "staff" group.

FILES

/etc/group    File that identifies all known groups.



Processed November 8, 1990        CHGRP(1,C)                                  1





CHGRP(1,C)                  AIX Commands Reference                   CHGRP(1,C)




RELATED INFORMATION

See the following command:  "groups."

See the chown and fchown system calls and the group file in AIX Operating
System Technical Reference.
















































Processed November 8, 1990        CHGRP(1,C)                                  2



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