Results 1 to 2 of 2

Thread: Guru99 website says "sudo passwd -l 'username' " is to "Display all env variables".

  1. #1
    Join Date
    Jan 2021
    Location
    Anderson, SC, U.S., Earth
    Beans
    45
    Distro
    Ubuntu

    Guru99 website says "sudo passwd -l 'username' " is to "Display all env variables".

    https://www.guru99.com/linux-commands-cheat-sheet.html (it's under USER MANAGEMENT COMMANDS OF LINUX section).

    I did
    Code:
    sudo passwd -l
    and omitted any username, and my linux terminal came back with:

    Usage: passwd [options] [LOGIN]

    Options:
    -a, --all report password status on all accounts
    -d, --delete delete the password for the named account
    -e, --expire force expire the password for the named account
    -h, --help display this help message and exit
    -k, --keep-tokens change password only if expired
    -i, --inactive INACTIVE set password inactive after expiration
    to INACTIVE
    -l, --lock lock the password of the named account
    -n, --mindays MIN_DAYS set minimum number of days before password
    change to MIN_DAYS
    -q, --quiet quiet mode
    -r, --repository REPOSITORY change password in REPOSITORY repository
    -R, --root CHROOT_DIR directory to chroot into
    -S, --status report password status on the named account
    -u, --unlock unlock the password of the named account
    -w, --warndays WARN_DAYS set expiration warning days to WARN_DAYS
    -x, --maxdays MAX_DAYS set maximum number of days before password
    change to MAX_DAYS
    Am I missing something, or is this Guru99 site wrong and giving bad info?
    Last edited by Swan_DB; February 15th, 2021 at 04:27 AM.

  2. #2
    Join Date
    Jul 2008
    Location
    The Left Coast of the USA
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Guru99 website says "sudo passwd -l 'username' " is to "Display all env variables

    If your are looking in the "User management commands of linux" section, it looks like the first four commands' given descriptions are garbage -- repeated from the section above.
    Last edited by QIII; February 15th, 2021 at 04:33 AM.
    Please read The Forum Rules and The Forum Posting Guidelines

    A thing discovered and kept to oneself must be discovered time and again by others. A thing discovered and shared with others need be discovered only the once.
    This universe is crazy. I'm going back to my own.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •