On a system running the KDE Display Manager, when is the /etc/kde4/kdm/Xreset script automatically executed?
The /etc/kde4/kdm/Xreset script is a script that runs as root after a user's X session exits. It can be used to perform some cleanup tasks or other actions that need to be done when the user logs out of the graphical environment. For example, it can reassign the ownership of the console to root, or shut down the system if desired. The /etc/kde4/kdm/Xreset script is part of the KDE Display Manager (kdm), which is a graphical login manager for X. KDM can be configured to run this script by setting the Reset key in the [X-*-Core] section of the /etc/kde4/kdm/kdmrc configuration file.Reference:
kdm.options - configuration options for X display manager
kdm(1) --- kdm --- Debian jessie --- Debian Manpages
debian - How to get system to shutdown when Xorg is quit? - Unix ...
What command should be used to print a listing of email in the system's mail queue?
The mailq command prints the list of messages that are in the mail queue. The mail queue is where outgoing mail is stored until a receiving server connection is available. The mailq command is the same as the sendmail -bp command, which also prints the mail queue.The mailq command is part of the topic 108.3: Mail transfer agent (MTA) basics, which is one of the objectives of the LPI Linux Administrator - 102 exam12.Reference:1: https://learning.lpi.org/en/learning-materials/102-500/2: https://www.lpi.org/our-certifications/exam-102-objectives/
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
Donald Jackson
11 days agoDennis King
15 days agoThomas Evans
1 month agoDonna Martin
2 months agoBetty Edwards
2 months agoDeborah Flores
3 months agoAmanda Morgan
3 months agoEmma Bailey
4 months agoMichael Nelson
3 months agoJohn Collins
3 months agoMark Williams
3 months agoRichard Rodriguez
3 months agoGeorge Brown
3 months agoRaina
4 months agoKaran
4 months agoVi
5 months agoLenita
5 months agoJesus
5 months agoGretchen
5 months agoOra
6 months agoDaniel
6 months agoCasie
6 months agoBernardo
6 months agoTruman
7 months agoLizette
7 months agoCary
7 months agoAdelina
7 months agoBrandee
8 months agoJustine
8 months agoAudria
8 months agoKeva
8 months agoDominga
9 months agoOnita
9 months agoChantay
9 months agoMargart
9 months agoJuan
10 months agoHerman
10 months agoHubert
10 months agoMabel
10 months agoKami
11 months agoElinore
11 months agoMattie
11 months agoMarleen
11 months agoVilma
1 year 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
2 years agoErinn
2 years agoJennie
2 years agoRonald
2 years agoCharlena
2 years agoErick
2 years 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