summaryrefslogtreecommitdiff
path: root/usr.sbin/chown/chgrp.1
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/chown/chgrp.1')
-rw-r--r--usr.sbin/chown/chgrp.127
1 files changed, 11 insertions, 16 deletions
diff --git a/usr.sbin/chown/chgrp.1 b/usr.sbin/chown/chgrp.1
index a4bd7a9438e..55da5a5899a 100644
--- a/usr.sbin/chown/chgrp.1
+++ b/usr.sbin/chown/chgrp.1
@@ -1,3 +1,5 @@
+.\" $OpenBSD: chgrp.1,v 1.2 1997/01/26 05:54:27 downsj Exp $
+.\"
.\" Copyright (c) 1983, 1990, 1993, 1994
.\" The Regents of the University of California. All rights reserved.
.\"
@@ -33,11 +35,10 @@
.\" SUCH DAMAGE.
.\"
.\" from: @(#)chgrp.1 8.3 (Berkeley) 3/31/94
-.\" $Id: chgrp.1,v 1.1 1995/10/18 08:47:29 deraadt Exp $
.\"
-.Dd March 31, 1994
+.Dd January 25, 1997
.Dt CHGRP 1
-.Os BSD 4.2
+.Os
.Sh NAME
.Nm chgrp
.Nd change group
@@ -48,6 +49,7 @@
.Op Fl H | Fl L | Fl P
.Oc
.Op Fl f
+.Op Fl h
.Ar group
.Ar files ...
.Sh DESCRIPTION
@@ -78,15 +80,14 @@ in the files instead of just the files themselves.
.It Fl f
The force option ignores errors, except for usage errors and doesn't
query about strange modes (unless the user does not have proper permissions).
+.It Fl h
+Change the group ID of the specified symbolic link. The
+.Fl h
+and
+.Fl R
+options are mutually exclusive.
.El
.Pp
-Symbolic links don't have groups, so unless the
-.Fl H
-or
-.Fl L
-option is set,
-.Nm chgrp
-on a symbolic link always succeeds and has no effect.
The
.Fl H ,
.Fl L
@@ -113,12 +114,6 @@ or be the super-user.
The
.Nm chgrp
utility exits 0 on success, and >0 if an error occurs.
-.Sh COMPATIBILITY
-Previous versions of the
-.Nm chgrp
-utility changed the group of symbolic links specified on the command
-line.
-In this system, symbolic links do not have groups.
.Sh FILES
.Bl -tag -width /etc/group -compact
.It Pa /etc/group