Font size
WorksheetsLPIC 102-500 SEGUNDA PARTE INGLES
Total questions: 50
Worksheet time: 25mins
Why is the xhost program considered dangerous to use?
It makes it difficult to uniquely identify a computer on the network.
It allows easy access to your X server by other users.
It logs sensitive information to syslog.
It makes your computer share network resources without any authentication.
It is a graphical DNS tool with known exploits.
An administrator wants to determine the geometry of a particular window in X, so she issues the _________-metric command and then clicks on the window.
/usr/bin/xwininfo
/usr/bin/xclock
/usr/bin/xkill
/usr/bin/xset
On a system running the KDE Display Manager, when is the /etc/kde4/kdm/Xreset script automatically executed?
When KDM starts
When a user's X session exits
When KDM crashes
When X is restarted
When X crashes
Which of the following lines is an example of a correct setting for the DISPLAY environment variable?
hostname:displayname
hostname:displaynumber
hostname/displayname
hostname/displaynumber
hostname
Which of the following steps prevents a user from obtaining an interactive login session?
Run the command chsh -s /bin/false with the user name.
Set the UID for the user to 0.
Remove the user from the group staff.
Add the user to /etc/noaccess.
Create a .nologin file in the user's home directory.
Which file specifies the user accounts that can NOT submit jobs via at or batch? (Provide the full path and filename)
/etc/at.deny
/etc/cron.allow
/etc/at.allow
/etc/cron.deny
Which character in the password field of /etc/passwd is used to indicate that the encrypted password is stored in /etc/shadow?
*
-
s
x
The system's timezone may be set by linking /etc/localtime to an appropriate file in which directory? (Provide the full path to the directory, without any country information)
/usr/share/zoneinfo/
/etc/timezone/
/var/lib/time/
/usr/local/timezones/
Which of the following fields are available in both the global /etc/crontab file as well as in user specific crontab files?
Year
Minute
Username
Command
Which command can be used to delete a group from a Linux system?
groupdel
groupmod
groups
groupedit
What is the purpose of the iconv command?
It converts bitmap images from one format to another such as PNG to JPEG.
It verifies that the root directory tree complies to all conventions from the Filesystem Hierarchy Standard (FHS).
It displays additional meta information from icon files ending in .ico.
It changes the mode of an inode in the ext4 file system.
It converts files from one character encoding to another.
In case neither cron.allow nor cron.deny exist in /etc/, which of the following is true?
Without additional configuration, no users may have user specific crontabs.
Without additional configuration, all users may have user specific crontabs.
The cron daemon will refuse to start and report missing files in the system's logfile.
When a user creates a user specific crontab the system administrator must approve it explicitly.
Which of the following commands can remove a user from a group?
grouprm
groupmod
passwd
usergroups
usermod
Where are user specific crontabs stored?
In the database file /etc/crontab.db which is shared by all users.
As individual per-user files within /var/spool/cron.
As individual per-user files in /etc/cron.user.d.
In the .crontab file in the user's home directory.
In the file /var/cron/user-crontab which is shared by all users.
Which file contains the date of the last change of a user's password?
/etc/gshadow
/etc/passwd
/etc/pwdlog
/etc/shadow
/var/log/shadow
Which environment variable should be set in order to change the time zone for the commands run from within the environment variable's scope? (Specify the variable name only.)
TZ
PATH
LANG
HOME
Each entry in a crontab must end with what character?
Tab
Space
Backslash
Newline
To prevent a specific user from scheduling tasks with at, what should the administrator do?
Add the specific user to /etc/at.allow file.
Add the specific user to [deny] section in the /etc/atd.conf file.
Add the specific user to /etc/at.deny file.
Add the specific user to nojobs group.
Run the following: atd --deny [user].
Which of the following crontab entries will execute myscript at 30 minutes past every hour on Sundays?
0 * * * 30 myscript
30 * * 6 myscript
30 0 * * 0 myscript
30 0-23 * * 0 myscript
0 0-23 * * 30 myscript
Which of the following files assigns a user to its primary group?
/etc/pgroup
/etc/shadow
/etc/group
/etc/passwd
/etc/gshadow
Which of the following commands should be added to /etc/bash_profile in order to change the language of messages for an internationalized program to Portuguese (pt)?
export LANGUAGE="pt"
export MESSAGE="pt"
export UI_MESSAGES="pt"
export LC_MESSAGES="pt"
export ALL_MESSAGES="pt"
In which file, if present, must all users be listed that are allowed to use the cron scheduling system? (Specify the full name of the file, including path.)
/etc/cron.allow
/etc/cron.deny
/etc/cron.users
/etc/cron.conf
Which commands can be used to change a user's account aging information?
usermod
passwd
chattr
chage
chsh
Which command is used to add an empty group to the system? (Specify ONLY the command without any path or parameters.)
groupadd
useradd
addgroup
mkgroup
What is NOT contained in the locale setting of the operating system?
currency symbol
language
timezone
thousands separator
What is true about the file /etc/localtime?
It is a plain text file containing a string such as Europe/Berlin
It is created and maintained by the NTP service based on the location of the system’s IP address.
It is a symlink to /sys/device/clock/time and always contains the current local time.
After changing this file, newtzconfig has to be run to make the changes effective.
It is either a symlink to or a copy of a timezone information file such as /usr/share/zoneinfo/Europe/Berlin.
What is true regarding the command userdel --force --remove bob?
The user bob is removed from the system's user database.
The user bob's home directory is removed.
The locate database is updated to drop files owned by bob.
All files owned by bob are remove from all mounted filesystems.
In case bob was the last member of a group, that group is deleted.
Which of the following fields can be found in the /etc/group file? (Choose THREE correct answers.)
The list of users that belong to the group.
The home directory of the group.
The name of the group.
The description of the group.
The password of the group.
On a system using shadowed passwords, the most correct permissions for /etc/passwd are ___ and the most correct permissions for /etc/shadow are ________.
-rw-------, r--------
-rw-r--r--, -r--r--r--
-rw-r--r--, r--------
-rw-r-rw-, r------r--
-rw-------, r--------
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?
Alter the locale.
Set the timezone correctly.
Edit /etc/currency.
Reinstall the French language pack.
Which of the following can the chage command NOT change?
A. The number of days since January 1, 1970 after which the user's account will no longer be accessible.
B. The number of days since January 1, 1970 after which the password can change.
C. The number of days since January 1, 1970 since the password was last changed.
D. The maximum number of days during which a password is valid.
E. The number of days of inactivity after a password has expired before the account is locked.
What command will display the group names and GIDs to which a user belongs? (Provide only the command name with or without path information)
id
whoami
groupshow
userinfo
Of the ways listed, which is the best method to temporarily suspend a user's ability to login?
Use passwd -d username to give the user an empty password.
Use chage to expire the user account.
Change the user's password.
Add the command exit to the user's .login file.
What is the conventional purpose of Linux UIDs that are lower than 100?
They are reserved for super user accounts.
They are reserved for the system admin accounts.
They are reserved for system accounts.
They are unused, aside from 0, because they are targets of exploits.
They are used to match with GIDs in grouping users.
How is the file format of /etc/crontab different from a normal crontab file?
The /etc/crontab file can specify a year field.
A normal crontab file must be installed with the crontab command.
A normal crontab file allows for environment variable substitution.
The /etc/crontab file has a user field for commands.
A. The batch command will run multiple times. The at command will only run once. B. The batch command will run when system load is low. The at command runs at a specific time. C. The at command reads commands from standard input. The batch command requires a command line argument. D. The at command e-mails results to the user. The batch command logs results to syslog. The at command e-mails results to the user. The batch command logs results to syslog.
A. The batch command will run multiple times. The at command will only run once.
B. The batch command will run when system load is low. The at command runs at a specific time.
C. The at command reads commands from standard input. The batch command requires a command line argument.
D. The at command e-mails results to the user. The batch command logs results to syslog. The at command e-mails results to the user. The batch command logs results to syslog.
The correct crontab entry to execute the script chklog three times per month between 3 p.m. and 5 p.m.
* 3,4,5 1 * * chklog
3,3,4,5 1 * * chklog
3,15,16,17 * * * chklog
0 15,16,17 1 * * chklog
* 15,16,17 1 * * chklog
The ______ command is used to add a group to the system.
groupadd
useradd
groupdel
usermod
Which command will set the local machine's timezone to UTC?
cat UTC > /etc/timezone
ln -s /usr/share/zoneinfo/UTC /etc/localtime
date --timezone=UTC
mv /usr/timezone/UTC /etc
Which command should be added to /etc/bash_profile to change the language of messages from an internationalised program to Portuguese (pt)?
A. export LANGUAGE="pt"
B. export MESSAGE="pt"
C. export LANG="pt"
D. export LC_MESSAGES="pt"
E. export ALL_MESSAGES="pt"
A user was not given permission to use the CRON scheduling system. What file needs to be modified to provide that access?
/etc/cron.allow
/etc/hosts.allow
/etc/passwd
/etc/cron.deny
Which commands can you use to change a user's account aging information?
usermod
passwd
chattr
chage
chsh
Why is /etc/shadow not world readable if the passwords are stored in an encrypted fashion?
The encrypted passwords are still subject to brute force attacks.
This is just for historical reasons.
There is other information in the file that needs to be kept secret.
The passwords can be decrypted by anyone with root access.
Of the ways listed, which is the best way to temporarily suspend a single user's ability to interactively login?
Add the user name to /etc/nologin.
Change the user's password.
Change the user name in /etc/passwd.
Use change to expire the user account.
Place the command logout in the user's profile.
Which TWO statements about crontab are true?
Every user may have their own crontab.
Changing a crontab requires a reload/restart of the cron daemon.
The cron daemon reloads crontab files automatically when necessary.
hourly is the same as "0 * * * *".
A cron daemon must run for each existing crontab.
Which crontab entry could be used to set the system time at regular intervals?
10 * * * * date d t $24
1 0 * * * ntpdate ntp1.digex.net
1 0 * * * date ntp1.digex.net
1 0 * * * runcron date ntp1.digex.net
1 0 * * * settime d t $24
Which of the following commands can be used to convert text files in one character encoding to another character encoding?
cat
convert
dd
iconv
utf2utf
Which option in the /etc/ntp.conf file specifies an external NTP source to be queried for time information? (Specify ONLY the option without any values or parameters.)
server
peer
restrict
driftfile
After configuring printing on a Linux server, the administrator sends a test file to one of the printers and it fails to print. What command can be used to display the status of the printer's queue?
lpq
ls
ps
cat
Which of the following tasks can be accomplished using the command date?
Synchronize the hardware and system clocks.
Output date and time in different formats.
Set the system clock.
Set the hardware clock.
Update the time via NTP.
