- Home
- Server Administration
- LPIC-2 Linux Engineer 202
11.
A Samba server ( dance ) includes a [homes] share definition but no [sammy] share
definition. Assuming the relevant account exists, what will then happen when the user
sammy on a client attempts to access \\dance\sammy ?
- A.An error message will appear because the [sammy] share doesn't exist.
- B.If the user enters the correct password, he'll be given access to the /home directory on the server.
- C.The user will be given access to the /tmp directory whether or not a correct password is entered.
- D.If the user enters the correct password, he'll be given access to his home directory's files on the server.
- Answer & Explanation
- Report
Answer : [D]
Explanation :
Explanation :
The [homes] share in Samba is special; it gives access to users'home directories, with each user being given access to his or her own home directory, as option D describes. Option A is incorrect because the point of the [homes] share is to enable access to home directories without having to explicitly define a new share for each user. Option B is incorrect because the [homes] share gives access to users'individual home directories, not to the Linux /home directory, which is typically the directory in which all users ’ home directories reside. Option C is incorrect because a correct password is still normally required to access [homes] and because this share doesn't give access to /tmp unless options are set strangely. (The default directory for most Samba shares is /tmp , but this isn't true of [homes] .) |
12.
You're configuring a Samba server to participate in an existing Windows domain that's
managed by a Windows 7 domain controller. You want users to be able to authenticate
using the Windows controller's account database. How would you set the security option
in smb.conf to achieve this result? (Choose all that apply.)
- A.security = User
- B.security = Server
- C.security = Domain
- D.security = ADS
- Answer & Explanation
- Report
Answer : [B, C, D]
Explanation :
Explanation :
The Server setting tells Samba to authenticate against the domain controller without fully joining the domain. The Domain setting tells Samba to fully join the domain using Windows NT 4 protocols. The ADS setting tells Samba to fully join the domain using Active Directory (AD) protocols. Any of these options will work, if properly configured. The User setting tells Samba to use its local account database, so this setting won't do as the question specifies. |
13.
What does the following line in an smb.conf file mean?
name resolve order = lmhosts
name resolve order = lmhosts
- A.Samba uses the lmhosts file preferentially for name resolution but will use other methods if necessary.
- B.Samba uses the lmhosts file exclusively for name resolution and does not fall back on other methods.
- C.Samba uses the lmhosts file as source material when it functions as a NetBIOS name server.
- D.Samba uses the lmhosts file's contents to determine the priority given to different clients'name - resolution requests.
- Answer & Explanation
- Report
Answer : [B]
Explanation :
Explanation :
The name resolve order option in Samba determines what tools Samba uses to resolve hostnames into IP addresses. Since only one option ( lmhosts ) appears in this example, this is the only tool that's used, as stated by option B. Option A is incorrect because no other methods will be used. Options C and D are incorrect because the name resolve order option controls Samba's own name resolution, not how it functions as a NetBIOS name server or how it delivers names to clients. |
14.
What is wrong with the following Samba share definition?
[themes]
comment: Themes for all users
writable: 0
path: /usr/share/themes
public: 1
[themes]
comment: Themes for all users
writable: 0
path: /usr/share/themes
public: 1
- A.Lines within a share definition require an equal sign ( = ), not a colon ( : ), to separate the option from the value.
- B.Lines following the share definition line must be indented at least one space.
- C.The Boolean options ( writable and public ) require No or Yes values, not 0 or 1 values.
- D.Nothing is wrong with it.
- Answer & Explanation
- Report
Answer : [A]
Explanation :
Explanation :
As specified in option A, Samba's smb.conf file separates options from values with an equal sign ( = ), not a colon ( : ). Option B is incorrect because, although the lines containing a share's option/value pairs are often indented, this is not a requirement. Option C is incorrect because 0 , No , and False are all synonymous in Boolean options, as are 1 , Yes , and True . |
15.
Which of the following things can you do when you access a file on an SMB/CIFS share
using mount that you can't do when accessing it via smbclient ?
- A.Delete the file from the server.
- B.Use Emacs to edit the file while it's on the server.
- C.Copy the file from the server to the client.
- D.Rename the file while it's on the server.
- Answer & Explanation
- Report
Answer : [B]
Explanation :
Explanation :
The single most important ability that mounting an SMB/CIFS share gives you, compared to accessing it with the ftp - like smbclient , is that mounting the share enables ordinary programs to treat the file as if it were a local file. Emacs, being an ordinary program, can therefore edit the file on the SMB/CIFS server, as option B describes. Options A, C, and D are all things that can be done using both smbclient and normal file - manipulation tools on a mounted file share. |