[Pkg-shadow-devel] gpasswd, newgrp and gshadow man pages

Nicolas François nicolas.francois@centraliens.net
Mon, 11 Apr 2005 00:32:05 +0200


--ew6BAiZeqk4r7MaW
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Sat, Apr 09, 2005 at 10:29:26PM +0200, Christian Perrier wrote:
> > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=251926
> > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=166173
> > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=113191
> 
> If the new man pages fix all these bugs, and given that Tomasz
> accepted them, could you tag these bugs "fixed-upstream, confirmed,
> patch" and of course retitle them with [POST-SARGE] (as a marker to
> remember that we have dealt with them in the bug triage).
> 
> Of course, if the new man pages are only part of the fix, then don't
> tag the bugs.

Tomasz, can you have a look at the attached patch.

It explains why editing /etc/group (without gshadow) doesn't permit to use
newgrp (and should permit to close the above bugs).

This time, it is a diff against your CVS.

-- 
Nekral

--ew6BAiZeqk4r7MaW
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="newgrp.1.patch"

Index: man/newgrp.1
===================================================================
RCS file: /cvsroot/shadow/man/newgrp.1,v
retrieving revision 1.18
diff -u -r1.18 newgrp.1
--- man/newgrp.1	5 Apr 2005 18:47:50 -0000	1.18
+++ man/newgrp.1	10 Apr 2005 22:12:07 -0000
@@ -50,6 +50,10 @@
 password.
 The user will be denied access if the group password is empty and
 the user is not listed as a member.
+If compiled with SHADOWPWD (respectively SHADOWGRP) defined, the password
+of the user (respectively, the password and the members of the group) will
+be overwritten by the value defined in \fI/etc/shadow\fR (respectively in
+\fI/etc/gshadow\fR) if an entry exists for this user (resp. group).
 .PP
 The \fBsg\fR command works similar to \fBnewgrp\fR but accepts a command.
 The command will be executed with the Bourne shell. With most shells you
@@ -60,6 +64,8 @@
 exit from a \fBsg\fR command you are returned to your previous group ID.
 .SH FILES
 \fI/etc/passwd\fR	\- user account information
+.br
+\fI/etc/shadow\fR	\- encrypted password file
 .br
 \fI/etc/group\fR	\- group information
 .br

--ew6BAiZeqk4r7MaW--