Which file lists which users can execute commands using sudo? (Specify the full name of the file, including path.)
The /etc/sudoers file lists which users can execute commands using sudo, as well as which commands they can run, on which hosts, and as which users. The /etc/sudoers file is the main configuration file for the sudo command, which allows users to run commands as another user, usually the superuser or root. The /etc/sudoers file has a specific syntax and should be edited only with the visudo command, which checks the file for errors and locks it to prevent concurrent edits. The /etc/sudoers file contains entries that follow the format:
user host = (runas) command
where user is the name of the user who can run sudo, host is the name of the host where the user can run sudo, runas is the name of the user as whom the command will be executed, and command is the name of the command or a list of commands that the user can run with sudo. For example, the entry:
alice ALL = (root) /bin/ls, /usr/bin/whoami
means that the user alice can run sudo on any host, and can execute the commands /bin/ls and /usr/bin/whoami as the root user. The /etc/sudoers file also supports aliases, variables, wildcards, and other features that make it more flexible and powerful. For more details, see the sudoers manual page.
LPIC-1 Exam 102 Objectives, Topic 110: Security, Subtopic 110.2: Use sudo to manage access to the root account, Weight: 2, Key Knowledge Areas: Configure sudo and sudoers. Use sudo to execute commands as another user.
LPIC-1 Exam 102 Learning Materials, Topic 110: Security, Subtopic 110.2: Use sudo to manage access to the root account, Section 110.2.1: sudo and sudoers, Page 3-5.
X is running okay but you're concerned that you may not have the right color depth set. What single command will show you the running color depth while in X?
The xwininfo command is a utility for displaying information about windows on an X server. One of the information it displays is the depth of the window, which is the number of bits per pixel used to represent the color of the window. The depth of the root window, which is the background window of the X server, is the same as the color depth of the X server. To display the depth of the root window, one can use the command xwininfo -root and look for the line that says ''depth of root window''. Alternatively, one can use the command xdpyinfo, which displays information about the X server, and look for the line that says ''depths of root window''.Reference:
xwininfo(1) - Linux man page
xdpyinfo(1) - Linux man page
[LPI Linux Certification/Configure the X Window System, Xorg and ...]
Which of the following can the chage command NOT change?
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.Reference:
chage command in Linux with examples - GeeksforGeeks
10 chage command examples in Linux [Cheat Sheet] - GoLinuxCloud
How to Use the Chage Command in Linux -- TecAdmin
How to Manage User Password Expiration and Aging in Linux - Tecmint
What is the difference between the commands test -e path and test -f path?
The test command is used to perform checks and comparisons on files and values. The -e option tests if a given path exists, regardless of its type (file, directory, link, etc.). The -f option tests if a given path exists and is a regular file, not a directory or a special file. For example, if we have a directory named dir and a file named file, we can use the test command as follows:
test -e dir && echo ''dir exists'' dir exists test -f dir && echo ''dir is a regular file'' (no output) test -e file && echo ''file exists'' file exists test -f file && echo ''file is a regular file'' file is a regular file
https://www.computerhope.com/unix/bash/test.htm
Which directory holds configuration files for xinetd services? (Specify the full path to the directory
Donna Martin
1 day agoBetty Edwards
28 days agoDeborah Flores
1 month agoAmanda Morgan
2 months agoEmma Bailey
2 months agoMichael Nelson
2 months agoJohn Collins
2 months agoMark Williams
1 month agoRichard Rodriguez
1 month agoGeorge Brown
2 months agoRaina
3 months agoKaran
3 months agoVi
3 months agoLenita
3 months agoJesus
4 months agoGretchen
4 months agoOra
4 months agoDaniel
4 months agoCasie
5 months agoBernardo
5 months agoTruman
5 months agoLizette
5 months agoCary
6 months agoAdelina
6 months agoBrandee
6 months agoJustine
6 months agoAudria
7 months agoKeva
7 months agoDominga
7 months agoOnita
7 months agoChantay
8 months agoMargart
8 months agoJuan
8 months agoHerman
8 months agoHubert
9 months agoMabel
9 months agoKami
9 months agoElinore
9 months agoMattie
10 months agoMarleen
10 months agoVilma
12 months agoAltha
1 year agoJusta
1 year agoKerry
1 year agoLevi
1 year agoLonny
1 year agoMargurite
1 year agoSkye
1 year agoBurma
1 year agoFreeman
1 year agoRebecka
1 year agoErinn
1 year agoJennie
1 year agoRonald
1 year agoCharlena
1 year agoErick
1 year agoCheryl
2 years agoKizzy
2 years agoValentine
2 years agoMalcom
2 years agoDelsie
2 years agoNada
2 years agoJanna
2 years agoDenae
2 years agoMagdalene
2 years agoArthur
2 years agoDeja
2 years agoLorean
2 years agoAmos
2 years agoJonelle
2 years agoWilda
2 years agoAmos
2 years agoTemeka
2 years agoSabra
2 years agoTamekia
2 years agoAnika
2 years agoNatalie
2 years ago