Justin Pryzby
2007-Feb-10 05:25 UTC
Bug#410366: adduser: adduser --group --gid <GID> <GROUP> advertised but fails
Package: adduser Version: 3.102 Severity: normal Tags: patch /usr/sbin/adduser -h adduser --group [--gid ID] GROUP addgroup [--gid ID] GROUP Add a user group /usr/sbin/adduser --group --gid 12345 foo adduser: The --group, --ingroup, and --gid options are mutually exclusive. Included is a patch which Fixes the Glitch in an intuitive way. I''ve not analyzed the consequencses or implications, however. --- /usr/sbin/adduser 2007-02-09 23:07:17.000000000 -0500 +++ /tmp/adduser 2007-02-09 23:07:27.000000000 -0500 @@ -137,7 +137,7 @@ if( defined($configfile) ) { @defaults = ($configfile); } # detect the right mode -my $action = $0 eq "addgroup" ? "addgroup" : "adduser"; +my $action = ($0 eq "addgroup" || defined($found_group_opt)) ? "addgroup" : "adduser"; if (defined($found_sys_opt)) { $action = "addsysuser" if ($action eq "adduser"); $action = "addsysgroup" if ($action eq "addgroup");
Stephen Gran
2007-Feb-10 13:22 UTC
Bug#410366: [Adduser-devel] Bug#410366: adduser: adduser --group --gid <GID> <GROUP> advertised but fails
severity 410366 wishlist tags 410366 +wontfix tags 410366 -patch thanks This one time, at band camp, Justin Pryzby said:> /usr/sbin/adduser --group --gid 12345 foo > adduser: The --group, --ingroup, and --gid options are mutually exclusive.This is intended behavior. If you want to add a group, run addgroup. Many programs behave differently based on ARGV[0], and this is just another of them.> Included is a patch which Fixes the Glitch in an intuitive way. I''ve > not analyzed the consequencses or implications, however.Thank you for the report and the patch. I have made this bug severity wishlist for now. I actually would prefer to close it, as I don''t believe it''s a bug. I am leaving it open for now, and if you convince me that I''m wrong, we can look into it. Take care, -- ----------------------------------------------------------------- | ,''''`. Stephen Gran | | : :'' : sgran@debian.org | | `. `'' Debian user, admin, and developer | | `- http://www.debian.org | ----------------------------------------------------------------- -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://lists.alioth.debian.org/pipermail/adduser-devel/attachments/20070210/ac26439d/attachment.pgp
Debian Bug Tracking System
2007-Feb-10 13:26 UTC
Processed: Re: [Adduser-devel] Bug#410366: adduser: adduser --group --gid <GID> <GROUP> advertised but fails
Processing commands for control@bugs.debian.org:> severity 410366 wishlistBug#410366: adduser: adduser --group --gid <GID> <GROUP> advertised but fails Severity set to `wishlist'' from `normal''> tags 410366 +wontfixBug#410366: adduser: adduser --group --gid <GID> <GROUP> advertised but fails Tags were: patch Tags added: wontfix> tags 410366 -patchBug#410366: adduser: adduser --group --gid <GID> <GROUP> advertised but fails Tags were: wontfix patch Tags removed: patch> thanksStopping processing here. Please contact me if you need assistance. Debian bug tracking system administrator (administrator, Debian Bugs database)
Justin Pryzby
2007-Feb-10 18:11 UTC
Bug#410366: [Adduser-devel] Bug#410366: adduser: adduser --group --gid <GID> <GROUP> advertised but fails
On Sat, Feb 10, 2007 at 11:31:16AM +0000, Stephen Gran wrote:> severity 410366 wishlist > tags 410366 +wontfix > tags 410366 -patch > thanks > This one time, at band camp, Justin Pryzby said: > > /usr/sbin/adduser --group --gid 12345 foo > > adduser: The --group, --ingroup, and --gid options are mutually exclusive. > > This is intended behavior. If you want to add a group, run addgroup. > Many programs behave differently based on ARGV[0], and this is just > another of them. > > > Included is a patch which Fixes the Glitch in an intuitive way. I''ve > > not analyzed the consequencses or implications, however. > > Thank you for the report and the patch. I have made this bug severity > wishlist for now. I actually would prefer to close it, as I don''t > believe it''s a bug. I am leaving it open for now, and if you convince > me that I''m wrong, we can look into it.You left out an important part: /usr/sbin/adduser -h adduser --group [--gid ID] GROUP addgroup [--gid ID] GROUP Add a user group So this is advertised as a supported syntax. I don''t mind and have no objection to using addgroup exclusively for this purpose, but then adduser must not advtise that it works. Justin
Stephen Gran
2007-Feb-11 15:36 UTC
Bug#410366: [Adduser-devel] Bug#410366: adduser: adduser --group --gid <GID> <GROUP> advertised but fails
tags 410366 -wontfix thanks This one time, at band camp, Justin Pryzby said:> On Sat, Feb 10, 2007 at 11:31:16AM +0000, Stephen Gran wrote: > > This one time, at band camp, Justin Pryzby said: > > > /usr/sbin/adduser --group --gid 12345 foo > > > adduser: The --group, --ingroup, and --gid options are mutually exclusive. > > > > This is intended behavior. If you want to add a group, run addgroup. > > Many programs behave differently based on ARGV[0], and this is just > > another of them. > > > You left out an important part: > > /usr/sbin/adduser -h > adduser --group [--gid ID] GROUP > addgroup [--gid ID] GROUP > Add a user group > > So this is advertised as a supported syntax. I don''t mind and have no > objection to using addgroup exclusively for this purpose, but then > adduser must not advtise that it works.Hmm. All right, I''ll review it in the next couple of days and either remove the advertising of the option, or allow it to work. Thanks for the report. -- ----------------------------------------------------------------- | ,''''`. Stephen Gran | | : :'' : sgran@debian.org | | `. `'' Debian user, admin, and developer | | `- http://www.debian.org | ----------------------------------------------------------------- -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://lists.alioth.debian.org/pipermail/adduser-devel/attachments/20070211/af8c2d6e/attachment.pgp
Debian Bug Tracking System
2007-Feb-11 15:41 UTC
Processed: Re: Bug#410366: [Adduser-devel] Bug#410366: adduser: adduser --group --gid <GID> <GROUP> advertised but fails
Processing commands for control@bugs.debian.org:> tags 410366 -wontfixBug#410366: adduser: adduser --group --gid <GID> <GROUP> advertised but fails Tags were: wontfix Tags removed: wontfix> thanksStopping processing here. Please contact me if you need assistance. Debian bug tracking system administrator (administrator, Debian Bugs database)
Debian Bug Tracking System
2007-Jun-18 23:09 UTC
[Adduser-devel] Bug#410366: marked as done (adduser: adduser --group --gid <GID> <GROUP> advertised but fails)
Your message dated Mon, 18 Jun 2007 23:02:02 +0000 with message-id <E1I0QEU-0008Mm-Lo at ries.debian.org> and subject line Bug#410366: fixed in adduser 3.103 has caused the attached Bug report to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what I am talking about this indicates a serious mail system misconfiguration somewhere. Please contact me immediately.) Debian bug tracking system administrator (administrator, Debian Bugs database) -------------- next part -------------- An embedded message was scrubbed... From: Justin Pryzby <justinpryzby at users.sourceforge.net> Subject: adduser: adduser --group --gid <GID> <GROUP> advertised but fails Date: Fri, 9 Feb 2007 23:12:12 -0500 Size: 2361 Url: http://lists.alioth.debian.org/pipermail/adduser-devel/attachments/20070618/e507032c/attachment.eml -------------- next part -------------- An embedded message was scrubbed... From: Joerg Hoh <joerg at joerghoh.de> Subject: Bug#410366: fixed in adduser 3.103 Date: Mon, 18 Jun 2007 23:02:02 +0000 Size: 3586 Url: http://lists.alioth.debian.org/pipermail/adduser-devel/attachments/20070618/e507032c/attachment-0001.eml