The Guideline of Setting Up Samba Server on linux(Ubuntu)
The Guideline of Setting Up Samba Server on linux(Ubuntu)
- From terminate command window, install the samba package with follow command:
Sudo apt-get install samba
2. Edit the samba config with follow command:
Sudo vim /etc/samba/smb.conf
Add follow content for share folder myshare:
[global] //设置samba服务整体环境
workgroup = WORKGROUP //设置工作组名称
server string = %h server (Samba, Ubuntu) //服务器说明
[myshare] //共享目录的名称
comment = my test share folder //注释说明
path = /home/mostlee/testshare //共享目录的路径
public = yes //是yes/否no公开共享,若为否则进行身份验证(只有当security = share 时此项才起
writable = yes //是yes/否no不以只读方式共享当与read only发生冲突时,无视read only
browseable = yes //是yes/否no在浏览资源中显示共享目录,若为否则必须指定共享路径才能存取
guest ok = yes //是yes/否no公开共享,若为否则进行身份验证(只有当security = share 时此项才起作用)
Share to everyone sample:

Share the folder for shareuser access with account/password:

3. Restart samba service with follow command:
Sudo service smbd restart
The command to view the smbd service status:
Sudo service smbd status
4. Add a user to access the share folder:
useradd testshareuser
smbpasswd –a testshareuser set the user password.
5. Access the share from windows os:
View the linux machine’s ipaddress with ifconfig [eth0]
Maybe need to close the firewall, command like:
Service iptables stop
Now, we should access the share folder, in file explorer from windows machine,
url : \\192.168.1.100\myshare

- For machine in azure, should add endpoints for accessing samba from the virtual machine.
- Login the https://portal.azure.com with manage account.
- Open the target VM’s property page from Virtual Machines section.
- On property page, open the networking page by clicking Networking under Settings node.
- Add inbound port rules for enpoints(137,138,139,445)
- Some other general command for adding share user:
smbpasswd –a username add user
smbpasswd –d username disable the user
smbpasswd –e username enable the user
smbpasswd –n username set the user’s password to empty
smbpasswd –x username delete the user
The Guideline of Setting Up Samba Server on linux(Ubuntu)的更多相关文章
- How To Configure SAMBA Server And Transfer Files Between Linux & Windows
If you are reading this article it means you have a network at home or office with Windows and Linux ...
- samba server install
要求: create vnc service for win7 access it via vnc viewer. 1TB disk for this Centos PC is used as Sam ...
- [转]Android与电脑局域网共享之:Samba Server
大家都有这样的经历,通过我的电脑或网上邻居访问另一台计算机上的共享资源,虽然电脑和手机之间可以有多种数据传输方式,但通过Windows SMB方式进行共享估计使用的人并不是太多,下面我就简单介绍一下, ...
- Samba: Server setup..
To make samba shard folder permission clear, there are 3 kind of permission need to be paid attentio ...
- samba server 设置
samba server 设置yum install samba.x86_64systemctl start smb.servicesystemctl enable smb.servicesamb ...
- How to configure Samba Server share on Debian 9 Stretch Linux
Lubos Rendek Debian 13 June 2017 Contents 1. Objective 2. Operating System and Software Versions 3. ...
- Samba Server possible problem and solving
Configured samba server at RHEL7, problem encountered and solved. 1, yum install samba*, RHEL7 syste ...
- How to install Samba server on Ubuntu 12.04
Part 1: Configuring anonymous share with samba server To install the samba package,enter the followi ...
- CentOS 7 samba server 配置
samba是linux上的文件共享服务软件,相当与Windows上的共享文件夹,当然也是要在同一网段上的. 当前用的版本是4.4.4,好吧!下面介绍怎么去安装配置它,here we go! 1. 安装 ...
随机推荐
- Tomcat部署工程需注意的三点
Tomcat部署工程需注意: 1.如果该服务器是第一安装Tomcat,则各位大人应将该Tomcat的解压文件夹 backup 一份,已被不时之用.2.部署时应当注意修改Tomcat安装目录中conf文 ...
- Python学习之旅(八)
Python基础知识(7):数据基本类型之元组.字典 一.元组 用括号把元素括起来中间用逗号隔开.用逗号分开一些值便可创建元组 1,2,3 结果: (1, 2, 3) 空元组可以用没有包含任何内容的两 ...
- mybatis mapper-locations作用
application上配置了@MapperScan(扫面mapper类的路径)和pom.xml中放行了mapper.xml后,配置mapper-locations没有意义 查找后得知,如果mappe ...
- 线段树合并 || BZOJ 5457: 城市
题面:https://www.lydsy.com/JudgeOnline/problem.php?id=5457 题解: 线段树合并,对于每个节点维护sum(以该节点为根的子树中最大的种类和)和kin ...
- 最全的MonkeyRunner自动化测试从入门到精通(4)
Android Sdk环境变量配置步骤一:我们进行再eclipse中下载sdk来进行使用. 在安装ADT插件完成之后,在eclipse的菜单界面会多一个ADT的管理器,如下图,点击进入到安卓API安装 ...
- Linux下一台服务器Redis主从复制(master-slave)配置
主从概念 ⼀个master可以拥有多个slave,⼀个slave⼜可以拥有多个slave,如此下去,形成了强⼤的多级服务器集群架构 master用来写数据,slave用来读数据,经统计:网站的读写比率 ...
- 洛谷P3178 树上操作 [HAOI2015] 树链剖分
正解:树链剖分+线段树 解题报告: 传送门! 树链剖分+线段树算是基操了趴,,, 就无脑码码码,没有任何含金量,不需要动脑子,然后码量其实也不大,就很爽 比树剖的板子还要板子一些hhhhh 放下代码就 ...
- luogu2839 [国家集训队]middle
题目链接:洛谷 题目大意:给定一个长度为$n$的序列,每次询问左端点在$[a,b]$,右端点在$[c,d]$的所有子区间的中位数的最大值.(强制在线) 这里的中位数定义为,对于一个长度为$n$的序列排 ...
- 【2017-05-18】WebForm的Repeater控件及简单控件
<%@ %> - 这里面写一些声明和引用的 <% %> - 编写C#代码的 <%= %> - 往界面上输出一个变量的值 <%# Eval("属性名 ...
- JavaScript 原型链学习(二)原型的动态性
由于在原型中查找值的过程是一次搜索,因此我们对原型对象所做的任何修改都能够立即从实例上反映出来,即使是先创建了实例后修改原型也照样如此.如下示例: var friend = new Person(); ...