public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Allan Gottlieb <gottlieb@nyu.edu>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] bug in usermod, full name of options doesn't work
Date: Fri, 12 Jan 2007 12:46:14 -0500	[thread overview]
Message-ID: <yu9ac0ob0k9.fsf@nyu.edu> (raw)

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



             reply	other threads:[~2007-01-12 17:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-12 17:46 Allan Gottlieb [this message]
2007-01-13  6:17 ` [gentoo-user] bug in usermod, full name of options doesn't work Bo Ørsted Andresen
2007-01-13 14:13 ` Benno Schulenberg
2007-01-13 15:18   ` Allan Gottlieb

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=yu9ac0ob0k9.fsf@nyu.edu \
    --to=gottlieb@nyu.edu \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox