Linux 102 Flashcards
QUESTION NO: 1 The legacy program for sending files to the printer queues from the command line is which of the following? A. lpd B. lpr C. lpq D. lpp
B
Which of the following statements would create a default route using a gateway of 192.168.1.1? A. netstat -add default gw B. route default 192.168.1.1 C. ip route default 192.168.1.1 D. route add default gw 192.168.1.1 E. ifconfig default gw 192.168.1.1 eth0
D
QUESTION NO: 3
Which of the following is the purpose of the dig command?
A. To adjust a directory’s hidden permissions
B. To search for files on the filesystem
C. To adjust a file’s hidden permissions
D. To perform hostname lookups
E. To ping all known hosts on the current subnet
D
Which of the following configuration files does sudo read when determining if a user is permitted to run applications with root privileges? A. /etc/groups B. /etc/passwd C. /etc/sudoers D. /etc/sudo.conf
C
Which of the following commands will set the local machine’s timezone to UTC?
A. cat UTC > /etc/timezone
B. ln -s /usr/share/zoneinfo/UTC /etc/localtime
C. date –timezone=UTC
D. mv /usr/timezone/UTC /etc
B
A user was not given permission to use the CRON scheduling system. What file needs to be modified to provide that access? (Please specify the full path to the file).
/etc/cron.allow
Which of the following commands should be added to /etc/bash_profile to change the language of messages from an internationalised program to Portuguese (pt)? (Select TWO). A. export LANGUAGE="pt" B. export MESSAGE="pt" C. export LANG="pt" D. export LC_MESSAGES="pt" E. export ALL_MESSAGES="pt"
C, D
Which of the following is pool.ntp.org?
A. A deprecated feature for maintaining system time in the Linux kernel.
B. A website which provides binary and source packages for the OpenNTPD project.
C. A virtual cluster of various timeservers.
D. A community website used to discuss the localization of Linux.
C
Which of the following directories in a user's home contains configuration files and key rings for GPG? A. ~/gpg.d/ B. ~/.gpg/ C. ~/.gnupg/ D. ~/gnupg/ E. ~/.gpg.d/
C
Which of the following lines from /etc/X11/xorg.conf indicates that fonts can be found on a font server? A. FontPath= server B. Fonts "unix/:7100" C. FontPath "unix/:7100" D. Fonts= server E. Fontserver = "servername"
C
The files in the /etc/skel directory are used by the: A. pwconv command B. pwunconv command C. useradd command D. passwd command
C
Which of the following SQL statements will select the fields name and address from the contacts table? A. SELECT (name, address) FROM contacts; B. SELECT (name address) FROM contacts; C. SELECT name, address FROM contacts; D. SELECT name address FROM contacts;
C
Which of the following configuration files would an administrator edit to change default options for outbound ssh sessions? A. /etc/ssh/sshd_config B. /etc/ssh/ssh C. /etc/ssh/client D. /etc/ssh/ssh_config E. /etc/ssh/ssh_client
D
Which of the following bash option will prevent an administrator from overwriting a file with a ">"? A. set -o safe B. set -o noglob C. set -o noclobber D. set -o append E. set -o nooverwrite
C
An ISP has given an administrator an IP block for use. The block is 192.168.112.64/26. If the
administrator uses the first usable IP for the router that is installed on the network, how many
usable IPs are left? (Please enter the number and not a word)
61
All of the following are Mail Transport Agents EXCEPT: A. exim B. postfix C. sendmail D. qmail E. mail
E
An administrator is configuring a secured webserver, however connecting to https://127.0.0.1 is not working. The administrator runs netstat -ntl, which returns the following output: tcp 0 0
0.0.0.0:80 0.0.0.0:* LISTEN What port should be listening before a successful connection is
possible? (Provide only the numerical value of the port).
443
Which protocol uses two (2) TCP/IP ports one of them being port 20 for data transfer? (Please do
not enter duplicate answers in this field.)
ftp
An administrator can run the ________ command to see active network and UNIX domain socket connections. (Please specify the command with no options or parameters).
netstat
An administrator needs to sync the hardware clock, which is on GMT, with the system clock, which the administrator just updated with NTP. To do this, complete the following command: ________ -
u –systohc
hwclock
Which of the following programs uses the hosts.allow file to perform its main task of checking for access control restrictions to system services? A. tcpd B. inetd C. fingerd D. mountd E. xinetd
A
An administrator has added the following line to /etc/inittab in order to disable the ability to reboot a Debian system by pressing the Control + Alt + Delete keys simultaneously:
ca:12345:_________:/bin/echo “Rebooting disabled” Please provide the missing string.
ctrlaltdel
What word will complete an if statement in bash such as the following: if [ -x “$file” ]; then echo $file _____ (Please provide the missing word only).
fi
An administrator decides to use xinetd instead of inetd. Now, the administrator needs to transfer information from /etc/inetd.conf to another file. What file must be created or edited? (Please specify the full path).
/etc/xinetd.conf
In the following command and its output, echo $$ 12942 which of the following is 12942?
A. The process ID of the echo command.
B. The process ID of the current shell.
C. The process ID of the last command executed.
D. The process ID of the last backgrounded command.
B
Which of the following commands will print the exit value of the previous command to the screen in bash? A. echo $? B. echo $# C. echo $exit D. echo $status E. echo $&}
A
Which of the following statements about crontab are true? (Select TWO).
A. Every user may have their own crontab.
B. Changing a crontab requires a reload/restart of the cron daemon.
C. The cron daemon reloads crontab files automatically when necessary.
D. hourly is the same as “0 * * * *”.
E. A cron daemon must run for each existing crontab.
A, C
An administrator wants to determine the geometry of a particular window in X, so the administrator
issues the __________ -metric command and then clicks on the window. (Please enter only a
single command and do not enter duplicate answers in this field.)
xwininfo
The command __________ prints a list of email that is currently in the queue waiting for delivery. (Please specify the command with or without path or arguments)
mailq
To slave the NTP daemon to an external source, an administrator needs to modify the ______ variable in the /etc/ntp.conf file.
server
Which of the following commands is used to deactivate a network interface? A. ifdown B. ipdown C. net D. netdown
A
Which of the following looks like a correct entry in the /etc/hosts file?
A. localhost 127.0.0.1 localhost.localdomain
B. localhost.localdomain localhost 127.0.0.1
C. localhost localhost.localdomain 127.0.0.1
D. 127.0.0.1 localhost.localdomain localhost
E. localhost.localdomain 127.0.0.1 localhost
D
Which of the following lines would an administrator find in the file /etc/resolv.conf? A. order hosts,bind B. 192.168.168.4 dns-server C. hosts: files,dns D. domain mycompany.com
D
Which of the following find commands will print out a list of suid root files in /usr?
A. find /usr -uid 0 -perm +4000
B. find -user root +mode +s /usr
C. find -type suid -username root -d /usr
D. find /usr -ls *s* -u root
E. find /usr -suid -perm +4000
A
Which of the following commands will provide locale-specific information about a system and its environment? A. loconfig B. getlocale C. locale D. tzconfig E. tzselect
C
Which of the following should the permission settings be for /etc/passwd and /etc/shadow?
A. /etc/passwd: -rw-r–r– /etc/shadow: -r——–
B. /etc/passwd: -r——– /etc/shadow: -rw-r–r–
C. /etc/passwd: -rw-r–r– /etc/shadow: -rw-r–r–
D. /etc/passwd: -r——– /etc/shadow: -r——–}
A
Which of the following configuration files should be modified to set default shell variables for all users? A. /etc/bashrc B. /etc/profile C. ~default/.bash_profile D. /etc/skel/.bashrc E. /etc/skel/.bash_profile
B
By default, which directories contents will be copied to a new user’s home directory when the account is created, passing the -m option to the useradd command?
/etc/skel
Suppose that the command netstat -a hangs for a long time without producing output. An administrator might suspect: A. a problem with NFS B. a problem with DNS C. a problem with NIS D. a problem with routing E. that the netstat daemon has crashed
B
Please specify the directory containing the configuration files for the CUPS printing system. (Provide the full path to the directory).
/etc/cups
Which of the following statements are true regarding the below syslog.conf configuration directive? (Select THREE) *.err;kern.notice;auth.notice /dev/console
A. Severity crit messages from all facilities will be directed to /dev/console
B. Severity notice messages from the auth facility will be directed to /dev/console
C. Severity notice messages from the kern facility will be directed to /dev/console
D. Severity err messages from the mail facility will be directed /dev/console
E. Severity notice messages from all facilities will be directed to /dev/console
B, C, D
On a system running the K Display Manager, when is the /etc/kde4/kdm/Xreset script automatically executed? A. When KDM starts B. When a user's X session exists C. When KDM crashes D. When X is restarted E. When X crashes
B
Which of the following is the BEST way to temporarily suspend a user’s ability to interactively login?
A. Changing the user’s UID.
B. Changing the user’s password.
C. Changing the user’s shell to /bin/false.
D. Removing the user’s entry in /etc/passwd.
E. Placing the command logout in the user’s profile.
C
To test a shell script called myscript, the environment variable FOOBAR must be removed temporarily. How can this be done? A. unset -v FOOBAR B. set -a FOOBAR="" C. env -u FOOBAR myscript D. env -i FOOBAR myscript
C
Which of the following commands is used to display user resource limits? A. uname B. limit -a C. usrlmt D. ulimit
D
Which of the following lines would an administrator find in the file /etc/nsswitch.conf? A. order hosts,bind B. 192.168.168.4 dns-server C. hosts: files dns D. domain mycompany.com
C
Which of the following commands can an administrator use to change a user's password expiry information? (Select THREE). A. usermod B. passwd C. chattr D. chage E. chsh
A, B, D
Which of the following statements is true regarding the below /etc/resolv.conf file? search example.com 127.0.0.1 208.77.188.166
A. There is a syntax error.
B. If DNS queries to the localhost fail, the server 208.77.188.166 will be queried.
C. example.com will be appended to all host lookups.
D. The DNS servers at 127.0.0.1 and 208.77.188.166 will be queried in a round robin fashion.
E. The DNS server with the shortest ping time will be queried first. If the lookup fails, the second
server will be queried.
A
Which of the following crontab entries could be used to set the system time at regular intervals?
A. 1 0 * * * date $d $t $24
B. 1 0 * * * settime $d $t $24
C. 1 0 * * * date /dev/null 2>&1
E
Which of the following outputs will the below command produce? seq 1 5 20 A. 1 6 11 16 B. 1 5 10 15 C. 1 2 3 4 D. 2 3 4 5 E. 5 10 15 20
A
When using ssh, which of the following can an administrator do to recover a lost passphrase for a DSA or RSA authentication key?
A. Run the ssh-keygen command.
B. Run the ssh –recover command.
C. A lost passphrase cannot be recovered.
D. Decrypt the authentication key with gpg.
E. Decrypt the authentication key with ssh –decrypt.
C
Which of the following describes the Linux ping packet or datagram? A. IP packet with a packet type B. ICMP packet with a message type C. ICMP packet with a payload D. UDP datagram with a protocol type E. UDP datagram with a payload
B
Which of the following entries can an administrator add to syslog.conf file to have all syslog messages generated by the administrator system go file to have all syslog messages generated by the administrator? system go to virtual console 12? A. *.* /dev/tty12 B. /var/log/messages | /dev/tty12 C. | /dev/tty12 D. syslog tty12 E. mail.* /dev/tty12
A
Which file specifies the user accounts can NOT submit jobs via at or batch? (Provide the full path and filename).
/etc/at.deny
The ________ command is used to add a group to the system. (Please enter only a single command and do not enter duplicate answers in this field.)
groupadd
An administrator has just set up the X Display Manager as the default display manager. Which of the following files should be edited to change the default background for it? A. /etc/X11/xdm/Xsetup B. /etc/X11/prefdm C. /etc/X11/xorg.conf D. /etc/X11/xdm.conf
A
What word is missing from the following SQL statement? update tablename ____
fieldname=’value’ where id=909;
set
What is the command to delete the default gateway from the system IP routing table? (Please
specify the complete command with arguments, please no duplicate answers in this field.)
route del default
An administrator is running an email server configured with the default settings. In which directory will the administrator commonly find the delivered mail for the user foo? A. /var/spool/mail B. /home/foo/mail C. /var/mail/spool D. /var/users/mail
A
For accessibility assistance, which of the following programs is an on-screen keyboard? A. xkb B. atkb C. GOK D. xOSK
C
What word is missing from the following SQL statement? select count(*) _____ tablename;
from
Which option, when passed to the gpg command, will enter an interactive menu enabling the user to perform key management related tasks? (Provide only one option).
edit-key
All of the following are contained in the locale setting of the operating system EXCEPT: A. currency symbol B. language C. timezone D. thousands separator
C
An administrator discovers a pending job for the at command. Which of the following does the administrator need to use to remove it? A. atrm B. atq -r C. at -e D. rmat
A
A French user has installed the French language pack, but currencies are still being displayed with a leading '$' sign in spreadsheets. Which of the following must be done to fix this? A. Alter the locale. B. Set the timezone correctly. C. Edit /etc/currency. D. Reinstall the French language pack.
A
An administrator has a user whose account needs to be disabled but not removed. Which of the following should the administrator do?
A. Edit /etc/gshadow and just remove the user name. and just remove the user? name.
B. Edit /etc/passwd and change all numbers to 0.
C. Edit /etc/shadow and remove the last field.
D. Edit /etc/passwd and insert an * after the first : .
E. Edit /etc/group file and put a # sign in front of the user name. sign in front of the user? name.
D
An administrator suspects that a gateway machine on their network has failed; the administrator is unsure which machine is the problem. Which of the following commands will help locate the problem machine? A. ps B. netstat C. nslookup D. ifconfig E. traceroute
E
While performing a security audit, an administrator discovers that a machine is accepting connections on TCP port 184, but it is not obvious which process has the port open. Which of the following programs should the administrator use to find out? A. traceroute B. strace C. debug D. nessus E. lsof
E
An administrator wants to temporarily prevent users from logging in. Please complete the following command: touch /etc/______
nologin
An administrator needs to pause the CUPS printer Laserjet4, and wants to cancel all print jobs with a message, "hello". Which of the following commands will do this? A. cupsreject -c -r hello Laserjet4 B. cupsreject -p -m hello Laserjet4 C. cupsdisable -c -r hello Laserjet4 D. cupsdisable -p -m hello Laserjet4
C
To prevent a specific user from scheduling tasks with at, which of the following 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].
C
Which of the following commands would an administrator use to create an OpenSSH authentication key? A. sshd B. ssh-agent C. ssh-keygen D. ssh-add
C
An administrator is logged in as root. What command should the administrator run to find out what groups user bruno belongs to?
groups bruno
Which of the following can the chage command <b>NOT change?
A. The number of days since January 1, 1970 on which the user account will no longer be accessible.
B. The number of days since January 1, 1970 when the password can change.
C. The number of days since January 1st, 1970 when 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</b>
B
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 print the status of the printer’s queue? (Provide only the command, without any options or parameters)
lpq
Which of the following benefits does an alias provide?
A. It provides faster lookups for commands.
B. It prevents having to type long commands
C. It hides from others the command that is being run.
D. It creates a local copy of a file from another directory.
B
Which of the following is the BEST way to list all defined shell variables? A. env B. set C. env -a D. echo $ENV
B
All of the following information is provided in any output from the netstat utility EXCEPT: A. broadcast services B. interface statistics C. masquerading connections D. network connections E. routing tables
A
On a system using shadowed passwords, the correct permissions for /etc/passwd are \_\_\_ and the correct permissions for /etc/shadow are \_\_\_. A. -rw-r-----, -r-------- B. -rw-r--r--, -r--r--r-- C. -rw-r--r--, -r-------- D. -rw-r--rw-, -r-----r-- E. -rw-------, -r--------
C
Which of the following Class B IPv4 networks are reserved by IANA for private address assignment and private routing? (Select TWO). A. 128.0.0.0 B. 169.16.0.0 C. 169.254.0.0 D. 172.16.0.0 E. 172.20.0.0
D, E
The correct crontab entry to execute the script chklog once per hour between 3 p.m. and 5 p.m. on Monday and Thursday each week is, which of the following? A. 0 3,4,5 * * 2,5 chklog B. 0 3,4,5 * * 1,4 chklog C. 0 15,16,17 * * 1,4 chklog D. 0 15,16,17 1,4 * * chklog E. * 15,16,17 * * 1,4 chklog
C
Which of the following commands allows an administrator to make a shell variable visible to subshells? A. export $VARIABLE B. export VARIABLE C. set $VARIABLE D. set VARIABLE E. env VARIABLE
B
When attempting to send a file to another user securely with GPG, which of the following actions must be done?
A. Encrypt the file using your public key.
B. Encrypt the file using their public key.
C. Encrypt the file using your private key.
D. Encrypt the file using their private key.
E. Sign the file with your public key.
B
Which IP protocol is connectionless and unreliable? (Please enter only a single answer and do not enter duplicate answers in this field.)
UDP
In xorg.conf, which of the following sections is concerned with fonts? A. The Fonts section B. The Files section C. The xfsCodes section D. The Graphics section E. The modeline section
B
In an xinetd config file, what attribute specifies the network address that will be used to offer the service? (Please enter only one answer and do not enter duplicate answers in this field.)
bind
Which of the following outputs will the below command sequence produce? echo ‘1 2 3 4 5 6’ |
while read a b c; do echo result: $c $b $a; done
A. result: 3 4 5 6 2 1
B. result: 1 2 3 4 5 6
C. result: 6 5 4
D. result: 6 5 4 3 2 1
E. result: 3 2 1
A
The _____________ command is used to print the network connections, routing tables, and interface statistics. (Please enter only a single command and do not enter duplicate answers in this field.)
netstat
X is running okay but an administrator is concerned that the correct color depth set is not configured. Which of the following commands will show the administrator the running color depth while in X? A. xcd B. xcdepth C. xwininfo D. xcolordepth E. cat /etc/X11
C
Which of the following words is used to restrict the records that are returned from a SELECT query
based on supplied criteria for the values in the records?
A. LIMIT
B. FROM
C. WHERE
D. IF
C
Which of the following outputs will the command seq 10 produce?
A. A continuous stream of numbers increasing in increments of 10 until stopped.
B. The numbers 1 through 10 with one number per line.
C. The numbers 0 though 9 with one number per line.
D. The number 10 to standard output.
B
The _________ command is used to assign an IP address to a device. (Please specify a single
command with or without path information)
ifconfig
Which of the following is the purpose of the Sticky Keys feature in X?
A. To assist users who have difficulty holding down multiple keys at once
B. To prevent repeated input of a single character if the key is held down
C. To ignore brief keystrokes according to a specified time limit
D. To repeat the input of a single character
A
Which of the following commands can be used to activate a specific network interface? A. ipup B. net C. ifup D. netup
C
An administrator is looking into a new script that they have just received from a senior
administrator. In the very first line the administrator notices a #! followed by a path to a binary.
Linux will:
A. ignore the script.
B. use that binary to interpret the script.
C. use that binary to compile the script.
D. be replaced by that binary.
B
Which of the following commands should be used to print a listing of emails in the system's mail queue? A. sendmail -l B. lpq C. mailq D. mlq
C
Given the following line from /etc/nsswitch.conf: hosts: files mdns4_minimal [NOTFOUND=return]
dns mdns4 By default, which file will be queried first for hostname lookups? (Provide the full path
and filename).
/etc/hosts
What command can be used to generate log entries of any facility and priority? (Supply just the
command name without a path).
logger
Each entry in a crontab must end with which of the following characters? A. tab B. space C. backslash D. newline
D
To exclude all log messages of a given logging facility, an administrator should use a logging
priority of _____ .
none
What argument to the -name flag of find will match files or directories beginning with a ‘.’ (period)?
*
A department decided to change the Gnome Display Manager’s greeting. Which of the following
configuration files should an administrator edit?
A. /etc/gnome/greeting
B. /opt/gnome/share/greeting
C. /etc/X11/gmd.conf
D. /etc/X11/gdm/Init/Default
D
Which of the following are commonly used Mail Transfer Agent (MTA) applications? (Select THREE). A. postfix B. procmail C. sendmail D. exim E. smtpd
A, C, D
Which file lists which users can execute commands using sudo? (Provide the full path and
filename).
/etc/sudoers
Which file contains a list of services and hosts that will be denied by a TCP Wrapper such as
tcpd? (Please enter the full path).
/etc/hosts.deny
On a dual boot system, every time the system is booted back into Linux the time has been set
backward by two hours. Which of the following commands will correct the problem so it will not
occur again?
A. ntpdate pool.ntp.org
B. date -d ‘two hours’
C. hwclock –hctosys –localtime
D. time hwclock
C
Which of the following files, when using Sendmail or a similar MTA system, will allow a user to
redirect all their mail to another address and is configurable by the user themselves?
A. /etc/alias
B. /etc/mail/forwarders
C. ~/.alias
D. ~/.forward
D
A senior executive asked an administrator to change the default background of the executive
machine, which uses XDM. Which of the following filesA senior executive asked an administrator
to change the default background of the executive? machine, which uses XDM. Which of the
following files would the administrator edit to achieve this?
A. /etc/X11/xdm/Xsetup
B. /etc/X11/xdm.conf
C. /etc/X11/xdm/Defaults
D. /etc/X11/defaults.conf
A
Which of the following should be backed up before a Samba version upgrade? (Choose TWO correct answers.) A. Libraries B. TDB files C. Configuration files D. Binaries E. winbindd_privileged directory
B, C
How is VFS (Virtual File System) support enabled in Samba?
A. Samba does not support VFS.
B. Compile and load vfs.ko kernel module.
C. Compile and load vfs.ko and its dependent smbfs kernel modules.
D. Compile and load pvfs.ko kernel module.
E. Compile Samba with VFS module support.
E
Which command from the Samba Suite is used to retrieve information on the mapping between NetBIOS names and IP addresses?
nmblookup
Which of the following commands will mount a remote Samba share when the user is Winuser and
the password is somepass?
A. mount -t smbfs -o username=Winuser,password=somepass //SERVER/share
/media/sambashare
B. mount -t smbfs -o username=Winuser,password=somepass \SERVER\share
/media/sambashare
C. mount -t smbfs -o Winuser%somepass //SERVER/share /media/sambashare
D. mount -t smbfs -o username=Winuser%somepass //SERVER/share /media/sambashare
A
After installing a network with one Samba server and several clients, users are complaining that
they receive an Unable to browse the network error when trying to visit a public share. What is the
most likely cause of this?
A. The user entered the wrong username and/or password.
B. The nmbd process is not running on the Samba server.
C. The user hasn’t mapped the share to a local drive letter yet.
D. The Samba server is not configured as a Domain Master Browser
B
Which node type will use only NetBIOS broadcast requests using UDP broadcast? A. b-node (type 0x01) B. p-node (type 0x02) C. m-node (type 0x04) D. h-node (type 0x08)
A
Which port must be open in a firewall to allow access to rdesktop?
3389
Which port is used for “NetBIOS-less” SMB traffic?
445
A ______ server stores NetBIOS names and IP addresses of SMB/CIFS clients
wins
By default, Windows XP requires that passwords on your Samba server: A. Do not exceed 32 characters. B. Contain both numbers and letters. C. Are encrypted. D. Are changed every 30 days.
C
When setting up roaming profiles in a Windows network which includes Windows 98 desktops, which Samba parameter must be set? A. logon drive B. logon home C. logon path D. logon script
B
What DHCP option can be set on a ISC DHCP server to tell NETBIOS clients that the WINS
server has the IP address 192.168.1.2?
A. option netbios-wins-servers 192.168.1.2;
B. option wins-netbios-servers 192.168.1.2;
C. option wins-name-servers 192.168.1.2;
D. option netbios-name-servers 192.168.1.2;
D
Which of the following development libraries are used to make Samba compatible with ADS? (Select TWO correct answers.) A. Kerberos B. CUPS C. LDAP D. Win32 E. IMAP
A, C
Which smb.conf configuration keyword determines the hostname resolution order? A. use ads B. name resolve order C. use nsswitch.conf D. use resolv.conf
B
What is the meaning of a NetBIOS hybrid node (h-node) type client?
A. Client performs a broadcast and does not query WINS.
B. Client queries WINS first, and then broadcasts.
C. Client broadcasts first, and then queries WINS.
D. Client only queries WINS and does not broadcast.
E. Client only queries lmhost local file.
B
Which of the following statements are true when creating NETBIOS names? (Select TWO correct
answers.)
A. NETBIOS names can only use alphanumeric characters.
B. You can use a ‘.’ in a NETBIOS name.
C. You can use an ‘_’ (underscore) in a NETBIOS name.
D. NETBIOS names must be UPPERCASE
E. NETBIOS names can be a maximum of 32 characters
B,C
Which command would create a machine account in Active Directory under the
Computers\BusinessUnit\Department\Servers organizational unit?
A. net rpc join -m localhost -
ldap=”ldap.ldapserver.com:Computers\BusinessUnit\Department\Servers”
B. rpcclient -c “join Computers\BusinessUnit\Department\Servers”
C. net ads join ou=”Computers\BusinessUnit\Department\Servers”
D. net ads join “Computers\BusinessUnit\Department\Servers”
D
In which section of the smb.conf configuration file is the logon script declared? A. [homes] B. [netlogon] C. [global] D. [profiles]
C
Which of the following commands would you run to add your machine to an NT4 domain?
A. net rpc join -S PDC -UAdministrator%password
B. net ads join -s PDC -UAdministrator%password
C. net rpc join -s PDC -UAdministrator%password
D. net ads join -W PDC -nAdministrator%password
A
When migrating files from a Windows server A to a Samba server B with the command ‘net rpc
share migrate files -S A -destination=B -acls -attrs -U administrator’, some files that originally
belong only to a Windows group (no user) will generate errors during the migration. Which option
in smb.conf will force such files to be mapped to the correct UNIX UID and GID?
A. use acl = yes
B. map group acls = yes
C. force unknown acl user = yes
D. inherit acls = no
C
When no WINS server is present, all name registrations and lookups are done by UDP \_\_\_\_\_\_\_. A. broadcast B. multicast C. unicast D. None of the above.
A
Which are the FOUR parameters (in the correct order) to be set in the name resolve order
directive, to use the following name resolution order?
1. Use lmhosts file entries 2 Use a server especified in the ‘wins server’ directive Use broadcast
Use default DNS lookup
lmhosts wins bcast host
It is desired to restrict access to the [IPC$] share to one specific machine. The setting hosts allow
= 192.168.0.3 is added to the share configuration. Later it is discovered that other workstations
may still access it. What setting was forgotten in the share configuration? (Enter the parameter
and any options or values)
DenyHosts=0
The response times on a Samba server are gradually increasing, so it is decided to experiment with various socket options in smb.conf. Which of the following are valid values for this parameter? (Choose THREE correct answers) A. TCP_NODELAY B. SO_NOBROADCAST C. SO_TXBUF D. IPTOS_LOWDELAY E. SO_KEEPALIVE
A, D, E
The _____________ parameter in the smb.conf file will set hidden files in Linux to also be hidden
in windows. (Please specify ONLY the parameter with no value assignment.)
hide dot files
There are multiple network interfaces on a server. Which parameters must you set in smb.conf to
limit on which interfaces Samba will accept connections? (Choose TWO correct answers)
A. listen interfaces
B. bind interfaces only
C. interfaces
D. listen address
B, C
Users are reporting that they can access all user home directories on the server in addition to their own. What value must be added to the valid users parameter in the [homes] section of smb.conf to
disallow this behaviour? (Enter only the required value, do not include the parameter name)
%S
The following output is generated when trying to obtain tickets from the Kerberos realm: # kinit
user@SUB.DOMAIN.BIZ Password for user@SUB.DOMAIN.BIZ kinit(v5): Clock skew too great
while getting initial credentials How can the problem be fixed? (Choose TWO correct answers.)
A. ntpdate domaincontroller; hwclock -systohc
B. kinit -t
C. killall -HUP krb5kdc
D. Modify the time_sync value in the kdc.conf file.
E. Modify the clockskew value in the krb5.conf file
A,E
Which of the following is true about the following share access properties? (Choose TWO correct
answers.) [projects]path = /data/projects read only = noadmin users = timo, taki, +managers
A. +managers will be resolved as a Winbind group.
B. The timo and taki users can manipulate files regardless of the file system permissions.
C. +managers will be resolved as a Unix group.
D. +managers is a builtin default Samba group.
E. The “admin users” can be applied only to print shares.
B, C
In /etc/smbldap-tools/ which file contains the DN and password for the LDAP manager? A. smbldap.conf B. ldap.conf C. smbldap_bind.conf D. slapd.conf
C
Which option below shows the correct command line to list the shares exported by the Samba server called NAME? A. smbcontrol -L B. smbclient -N NAME C. smbclient -L NAME D. smbmount -L NAME
C
In the smb.conf configuration file, which pair may be used as a boolean value? A. yes/no B. true/false C. 0/1 D. Any of the above
D
Samba cannot be a Backup Domain Controller for an NT4 PDC because:
A. Samba 3 implements 128-bit encryption, which is unsupported by an NT4 PDC.
B. the native NT4 SAM replication protocols have not yet been fully implemented.
C. the database backends used by each server are incompatible.
D. the Samba team does not want to encourage the use of a Windows server as a PDC.
B
Which command executes a recursive download of the src share located in a Samba server
named SOURCES, assuming that this server allows anonymous users? (Specify the command
and any arguments and parameters.)
smbget -R smb://sources/src
A Samba server needs to determine the SID of an existing domain called FOO. Complete the
command below which on the Samba server that will achieve this result: net rpc _______ FOO
getsid
How is the user user01 from DOMA granted the right to manage printers in the Samba print
server?
A. net ads rights ‘DOMA\user01’ +SePrintOperatorPrivilege
B. net -S server -U domadmin rpc rights grant ‘DOMA\user01’ SePrintOperatorPrivilege
C. pdbedit -user=user01 -I=DOMA -policies=SePrintOperatorPrivilege
D. pdbedit DOMA\user01 +PrintOperator
E. cupsaddsmb DOMA\user01 +PrintOperator
B
When using a localized installation of Windows - such as Japanese or Chinese - the names of files
which are stored on the server do not display correctly in Windows Explorer. Which parameters in
smb.conf should be checked? (Choose TWO correct answers)
A. unix charset
B. display charset
C. dos charset
D. windows charset
E. Unicode
A, C
After updating the smb.conf file, it is a good idea to run the _________ command before restarting
the Samba service. (Enter the command only with no path information.)
testparm
What command (excluding path information) will display the compile time options for Samb a. Please include all options.
smbd -b
Which command will list the shares on the workstation with the NetBIOS name officepc and IP address 192.168.0.3? A. smbclient -L -I 192.168.0.3 B. smbclient -L officepc C. smbclient -l -n officepc D. smbclient -list -I 192.168.0.3
B
In which section of smb.conf should the path to the domain policy file be declared? A. [netlogon] B. [homes] C. [profiles] D. [policy]
A
If logon drive = H: is set in the Samba main configuration file, the server will automatically map the
home directory for each user to the drive H: as soon as logon is executed. What is the equivalent
command for this directive in a logon script?
netuse h:/home
Which smbldap-tools configuration files require modification before using the TOOLs? (Select THREE correct answers.) A. smbldap.conf B. smbldap_tools.pm C. ldap.conf D. smb.conf E. smbldap_bind.conf
A, B, E
A new Samba server (Version 3) has been setup with a brand new colour laser printer. The printer
is attached to the parallel port and is setup using CUPS. What share must you setup in your
smb.conf file to allow client computers to download the new drivers?
A. [printers]
B. [print$]
C. [printer$]
D. [cups$]
B
The SAMBADOM domain has been added as a trusted account to an existing domain called
WIN3K. Which command should be run on the Samba server in order to establish the trusted
relationship to the WIN3K domain?
A. net rpc trustdom add WIN3K
B. net rpc addtrust WIN3K
C. net rpc trustdom establish WIN3K
D. net rpc trustdom establish SAMBA
C
By default, on what port does SWAT listen?
901
By specifying the _________ parameter in smb.conf and assigning it an appropriate value, Samba
will create Machine Trust Accounts automatically when the client joins the domain.
add machine script
Which command typed on a Samba 3 server will print out the local SID? A. net get sid localhost B. net getlocalsid C. net getsid D. net rpc get localsid
B
What command will test the file /root/smb.conf for internal correctness? (Enter the command and
any required options or parameters)
testparm /root/smb.conf
When a Windows domain controller is used, which of the following is assigned a Windows Security Identifier? A. Users B. Servers C. Groups D. Only A and C above E. All of the above
E
The command _______ is used on a Samba 3 server to modify the SSID in an existing NT profile
file called NTUser.DAT.
profiles
What must be done to allow only users of the devel system group to access a share?
A. In the smb.conf file, set valid users = @devel
B. In the smb.conf file, set valid groups = @devel
C. In the smb.conf file, set valid groups = devel
D. chgrp the directory on the Samba server to the devel group, and then set the GID bit on the
directory.
A
In the [global] section of the smb.conf file, the following parameter is set: map to guest = Bad
Password Which of the following statements are true? (Select TWO correct answers.)
A. Users using an invalid password are treated as a guest account.
B. Users using an invalid password are rejected from accessing shares.
C. Users will receive warning messages that they are using an incorrect password
D. This parameter is required to setup public shares on the samba server when the security
parameter is set to user.
A, D
What does the entry valid users = @smbusers in the smb.conf file mean when used in a share
section?
A. Only users connecting from the machine called smbusers can use this share.
B. Files saved in the specified share will be owned by the group smbusers.
C. Only users in the unix group called smbusers can access this share.
D. Only the user account smbusers can access this share.
C
Which smbclient option is used when connecting to a server as an authenticated user? (Select TWO correct answers.) A. -user B. -u C. -guest D. -password E. -U
A, E
Select the TWO correct statements about the smbpasswd command:
A. The -d parameter deletes the account from Samba database.
B. The -a parameter adds account to the Samba database. If the account already
exists, this parameter is ignored.
C. The -x parameter removes the account from the Samba database.
D. the -e parameter excludes the account from the Samba database.
E. smbpasswd enables password changes only on Samba servers and not regular Windows
servers.
B, C
Which of the following lines should be added to smb.conf to use authenticate users against the Kerberos domain bc.ep.kerberos.biz? A. kerberos = bc.ep.kerberos.biz B. realm = bc.ep.kerberos.biz C. krb5 = /etc/krb5.conf D. krb5 workgroup = bc.ep.kerberos.biz
B
A default user profile can be stored in a subdirectory of profiles/ called ________.
default user
Which backend must be included in the smb.conf’s passdb backend parameter in order for users
to authenticate against an LDAP directory?
ldapsam
Which component of the Samba suite allows Windows domain users to appear and operate as
Unix users on a Unix machine?
winbind
If the idmap parameter is not specified in smb.conf, in which database file will winbind store its
UID/GID/SID mappings? (Enter only the filename, without a path)
winbind_idmap.tdb
What command will delete the user account joeuser from a Samba server. (Include ANY required
options.)
smbpasswd -x joeuser
With Samba 3, which LDAP object class contains the Samba password attribute in the LDAP backend. A. sambaSamAccount B. shadowAccount C. inetOrgPerson D. sambaUnixIdPool E. sambaPasswdMap
A
Which parameter in the smb.conf defines how long the winbind daemon will cache user and group information? A. winbind cache time B. idmap cache time C. cache time D. nscd cache time
A
Select the TWO correct answers relating to the scripts of smbldap-tools package:
A. The /etc/smbldap-tools/smbldap_bind.conf file contains the access credentials for the LDAP
server.
B. The smbldap-migrate-accounts command is used to migrate accounts from a LDAP server to a
NT server.
C. The smbldap-usershow command displays just the user accounts on the Samba server.
D. smbldap-passwd is used to create and change users passwords.
E. The smbldap-useradd command creates user accounts in both the Samba and LDAP
backends.
A, D
Which line should be added to smb.conf to avoid UID and GID inconsistencies across servers over
SMB?
A. ldap dn = ldap://ldapserver.com
B. ldap server = ldap://ldapserver.com
C. idmap backend = idmap_rid:BUILTIN=ldapserver.com
D. idmap backend = ldap:ldap://ldapserver.com
E. ldap passwd sync = ldapserver.com
D
How can the risk of UID/GID inconsistencies be avoided across UNIX/Linux systems that are
sharing information over protocols other than SMB/CIFS (eg: NFS)?
A. Specify a common LDAP idmap backend in smb.conf.
B. Specify a common Kerberos realm in smb.conf.
C. Specify a common domain name in smb.conf.
D. Specify a common password server in smb.conf.
E. Specify a common winbind id range in smb.conf.
A
While attempting to create a user in the Samba database, the following message appeared: #
smbpasswd –a john New SMB password: Retype new SMB password:
… Failed to initialise SAM_ACCOUNT for user john. Does this user exist in the UNIX password
database?Failed to modify password entry for user john Select the correct explanation for why this
error occurred.
A. The user john must be created in the Linux environment before it can be added to the Samba
database.
B. The Samba database is not compatible with the Linux backend.
C. The account user synchronization of Samba and Linux was not properly done.
D. The SAM_ACCOUNT script could not be started properly because the user running the
smbpasswd command does not have enough permissions
A
The configuration below is contained in the Samba main configuration file: [homes] comment =
Home folder writable = yes browseable = no valid users = %S However, an attempt at listing the
share with smbclient didn’t work. Which TWO options below could be possible reasons for this?
A. One of the reasons is that the browseable directive was set to no, denying the share listing to
anonymous users.
B. If the smbclient command was executed by an authenticated user, the share would be listed.
C. The configurations above are correct, but the administrator forgot to reload the configuration by
restarting the Samba daemon.
D. The real problem is in the valid users directive, which allows access to the share, but denies
access to the Linux file system.
E. The writable option is in the wrong place in the configuration file.
A, B
Which command will import an smbpasswd file located in /etc/samba to a TDB data file? ______ -I
smbpassd:/etc/samba/smbpasswd
pdbedit
The _______ command will dump out the contents of a Samba printer drivers TDB file.
tdbdump