Deleted Added
full compact
newgrp.1 (97601) newgrp.1 (140368)
1.\" Copyright (c) 2002 Tim J. Robbins.
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 8 unchanged lines hidden (view full) ---

17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23.\" SUCH DAMAGE.
24.\"
1.\" Copyright (c) 2002 Tim J. Robbins.
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 8 unchanged lines hidden (view full) ---

17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23.\" SUCH DAMAGE.
24.\"
25.\" $FreeBSD: head/usr.bin/newgrp/newgrp.1 97601 2002-05-30 13:57:35Z ru $
25.\" $FreeBSD: head/usr.bin/newgrp/newgrp.1 140368 2005-01-17 07:44:44Z ru $
26.\"
27.Dd May 23, 2002
28.Dt NEWGRP 1
29.Os
30.Sh NAME
31.Nm newgrp
32.Nd change to a new group
33.Sh SYNOPSIS

--- 18 unchanged lines hidden (view full) ---

52.Ar group
53operand is present, a new shell is started with the specified effective
54and real group IDs.
55The user will be prompted for a password if they are not a member of the
56specified group.
57.Pp
58Otherwise, the real, effective and supplementary group IDs are restored to
59those from the current user's password database entry.
26.\"
27.Dd May 23, 2002
28.Dt NEWGRP 1
29.Os
30.Sh NAME
31.Nm newgrp
32.Nd change to a new group
33.Sh SYNOPSIS

--- 18 unchanged lines hidden (view full) ---

52.Ar group
53operand is present, a new shell is started with the specified effective
54and real group IDs.
55The user will be prompted for a password if they are not a member of the
56specified group.
57.Pp
58Otherwise, the real, effective and supplementary group IDs are restored to
59those from the current user's password database entry.
60.Sh DIAGNOSTICS
60.Sh EXIT STATUS
61The
62.Nm
63utility attempts to start the shell regardless of whether group IDs
64were successfully changed.
65.Pp
66If an error occurs and the shell cannot be started,
67.Nm
68exits >0.

--- 27 unchanged lines hidden ---
61The
62.Nm
63utility attempts to start the shell regardless of whether group IDs
64were successfully changed.
65.Pp
66If an error occurs and the shell cannot be started,
67.Nm
68exits >0.

--- 27 unchanged lines hidden ---