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 via email to