encyclopegia.org

Chgrp

, short for change group, is a shell command for changing the group associated with a Unix-based file system file including special files such as directories. Changing the group of a file is restricted to a super-user (such as via ) or to the file's owning user if the user is in the specified group. A file has access permissions for the owning user, a group and for others. Changing the group for a file changes access to it based on users' group memberships.

, short for change group, is a shell command for changing the group associated with a Unix-based file system file including special files such as directories. Changing the group of a file is restricted to a super-user (such as via ) or to the file's owning user if the user is in the specified group. A file has access permissions for the owning user, a group and for others. Changing the group for a file changes access to it based on users' group memberships. ==History== The command was originally developed as part of the Unix operating system by AT&T Bell Laboratories. It is available in most Unix-like systems, Plan 9, Inferno and IBM i. The version of chgrp bundled in GNU coreutils was written by David MacKenzie. ==Use== Generally, the syntax can be described as: chgrp [options] group files group specifies the group with which the files should be associated; may be either a symbolic name or an identifier files specifies one or more files, which may be the result of a glob expression like Options: Recurse through directories Verbose output: log the name of each file changed Force or forge ahead even if an error occurs ==Examples== The following demonstrates changing the group of files matching to staff provided the user owns the files (is gbeeker) and is a member of staff. The change will allow members of the group staff to modify the files since the group-class permissions (read/write) will apply, not the others-class permissions (read only). $ ls -l *.conf -rw-rw-r-- 1 gbeeker wheel 3545 Nov 04 2011 prog.conf -rw-rw-r-- 1 gbeeker wheel 3545 Nov 04 2011 prox.conf $ chgrp staff *.conf $ ls -l *.conf -rw-rw-r-- 1 gbeeker staff 3545 Nov 04 2011 prog.conf -rw-rw-r-- 1 gbeeker staff 3545 Nov 04 2011 prox.conf ==See also== ==References== ==External links== de:Unix-Kommandos#Benutzer- und Rechteverwaltung

References

No reference rows published for this article.

Cite this article

MLA

"Chgrp." encyclopegia.org, 2025, https://encyclopegia.org/wiki/chgrp. Accessed 24 November 2026.

Chicago

"Chgrp." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/chgrp.

APA

encyclopegia.org. (2025). Chgrp. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/chgrp

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1328452774 · 0.5 · snapshot enwiki-001328452774

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.