Lesson2 Flashcards

(19 cards)

1
Q
  1. Which of the following actions prevents a specific user from scheduling tasks using at or batch?

A. Add the specific user to the /etc/at.allow file.
B. Add the specific user to the [deny] section in the /etc/atd.conf file.
C. Add the specific user to the /etc/at.deny file.
D. Add the specific user to the nojobs group.
E. Run atd –deny followed by the name of the specific user.

A

C. Add the specific user to the /etc/at.deny file.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q
  1. Which of the following commands will convert files from one character encoding to another?

A. convert
B. enc2utf
C. iconv
D. transcode

A

C. iconv

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
  1. What happens if the password of a user in the /etc/shadow file is prepended with the ! character?

A. When logging in, the user automatically gets root privileges in addition to his regular privileges.
B. The password is inverted which allows the user to log in with any password other than the current password.
C. The user is disabled and all login methods, including but not limited to password based logins, are disabled.
D. Upon the next log in, the user is forced to change his password.
E. The password becomes invalid which disables password based logins although other login methods remain usable.

A

E. The password becomes invalid which disables password based logins although other login methods remain usable.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
  1. What is true about groups in a Linux system? (Choose TWO correct answers.)

A. Each user may be a member of several groups. However, only one group is the user’s primary group.
B. Groups may have a password that allows users to join that group temporarily.
C. Each user can only be a member of one group at a time.
D. Group memberships are optional such that there may be users that do not belong to any group.
E. Groups can be nested meaning that one group can be a member of another group.

A

A. Each user may be a member of several groups. However, only one group is the user’s primary group.

B. Groups may have a password that allows users to join that group temporarily.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
  1. What is true about UIDs and GIDs?
    A. UIDs and GIDs share a common number space. Each time a new user or group is created, the next free ID is
    assigned.
    B. The first four digits of each UID are the GID of the primary group of that user.
    C. The GID of a group is always the sum of the UIDs of its members.
    D. The number space is split up. UIDs usually reside in the range from 0 to 32767 while GIDs reside in the range
    from 32768 to 65535.
    E. There are distinct number spaces for UIDs and GIDs, i.e. the same number may be used as both a UID and a
    GID.
A

E. There are distinct number spaces for UIDs and GIDs, i.e. the same number may be used as both a UID and a GID.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
  1. Why should a regular user edit his personal crontab by using the command crontab instead of just editing his crontab file manually?

A. Because user specific crontab entries are stored in a common database and must be extracted before editing.
B. Because crontab starts the cron daemon in case it is not running due to no other crontab entries existing.
C. Because user specific crontab entries are stored in a special directory which is maintained by the cron daemon and not writable for regular users.
D. Because crontab collects information about all users crontabs and recommends similar commands used by other users of the system.

A

C. Because user specific crontab entries are stored in a special directory which is maintained by the cron daemon and not writable for regular users.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q
  1. Which of the following crontab entries will execute myscript at 30 minutes past every hour on Sundays?

A. 0 * * * 30 myscript
B. 30 * * * 6 myscript
C. 30 0 * * 0 myscript
D. 30 0-23 * * 0 myscript
E. 0 0-23 * * 30 myscript

A

D. 30 0-23 * * 0 myscript

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q
  1. Each entry in a crontab must end with what character?

A. Tab
B. Space
C. Backslash
D. Newline

A

D. Newline

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q
  1. To prevent a specific user from scheduling tasks with at, what should the administrator do?
    A. Add the specific user to /etc/at.allow file.
    B. Add the specific user to [deny] section in the /etc/atd.conf file.
    C. Add the specific user to /etc/at.deny file.
    D. Add the specific user to nojobs group.
    E. Run the following: atd –deny [user].
A

C. Add the specific user to /etc/at.deny file.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q
  1. Which of the following details can be found in an entry of a user specific crontab? (Choose TWO correct
    answers.)

A. The verbal description of the job.
B. The syslog facility to where the output of the job should be sent.
C. The time when the cron job should run.
D. The command that should be started by the cron job.
E. The name of the user which should run the job.

A

C. The time when the cron job should run.

D. The command that should be started by the cron job.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q
  1. Which of the following files assigns a user to its primary group?

A. /etc/pgroup
B. /etc/shadow
C. /etc/group
D. /etc/passwd
E. /etc/gshadow

A

D. /etc/passwd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q
  1. What is not contained in the locale setting of the operating system?

A. currency symbol
B. language
C. timezone
D. thousands separator

A

C. timezone

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q
  1. Which commands can be used to change a user’s account aging information? (Choose THREE correct answers.)
    A. usermod
    B. passwd
    C. chattr
    D. chage
    E. chsh
A

A. usermod

B. passwd

D. chage

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q
  1. 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)?

A. export LANGUAGE-‘pt”
B. export MESSAGE=”pt”
C. export UI_MESSAGES=”pt”
D. export LC_MESSAGES=”pt”
E. export ALL_MESSAGES=”pt”

A

D. export LC_MESSAGES=”pt”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q
  1. What is true about the file /etc/localtime?

A. It is a plain text file containing a string such as Europe/Berlin.
B. It is created and maintained by the NTP service based on the geolocation of the system’s IP address.
C. It is a symlink to /sys/device/clock/ltime and always contains the current local time.
D. It is either a symlink to or a copy of a timezone information file such as /usr/share/zoneinfo/Europe/ Berlin.

A

D. It is either a symlink to or a copy of a timezone information file such as /usr/share/zoneinfo/Europe/ Berlin.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q
  1. What is true regarding the command userdel –force –remove bob? (Choose TWO correct answers.)

A. The user bob is removed from the system’s user database.
B. The user bob’s home directory is removed.
C. The locate database is updated to drop files owned by bob.
D. All files owned by bob are remove from all mounted filesystems.
E. In case bob was the last member of a group, that group is deleted.

A

A. The user bob is removed from the system’s user database.

B. The user bob’s home directory is removed.

17
Q
  1. What is NTP?

A. A more secure protocol replacement for FTP.
B. A protocol for synchronizing time on computers.
C. A routing aid for finding next hops on a network.
D. A simple tunnelling protocol for computers behind firewalls.

A

B. A protocol for synchronizing time on computers.

18
Q
  1. Which file, when using Sendmail or a compatible MTA system, will allow a user to redirect all of their mail to another address and is configurable by the user themselves?

A. /etc/alias
B. /etc/mail/forwarders
C. ~/.alias
D. ~/.forward

A

D. ~/.forward

19
Q
  1. Which of the following commands pauses the CUPS printer LaserPrinter?

A. cupsreject LaserPrinter
B. cupsreject -d LaserPrinter
C. cupsdisable -d LaserPrinter
D. cupsdisable LaserPrinter

A

D. cupsdisable LaserPrinter