usermod Flashcards

1
Q

usermod

A

The usermod command modifies the system account files to reflect the changes that are specified on the command line.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

usermod

  • c
  • d
  • e
  • f
  • g
  • G
A
  • c, –comment COMMENT, GECOS field of the new account.
  • d, –home-dir HOME_DIR, Home directory of the new account.
  • e, –expiredate EXPIRE_DATE
  • f, –inactive INACTIVE
  • g, –gid GROUP, Set primary group.
  • G, –groups GROUPS, List supplementary groups.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

usermod

  • a, –append, Append the user to the supplemental GROUPS mentioned by the -G option without removing the user from other groups.
  • l, –login NEW_LOGIN, New login name.
  • L, –lock
  • m, –move-home, Use only with -d.
  • o, –non-unique
A
  • p, –password PASSWORD
  • R, –root CHROOT_DIR
  • s, –shell SHELL
  • u, –uid UID
  • U, –unlock
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

usermod

  • v
  • V
  • w
  • W
  • Z
A
  • v, –add-subuids FIRST-LAST, Add range of subordinate uids.
  • V, –del-subuids FIRST-LAST, Remove range of subordinate uids.
  • w, –add-subgids FIRST-LAST, Add range of subordinate gids.
  • W, –del-subgids FIRST-LAST, Remove range of subordinate gids.
  • Z, –selinux-user SEUSER, New mapping.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly