Chgrp - wikipedia Chgrp The chgrp ( from change group ) command may be used by unprivileged users on Unix - like systems to change the group associated with a file system object ( such as a file, directory, or link ) to one of which they are a member. A file system object has 3 sets of access permissions, one set for the owner, one set for the group and one set for others. Changing the group of an object could be used to change which users can write to a file. Contents 1 Syntax 2 Frequently implemented options 3 Example 4 See also 5 External links Syntax chgrp ( options ) group FSO Frequently implemented options - R recurse through subdirectories - v verbosely output names of objects changed. Most useful when `` FSO '' is a list. - f force or forge ahead with other objects even if an error is encountered. The group parameter specifies the new group with which the files or directories should be associated. It may either be a symbolic name or an identifier. The FSO specifies one or more file system objects, which may be the result of an expression like *. conf Example $ 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 The above command changes the group associated with file prog. conf ' from wheel to staff ( provided the executing user is a member of that group ). This could be used to allow members of staff to modify the configuration for programs prog and prox. See also chmod chown Group identifier ( Unix ) List of Unix programs Id ( Unix ) External links chgrp : change the file group ownership -- Commands & Utilities Reference, The Single UNIX Specification, Issue 7 from The Open Group Unix command - line interface programs and shell builtins File system cat chmod chown chgrp cksum cmp cp dd du df file fuser ln ls mkdir mv pax pwd rm rmdir split tee touch type umask Processes at bg crontab fg kill nice ps time User environment env exit logname mesg talk tput uname who write Text processing awk basename comm csplit cut diff dirname ed ex fold head iconv join m4 more nl paste printf sed sort strings tail tr uniq vi wc xargs Shell builtins alias cd echo test unset wait Searching find grep Documentation man Software development ar ctags lex make nm strip yacc Miscellaneous bc cal expr lp od sleep true and false Categories Standard Unix programs Unix SUS2008 utilities List Retrieved from `` https://en.wikipedia.org/w/index.php?title=Chgrp&oldid=764519264 '' Categories : Operating system security Standard Unix programs Unix SUS2008 utilities Talk Contents About Wikipedia Azərbaycanca Català Čeština Deutsch Ελληνικά Español فارسی Français 한국어 Hrvatski Italiano ქართული Magyar 日本 語 Polski Português Română Русский Українська Tiếng Việt 中文 Edit links This page was last edited on 9 February 2017, at 11 : 22. About Wikipedia

Question: how to change group of file in unix
Answer: chgrp