Welcome to the Linux Foundation Forum!

Possible ambiguity in 04. User Account Management

The second sentence in 04. User Account Management – Determine the Current User states:

You can find out the current user ID with the whoami command.

But the command's output is to print an effective user name as shown below.

Comments

  • hricky
    hricky Posts: 16

    There is also a possible minor typo in Modifying and Deleting User Accounts:

    Note that usermod will take care of any modifications to files in the /etc</span> directory as necessary.

  • hricky
    hricky Posts: 16
    edited July 2023

    And also a possible minor typo in ssh Configuration Files:

    • id_rsa/span>: the user's private key
  • luisviveropena
    luisviveropena Posts: 1,245

    Hi @hricky,

    1.- For the first item, if you take a look at the man page for whoami, it says "print effective userid", so in this context it's correct.

    WHOAMI(1) User Commands WHOAMI(1)

    NAME
    whoami - print effective userid

    SYNOPSIS
    whoami [OPTION]...

    DESCRIPTION
    Print the user name associated with the current effective user ID. Same as id -un.

    2.- For the second item, I don't see the string. What browser are you working with? Can you delete the cache and try again? I see it correctly on Chrome.

    Regards,
    Luis.

  • hricky
    hricky Posts: 16
    edited July 2023

    Hi @luisviveropena,

    About whoami:

    Actually, before I posted, I proceeded like this:

    whoami --help

    Usage: whoami [OPTION]...
    Print the user name associated with the current effective user ID.
    Same as id -un.

    --help display this help and exit
    --version output version information and exit

    GNU coreutils online help: https://www.gnu.org/software/coreutils/
    Full documentation https://www.gnu.org/software/coreutils/whoami
    or available locally via: info '(coreutils) whoami invocation'

    This output is generated from CentOS Stream 9

    Then I followed Full documentation https://www.gnu.org/software/coreutils/whoami
    and was redirected tо:
    https://www.gnu.org/software/coreutils/manual/html_node/whoami-invocation.html#whoami-invocation

    My ambiguity is probably due to the content of the page I was redirected to, but I will admit that in this context it's correct.

    After clearing Cookies, Cache and Offline website data on my Firefox the </span> tag issue was resolved.

    It's a great course and I strive to achieve the goals set out in it. That's why I aim

    to notice any such problems and inform courseware designers so they can incorporate the appropriate remedies in the next release

    as stated in the Course Introduction.

  • luisviveropena
    luisviveropena Posts: 1,245

    Hi @hricky,

    I'm glad it's clear now :)

    And there isn't any problem with reporting what you think may need a fix.

    Regards,
    Luis.

Categories

Upcoming Training