Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| rh124_account_management [2026/10/19 19:33] – [Deleting groups and users] rpjday | rh124_account_management [2026/10/19 20:02] (current) – [Changing someone's password] rpjday | ||
|---|---|---|---|
| Line 290: | Line 290: | ||
| < | < | ||
| $ passwd user0 | $ passwd user0 | ||
| + | </ | ||
| + | |||
| + | Note '' | ||
| + | |||
| + | < | ||
| + | $ passwd --help | ||
| + | Usage: passwd [options] [LOGIN] | ||
| + | |||
| + | Options: | ||
| + | -a, --all | ||
| + | -d, --delete | ||
| + | -e, --expire | ||
| + | -h, --help | ||
| + | -k, --keep-tokens | ||
| + | -i, --inactive INACTIVE | ||
| + | to INACTIVE | ||
| + | -l, --lock | ||
| + | -n, --mindays MIN_DAYS | ||
| + | change to MIN_DAYS | ||
| + | -q, --quiet | ||
| + | -r, --repository REPOSITORY | ||
| + | -R, --root CHROOT_DIR | ||
| + | -P, --prefix PREFIX_DIR | ||
| + | -S, --status | ||
| + | -u, --unlock | ||
| + | -w, --warndays WARN_DAYS | ||
| + | -x, --maxdays MAX_DAYS | ||
| + | change to MAX_DAYS | ||
| + | -s, --stdin | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | $ echo " | ||
| </ | </ | ||
| Line 444: | Line 477: | ||
| </ | </ | ||
| - | ==== Deleting users ==== | + | ==== groupmems |
| < | < | ||
| - | $ userdel | + | $ groupmems |
| - | Usage: | + | Usage: |
| Options: | Options: | ||
| - | -f, --force force some actions that would fail otherwise | + | -g, --group groupname |
| - | e.g. removal | + | |
| - | | + | |
| - | -h, --help | + | |
| - | -r, --remove | + | |
| -R, --root CHROOT_DIR | -R, --root CHROOT_DIR | ||
| - | | + | |
| - | -Z, --selinux-user | + | Actions: |
| + | | ||
| + | -d, --delete username | ||
| + | -h, --help | ||
| + | -p, --purge | ||
| + | -l, --list | ||
| </ | </ | ||
| + | |||
| + | ===== Giving someone superuser access ===== | ||
| + | |||
| + | First, add them to the '' | ||
| + | |||
| + | < | ||
| + | $ usermod -aG wheel user1 | ||
| + | </ | ||
| + | |||
| + | In addition, add this line to either ''/ | ||
| + | |||
| + | < | ||
| + | user1 ALL=(ALL) NOPASSWD: ALL | ||
| + | </ | ||
| + | |||
| + | |||