1 |
Goal: add gottlieb to group scanner. |
2 |
|
3 |
It seems that -aG works but --append --groups doesn't |
4 |
|
5 |
I will file a bug in b.g.o. unless I did something wrong. |
6 |
|
7 |
thanks in advance |
8 |
allan |
9 |
|
10 |
ajglap portage # usermod --groups scanner --append gottlieb |
11 |
Usage: usermod [options] LOGIN |
12 |
|
13 |
Options: |
14 |
-a, --append append the user to the supplemental GROUPS |
15 |
(use only with -G) |
16 |
-c, --comment COMMENT new value of the GECOS field |
17 |
-d, --home HOME_DIR new home directory for the user account |
18 |
-e, --expiredate EXPIRE_DATE set account expiration date to EXPIRE_DATE |
19 |
-f, --inactive INACTIVE set password inactive after expiration |
20 |
to INACTIVE |
21 |
-g, --gid GROUP force use GROUP as new primary group |
22 |
-G, --groups GROUPS new list of supplementary GROUPS |
23 |
-h, --help display this help message and exit |
24 |
-l, --login NEW_LOGIN new value of the login name |
25 |
-L, --lock lock the user account |
26 |
-m, --move-home move contents of the home directory to the new |
27 |
location (use only with -d) |
28 |
-o, --non-unique allow using duplicate (non-unique) UID |
29 |
-p, --password PASSWORD use encrypted password for the new password |
30 |
-s, --shell SHELL new login shell for the user account |
31 |
-u, --uid UID new UID for the user account |
32 |
-U, --unlock unlock the user account |
33 |
|
34 |
ajglap portage # usermod -aG scanner gottlieb |
35 |
ajglap portage # grep gottlieb /etc/group |
36 |
wheel:x:10:root,gottlieb |
37 |
cron:x:16:cron,gottlieb |
38 |
audio:x:18:gottlieb |
39 |
cdrom:x:19:haldaemon,gottlieb |
40 |
video:x:27:root,gottlieb |
41 |
games:x:35:gottlieb |
42 |
cdrw:x:80:gottlieb,haldaemon |
43 |
portage:x:250:portage,gottlieb |
44 |
gottlieb:x:1502: |
45 |
scanner:x:1504:gottlieb |
46 |
plugdev:x:1507:gottlieb,haldaemon |
47 |
-- |
48 |
gentoo-user@g.o mailing list |