ubuntu 搭建samba服务
来源:互联网 发布:大数据培训课程体系 编辑:程序博客网 时间:2024/06/04 19:58
windows访问linux可通过搭建samba服务,共享目录
过程:
ubuntu安装sudo apt-get install samba
sudo apt-get install smbfs
sudo apt-get install smbclient
编辑sudo vi /etc/samba/smb.conf
修改处:
# Change this to the workgroup/NT-domain name your Samba server will part of
doc charset = UTF-8
unix charset = UTF-8
workgroup = WORKGROUP
netbios name = user_name.wingtech.com
# "security = user" is always a good idea. This will require a Unix account
# in this server for every user accessing the server. See
# /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/ServerType.html
# in the samba-doc package for details.
security = user
#======================= 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 director as //server/username
[share]
comment = Home Directories
path = /home/user_name
browseable = yes
public = yes
writable = yes
注意要将该目录用户名和组名改为user_name
sudo chown user_name /home/share
sudo chgrp user_name /home/share
建立账号sudo smbpasswd -a user_name
重启下samba服务:sudo service smbd restart
此时可以在windows下访问/home/user_name和/home/share这两个文件夹了
可以尝试net use \\IP * /user:user_name;提示输入密码,输入密码,提示命令成功完成证明可以共享了。
例如:net use \\192.168.1.118 * /user:jason
- ubuntu 搭建samba服务
- Ubuntu下搭建samba服务
- Ubuntu下搭建samba服务
- ubuntu Samba服务搭建 供windows共享
- win7主机与WMware ubuntu 12.04 samba服务的搭建
- win7主机与WMware ubuntu 12.04 samba服务的搭建
- Ubuntu 下搭建局域网文件共享服务samba
- samba服务的搭建
- samba服务搭建
- centos搭建samba服务
- 搭建Samba服务
- samba服务搭建
- samba 服务的搭建
- 搭建samba服务 centos
- linux-samba服务搭建
- samba 服务搭建
- samba服务搭建
- Samba服务搭建
- ffmpeg安装步骤(windows)
- 架构师点滴
- 学习网站(收藏)
- SqlServer语句收集
- 解读CRM规划时怎样做好项目的集成性设计
- ubuntu 搭建samba服务
- 当客户关系管理遭遇网络营销
- 限制scp命令传输速度
- Java中 new date 莫名其妙的时区错误 win7环境下
- Oracle Spatial空间分析详解
- 判断数据库是否存在的两种方法
- 项目经理修炼(1)
- 基于移动数据的LED显示屏设计与仿真
- 项目经理修炼(2)