public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] bug in usermod, full name of options doesn't work
@ 2007-01-12 17:46 Allan Gottlieb
  2007-01-13  6:17 ` Bo Ørsted Andresen
  2007-01-13 14:13 ` Benno Schulenberg
  0 siblings, 2 replies; 4+ messages in thread
From: Allan Gottlieb @ 2007-01-12 17:46 UTC (permalink / raw
  To: gentoo-user

Goal: add gottlieb to group scanner.

It seems that -aG works but --append --groups doesn't

I will file a bug in b.g.o. unless I did something wrong.

thanks in advance
allan

ajglap portage # usermod --groups scanner --append gottlieb
Usage: usermod [options] LOGIN

Options:
  -a, --append                  append the user to the supplemental GROUPS
                                (use only with -G)
  -c, --comment COMMENT         new value of the GECOS field
  -d, --home HOME_DIR           new home directory for the user account
  -e, --expiredate EXPIRE_DATE  set account expiration date to EXPIRE_DATE
  -f, --inactive INACTIVE       set password inactive after expiration
                                to INACTIVE
  -g, --gid GROUP               force use GROUP as new primary group
  -G, --groups GROUPS           new list of supplementary GROUPS
  -h, --help                    display this help message and exit
  -l, --login NEW_LOGIN         new value of the login name
  -L, --lock                    lock the user account
  -m, --move-home               move contents of the home directory to the new
                                location (use only with -d)
  -o, --non-unique              allow using duplicate (non-unique) UID
  -p, --password PASSWORD       use encrypted password for the new password
  -s, --shell SHELL             new login shell for the user account
  -u, --uid UID                 new UID for the user account
  -U, --unlock                  unlock the user account

ajglap portage # usermod -aG scanner gottlieb
ajglap portage # grep gottlieb /etc/group
wheel:x:10:root,gottlieb
cron:x:16:cron,gottlieb
audio:x:18:gottlieb
cdrom:x:19:haldaemon,gottlieb
video:x:27:root,gottlieb
games:x:35:gottlieb
cdrw:x:80:gottlieb,haldaemon
portage:x:250:portage,gottlieb
gottlieb:x:1502:
scanner:x:1504:gottlieb
plugdev:x:1507:gottlieb,haldaemon
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] bug in usermod, full name of options doesn't work
  2007-01-12 17:46 [gentoo-user] bug in usermod, full name of options doesn't work Allan Gottlieb
@ 2007-01-13  6:17 ` Bo Ørsted Andresen
  2007-01-13 14:13 ` Benno Schulenberg
  1 sibling, 0 replies; 4+ messages in thread
From: Bo Ørsted Andresen @ 2007-01-13  6:17 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 428 bytes --]

On Friday 12 January 2007 18:46, Allan Gottlieb wrote:
> Goal: add gottlieb to group scanner.
>
> It seems that -aG works but --append --groups doesn't
>
> I will file a bug in b.g.o. unless I did something wrong.

I wouldn't be surprised if it would be RESOLVED UPSTREAM. Guess there's only 
one way to find out.. I guess you could comment on bug #145416 too (which 
isn't quite the same issue)..

-- 
Bo Andresen

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] bug in usermod, full name of options doesn't work
  2007-01-12 17:46 [gentoo-user] bug in usermod, full name of options doesn't work Allan Gottlieb
  2007-01-13  6:17 ` Bo Ørsted Andresen
@ 2007-01-13 14:13 ` Benno Schulenberg
  2007-01-13 15:18   ` Allan Gottlieb
  1 sibling, 1 reply; 4+ messages in thread
From: Benno Schulenberg @ 2007-01-13 14:13 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 216 bytes --]

Allan Gottlieb wrote:
> Goal: add gottlieb to group scanner.
>
> It seems that -aG works but --append --groups doesn't

Please try attached patch.

I'll report this bug upstream, mentioning that you found it.

Benno

[-- Attachment #2: shadow--usermod-noargument.patch --]
[-- Type: text/x-diff, Size: 488 bytes --]

diff -ur cvs-shadow/src/usermod.c shadow/src/usermod.c
--- cvs-shadow/src/usermod.c	2006-11-14 16:40:54.000000000 +0100
+++ shadow/src/usermod.c	2007-01-13 14:59:02.000000000 +0100
@@ -905,7 +905,7 @@
 		 */
 		int c;
 		static struct option long_options[] = {
-			{"append", required_argument, NULL, 'a'},
+			{"append", no_argument, NULL, 'a'},
 			{"comment", required_argument, NULL, 'c'},
 			{"home", required_argument, NULL, 'd'},
 			{"expiredate", required_argument, NULL, 'e'},

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] bug in usermod, full name of options doesn't work
  2007-01-13 14:13 ` Benno Schulenberg
@ 2007-01-13 15:18   ` Allan Gottlieb
  0 siblings, 0 replies; 4+ messages in thread
From: Allan Gottlieb @ 2007-01-13 15:18 UTC (permalink / raw
  To: gentoo-user

At Sat, 13 Jan 2007 15:13:18 +0100 Benno Schulenberg <benno.schulenberg@gmail.com> wrote:

> Allan Gottlieb wrote:
>> Goal: add gottlieb to group scanner.
>>
>> It seems that -aG works but --append --groups doesn't
>
> Please try attached patch.
> I'll report this bug upstream, mentioning that you found it.

Thanks,
allan
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-01-13 15:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-12 17:46 [gentoo-user] bug in usermod, full name of options doesn't work Allan Gottlieb
2007-01-13  6:17 ` Bo Ørsted Andresen
2007-01-13 14:13 ` Benno Schulenberg
2007-01-13 15:18   ` Allan Gottlieb

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox