简介
本文介绍了如何在Ubuntu 16.04 TLS系统上配置Samba,并在Windows系统中将共享目录作为指定驱动器挂。Samba安装
Samba的安装非常简单,仅需要执行下面的命令即可:hadoop@hadoop-virtualbox:~$ sudo apt-get install samba
Samba配置
Samba的配置为 /etc/samba/smb.conf,该配置文件对各配置项的使用均有详细的描述,用户可以根据自己的需要进行定制。这里介绍涉及配置仅用户访问自己的home目录的配置修改:
#======================= Share Definitions =======================
# Un-comment the following (and tweak the other settings below to suit)
# to enable the default home directory shares. This will share each
# user's home directory as \\server\username
[homes]
comment = Home Directories
browseable = yes
# By default, the home directories are exp