Problem

In this hands-on project, you configure and test Samba file sharing. 1. Switch to a com...

In this hands-on project, you configure and test Samba file sharing.

1. Switch to a command-line terminal (tty2) by pressing Ctrl+Alt+F2 and log in to the terminal using the user name of root and the password of secret.

2. Edit the /etc/samba/smb.conf file with a text editor such as vi. Add the following line underneath the [global] line in this file:

netbios name = server1X

where X is a unique number assigned to you by your instructor. When finished, save your changes and quit the editor.

3. At the command prompt, type smbpasswd –a root and press Enter. When prompted, supply the password of secret. Repeat the same password when prompted a second time.

4. At the command prompt, type service smb start ; service nmb start and press Enter. What daemons were started?

5. At the command prompt, type smbclient –L server1X and press Enter where X is the unique number assigned to you by your instructor. Supply your Samba password of secret when prompted. Do you see your shared home directory? Do you see any printer shares?

6. At the command prompt, type smbclient //server1X/root and press Enter where X is the unique number assigned to you by your instructor. Supply your Samba password of secret when prompted.

7. At the smb:\> prompt, type dir and press Enter. Are you in your home directory?

8. At the smb:\> prompt, type exit and press Enter.

9. Edit the /etc/samba/smb.conf file again with a text editor such as vi. Add the following lines to the end of the file:

[newshare]

comment = Web Content

path = /var/www/html

public = yes

read only = no

When finished, save your changes and quit the editor.

10. At the command prompt, type testparm and press Enter. Were any syntax errors reported within /etc/samba/smb.conf? Press Enter to view your Samba configuration.

11. At the command prompt, type service smb restart ; service nmb restart and press Enter.

12. At the command prompt, type smbclient –L server1X and press Enter where X is the unique number assigned to you by your instructor. Supply your Samba password of secret when prompted. Do you see your new shared directory?

13. At the command prompt, type smbclient //server1X/newshare and press Enter where X is the unique number assigned to you by your instructor. Supply your Samba password of secret when prompted.

14. At the smb:\> prompt, type dir and press Enter. Are you in the /var/www/html directory?

15. At the smb:\> prompt, type exit and press Enter.

16. Type exit and press Enter to log out of your shell.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
Solutions For Problems in Chapter 13