create samba server
2016-04-03 12:22
246 查看
1. install samba
sudo apt-get install samba
sudo apt-get install cifs-utils
sudo apt-get install samba-common
notice:
samba-common may be installed when installing samba
2. setup permissions for directory to be shared
sudo chmod 777 [directory_to_be_shared]
3. modify /etc/samba/smb.conf
cp /etc/samba/smb.conf /etc/samba/smb.conf.bak
vi /etc/samba/smb.conf
add the below part at the end:
***************************************************************
# for u-boot-2012.04.01 directory. gzsh. 2016.04.02
[share]
path = /work/uboot/u-boot-2012.04.01
available = yes
browsable = yes
public = yes
writable = yes
# end of u-boot-2012.04.01 directory
***************************************************************
public = yes, means username and password of Ubuntu are not needed when accessing this directory on Windows,
while 'public = no', it is needed.
4. add a user to smb user group
sudo touch /etc/samba/smbpasswd
sudo smbpasswd -a aspirs
5. restart smaba server
sudo /etc/init.d/samba restart
or
sudo service samba restart
reference:
Ubuntu下配置samba实现文件夹共享
http://www.cnblogs.com/phinecos/archive/2009/06/06/1497717.html
sudo apt-get install samba
sudo apt-get install cifs-utils
sudo apt-get install samba-common
notice:
samba-common may be installed when installing samba
2. setup permissions for directory to be shared
sudo chmod 777 [directory_to_be_shared]
3. modify /etc/samba/smb.conf
cp /etc/samba/smb.conf /etc/samba/smb.conf.bak
vi /etc/samba/smb.conf
add the below part at the end:
***************************************************************
# for u-boot-2012.04.01 directory. gzsh. 2016.04.02
[share]
path = /work/uboot/u-boot-2012.04.01
available = yes
browsable = yes
public = yes
writable = yes
# end of u-boot-2012.04.01 directory
***************************************************************
public = yes, means username and password of Ubuntu are not needed when accessing this directory on Windows,
while 'public = no', it is needed.
4. add a user to smb user group
sudo touch /etc/samba/smbpasswd
sudo smbpasswd -a aspirs
5. restart smaba server
sudo /etc/init.d/samba restart
or
sudo service samba restart
reference:
Ubuntu下配置samba实现文件夹共享
http://www.cnblogs.com/phinecos/archive/2009/06/06/1497717.html
相关文章推荐
- jquery中attr和prop的区别
- 理解Cookie和Session机制
- Exception starting filter Struts2
- 开源的相关记录
- Android编译详解之lunch命令
- webdriver中Xpath当前节点寻找父节点下的字节点
- 工厂模式和策略模式的区别
- JAVA反射机制
- HashMap 原理和源码分析
- nginx记录响应与POST请求日志
- nginx记录响应与POST请求日志
- 应用"新特性"功能demo
- 搜狐视频Redis私有云平台CacheCloud
- Android课程---计算器的实现
- [南极星]何处是归处
- [置顶] 科大讯飞语音集成,非常详细的使用讲解
- 科大讯飞语音集成,使用讲解
- IOS --- CocoaPods的安装和使用
- 关于网站主栏目多类别(或多子类)下的数据的准确显示
- python爬虫学习--pixiv爬虫(2)--国际排行榜的图片爬取