To prevent a specific user from scheduling tasks with at, what should the administrator do?
The /etc/at.deny file is a file that contains a list of users who are not allowed to use the at command to schedule jobs. If the file exists, any user who is not in the /etc/at.allow file and is in the /etc/at.deny file will be denied access to the at command. To prevent a specific user from scheduling tasks with at, the administrator can simply add the user's name to the /etc/at.deny file. For example, to prevent the user bob from using the at command, the administrator can use the following command:
echo ''bob'' | sudo tee -a /etc/at.deny
The other options are not correct. The /etc/at.allow file is a file that contains a list of users who are allowed to use the at command. Adding a user to this file will not prevent them from scheduling tasks with at. The /etc/atd.conf file is a configuration file for the at daemon, which does not have a [deny] section. Adding a user to this file will not affect their access to the at command. The nojobs group is not a predefined group in Linux, and adding a user to this group will not prevent them from scheduling tasks with at. The atd command does not have a --deny option, and running this command will not prevent a user from scheduling tasks with at.Reference:
at Command in Linux with Examples - GeeksforGeeks
How to Use the Linux at Command {9 Examples} - phoenixNAP
at(1) - Linux man page
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 ...]
George Lewis
25 days agoJason Morris
29 days agoDonald Jackson
2 months agoDennis King
2 months agoThomas Evans
3 months agoDonna Martin
3 months agoBetty Edwards
4 months agoDeborah Flores
4 months agoAmanda Morgan
5 months agoEmma Bailey
5 months agoMichael Nelson
5 months agoJohn Collins
5 months agoMark Williams
4 months agoRichard Rodriguez
4 months agoGeorge Brown
5 months agoRaina
6 months agoKaran
6 months agoVi
6 months agoLenita
7 months agoJesus
7 months agoGretchen
7 months agoOra
7 months agoDaniel
7 months agoCasie
8 months agoBernardo
8 months agoTruman
8 months agoLizette
8 months agoCary
9 months agoAdelina
9 months agoBrandee
9 months agoJustine
9 months agoAudria
10 months agoKeva
10 months agoDominga
10 months agoOnita
10 months agoChantay
11 months agoMargart
11 months agoJuan
11 months agoHerman
11 months agoHubert
12 months agoMabel
12 months agoKami
1 year agoElinore
1 year agoMattie
1 year agoMarleen
1 year agoVilma
1 year agoAltha
1 year agoJusta
1 year agoKerry
1 year agoLevi
1 year agoLonny
1 year agoMargurite
2 years agoSkye
2 years agoBurma
2 years agoFreeman
2 years 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