A French user has installed the French language pack, but currencies are still being displayed with a leading '$' sign in his spreadsheets. What must be done to fix this?
Answer(s): A
The locale is a set of environmental variables that defines the language, country, and character encoding settings for the applications and shell session on a Linux system. The locale affects things such as the time/date format, the first day of the week, numbers, currency and many other values formatted in accordance with the language or region/country you set on a Linux system1. The currency sign (¤) is a character used to denote an unspecified currency2. To display the correct currency symbol for a specific region, the locale must be set accordingly. For example, to display the euro symbol () for France, the locale can be set to fr_FR.UTF-81. Setting the timezone correctly, editing /etc/currency, or reinstalling the French language pack will not affect the currency symbol displayed in the spreadsheets.
1: How to Change or Set System Locales in Linux - Tecmint 2: decimal.ToString ("C") produces ¤ currency symbol on Linux - Stack Overflow
Which of the following can the chage command NOT change?
Answer(s): E
The chage command can change the following parameters related to user password expiry and aging:The last password change date (-d or --lastday option)The password expiry date (-E or --expiredate option)The minimum number of days between password changes (-m or --mindays option) The maximum number of days during which a password is valid (-M or --maxdays option) The number of days of warning before password expires (-W or --warndays option) The chage command cannot change the number of days of inactivity after a password has expired before the account is locked. This parameter is controlled by the -I or --inactive option of the usermod command, which modifies the user account information. The chage command only displays the current value of this parameter, but does not allow changing it.
chage command in Linux with examples - GeeksforGeeks10 chage command examples in Linux [Cheat Sheet] - GoLinuxCloud How to Use the Chage Command in Linux TecAdminHow to Manage User Password Expiration and Aging in Linux - Tecmint
What command will display the group names and GIDs to which a user belongs? (Provide only the command name with or without path information)
The id command will display the user ID (uid), the primary group ID (gid), and the supplementary groups (groups) of a user. The output will show the names and the numerical IDs of the groups. For example:id linuxizeThe command will show the user ID (uid), the user's primary group (gid), and the user's secondary groups (groups)uid=1001(linuxize) gid=1001(linuxize) groups=1001(linuxize),27(sudo) To print only the names instead of the numbers use the -n option.id -nG linuxizeThe command will show only the names of the groups linuxize sudoThe id command is part of the GNU coreutils package and is available on all Linux systems. The full path of the command is /usr/bin/id.
id(1) - Linux manual pageHow to List Groups in Linux | Linuxize
Of the ways listed, which is the best method to temporarily suspend a user's ability to interactively login?
Answer(s): B
The chage command can be used to change the expiration date of a user account. By setting the expiration date to a past date, the user account will be disabled and the user will not be able to login interactively. This is a temporary method, as the expiration date can be changed back to a future date or removed to re-enable the user account. The other options are either permanent, insecure, or ineffective. Option A is insecure, as it allows anyone to login as the user without a password. Option C is permanent, as it changes the user's password without saving the original one. Option D is ineffective, as it only affects the user's .login file, which is used by the csh and tcsh shells, and not by other shells such as bash or zsh. Therefore, option B is the best method to temporarily suspend a user's ability to interactively login.
https://linuxconfig.org/disabling-user-logins-to-linux- system https://askubuntu.com/questions/282806/how-to-enable-or-disable-a-user
What is the conventional purpose of Linux UIDs that are lower than 100?
Answer(s): C
Linux UIDs (user identifiers) are numbers that are used to identify users and groups on a Linux system. Each user and group has a unique UID and GID (group identifier) respectively. The UID 0 is always reserved for the root or superuser account, which has full privileges to access and modify the system. The UIDs lower than 100 (or 1000 on some modern systems) are typically reserved for system accounts, which are used by various services and daemons that run on the system. These accounts are not meant for human users, but for specific purposes such as managing files, processes, network, security, etc. For example, some common system accounts are bin, daemon, mail, sshd, etc. The UIDs higher than 100 (or 1000) are usually allocated for regular user accounts, which have limited privileges and can be created and deleted by the system administrator. The system accounts are defined in the /etc/passwd file, which contains the username, UID, GID, home directory, shell, and other information for each account12345.
1: Linux User Management - Tecmint 2: What are the well-known UIDs? - Stack Overflow 3: user ID less than 1000 on CentOS 7 - Unix & Linux Stack Exchange 4: Recommended GID for users group in Linux (100 or 1000)? - Unix & Linux Stack Exchange 5: What is the conventional purpose of Linux UIDs that are lower than 100? - VCE Guide
Post your Comments and Discuss LPI 102-500 exam prep with other Community members:
Our website is free, but we have to fight against AI bots and content theft. We're sorry for the inconvenience caused by these security measures. You can access the rest of the 102-500 content, but please register or login to continue.