- Home
- Server Administration
- LPIC-2 Linux Engineer 202
16.
You want to add a Samba server to an existing Windows network, on which users are
used to using their full names, including spaces, as usernames. What file would you
edit to enable users to continue using those usernames, while converting them to more
conventional and shorter Linux usernames?
- A.The file pointed to by the username map option in smb.conf
- B.The /etc/samba/username.map file
- C.The file pointed to by the smb passwd file option in smb.conf
- D.The /etc/samba/smbpasswd file
- Answer & Explanation
- Report
Answer : [A]
Explanation :
Explanation :
The username map option in smb.conf specifies where a mapping of Windows to Linux usernames can be found, so option A is correct. Although /etc/samba/username.map is a common filename to specify via the username map option, it's not the only possibility, so option B is incorrect. The smb passwd file option tells Samba where to find its user password file, but this file doesn't include mapping of Windows to Linux usernames, so option C is incorrect. A common name for the Samba password file is /etc/samba/ smbpasswd , but this filename does not conventionally hold mappings of Windows to Linux usernames, so option D is incorrect. |
17.
How can you verify that your smb.conf file contains no serious syntax errors before
launching a Samba server?
- A.Type check - samba
- B.Type smbchkconfig .
- C.Type smbd - - check smb.conf .
- D.Type testparm .
- Answer & Explanation
- Report
Answer : [D]
Explanation :
Explanation :
The testparm program checks your smb.conf file for various simple types of errors. (It cannot check for all errors, though.) Thus, option D is correct. The check - samba and smbchkconfig programs are fictitious, so options A and B are incorrect. The smbd program is one of the major Samba server programs, but it has no - - check option, so option C is incorrect. |
18.
What does it mean when a Samba server's security option is set to Share ?
- A.Samba attempts to emulate Windows 9 x /Me - style authentication.
- B.Samba enables access to files and printers, rather than being offline.
- C.Samba uses SMB/CIFS style file - sharing rather than the Export style used by NFS.
- D.Samba functions as both a client and a server on the network.
- Answer & Explanation
- Report
Answer : [A]
Explanation :
Explanation :
Share - level security refers to the authentication method used: Samba emulates, as best it can, Windows 9 x /Me - style authentication, in which passwords are associated with shares rather than users. Thus, option A is correct. Although various Samba options can temporarily disable file and printer access, that is not true of security Share , so option B is incorrect. The terms share and export have similar meanings but are used in reference to SMB/CIFS and NFS, respectively; but Export is not a valid value for Samba's security parameter, so option C is incorrect. Samba is fundamentally a server, although the Linux kernel and some ancillary Samba programs (such as smbclient ) can function as clients. The security option in smb.conf doesn't directly affect the status of the computer as an SMB/CIFS client, though, so option D is incorrect. |
19.
How does an NFS server determine who may access files it's exporting?
- A.It uses the local file ownership and permission in conjunction with the client's user authentication and a list of trusted client computers.
- B.It uses a password that's sent in unencrypted form across the network
- C.It uses a password that's sent in encrypted form across the network.
- D.It uses the contents of individual users'.rlogin files to determine which client computers may access a share.
- Answer & Explanation
- Report
Answer : [A]
Explanation :
Explanation :
NFS uses a “ trusted host ” policy to let clients police their own users, including access to the NFS server's files, which is what option A describes. NFS does not use a password, so options B and C are incorrect; nor does it use the .rlogin file in users'home directories, so option D is incorrect. |
20.
You want to export the /home directory to two computers via NFS: remington should
have full read/write access, while gentle should have read - only access. How would you
configure this in /etc/exports ?
- A.remington(/home,rw) gentle(/home,ro)
- B.[homes] remington(readwrite) gentle(readonly)
- C./home remington(rw) gentle(ro)
- D.remington(/home,readwrite) gentle(/home,readonly)
- Answer & Explanation
- Report
Answer : [C]
Explanation :
Explanation :
Option C presents the correct syntax for achieving the specified goal in /etc/exports . Options A and D incorrectly place the exported directory name in the option list for each client. Option B uses [homes] (a Samba name for users'home directories) rather than /homes . Options B and D incorrectly expand the ro and rw codes into readonly and readwrite . |