Ubuntu14.04使用samba服务器共享Home目录
2015-03-19 00:00
302 查看
这里记录一下,以Ubuntu 14.04为例。
1.安装samba服务器。
sudo apt-get install samba
2.修改配置文件
sudo vim /etc/samba/smb.conf
然后找到home目录共享的部分,大概是190-214行,将前面的注释去掉,如下:
这里的掩码我稍微做了修改。
3.修改samba用户密码。
例如我的用户名是wing,那么需要创建一个相应的密码,用于samba共享,这个密码跟系统账户那个是不同的。
sudo smbpasswd -a wing
然后重启samba服务
sudo service smbd restart
4.在windows的资源管理器中打开\\192.168.1.6\homes(这里我的IP为192.168.1.6),输入用户名和密码(注意是刚才设置的samba用户密码),就可以看到设置成功。
如果感觉不太方便,可以把这个地址映射为文件夹或者一个虚拟的磁盘。
1.安装samba服务器。
sudo apt-get install samba
2.修改配置文件
sudo vim /etc/samba/smb.conf
然后找到home目录共享的部分,大概是190-214行,将前面的注释去掉,如下:
# 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 exported read-only. Change the # next parameter to 'no' if you want to be able to write to them. read only = no # File creation mask is set to 0700 for security reasons. If you want to # create files with group=rw permissions, set next parameter to 0775. create mask = 0666 # Directory creation mask is set to 0700 for security reasons. If you want to # create dirs. with group=rw permissions, set next parameter to 0775. directory mask = 0755 # By default, \\server\username shares can be connected to by anyone # with access to the samba server. # Un-comment the following parameter to make sure that only "username" # can connect to \\server\username # This might need tweaking when using external authentication schemes valid users = %S
这里的掩码我稍微做了修改。
3.修改samba用户密码。
例如我的用户名是wing,那么需要创建一个相应的密码,用于samba共享,这个密码跟系统账户那个是不同的。
sudo smbpasswd -a wing
然后重启samba服务
sudo service smbd restart
4.在windows的资源管理器中打开\\192.168.1.6\homes(这里我的IP为192.168.1.6),输入用户名和密码(注意是刚才设置的samba用户密码),就可以看到设置成功。
如果感觉不太方便,可以把这个地址映射为文件夹或者一个虚拟的磁盘。
相关文章推荐
- Ubuntu14.04使用samba服务器共享Home目录
- ubuntu14.04上Virtualbox安装win7(使用Ghost镜像安装,启用USB设备支持,设置共享目录)
- ubuntu设置好samba服务器后,windows登录共享目录时出现“Samba服务器 解决不允许一个用户使用一个以上用户名与一个服务器或共享资源的多重连接”
- VMware虚拟机安装Ubuntu 11.10使用share folders共享目录
- VMware 虚拟机安装Ubuntu 11.10使用share folders共享目录
- virtualbox上ubuntu14.04自动加载共享目录
- 解决ubuntu14.04下samba共享目录share点开弹出没有权限访问的问题
- 如何在Ubuntu 14.04 中使用Samba共享文件
- VMware8 虚拟机安装Ubuntu 11.10使用share folders共享目录
- 快速使用http方式共享目录(利用python)--Ubuntu小笔记
- ubuntu14.04中利用samba访问linux/windows共享目录的方法
- 在ubuntu虚拟机中使用samba服务器与XP主机共享文件夹
- ubuntu 14.04 LTS windows/win7下的vmware虚拟机共享/mnt/hgfs目录为空 终极解决方案100%成功
- Linux下使用samba服务器实现与Windows的目录文件共享
- ubuntu14.04中利用samba访问linux/windows共享目录的方法
- vitrualbox 4 虚拟Ubuntu Shared folder 共享目录使用教程
- VMware7.1.5虚拟机安装Ubuntu 11.10使用share folders共享目录
- VMware虚拟机安装Ubuntu使用share folders共享windows目录的方法
- (转载)Ubuntu samba安装创建共享目录及使用
- Ubuntu 14.04安装及使用(添加root用户,与windows共享文件夹)