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. 安装 ...
随机推荐
- Angel - 模拟Kafka数据流调试FTRL的方法
Angel - 模拟Kafka数据流调试FTRL的方法 Mac或者Linux版本(Win10的Linux子系统同样适用) 创建一个目录用来安装kafka以及zookeeper等相关软件,比如,新建一个 ...
- html table 固定表头和列
/**************************************************************** jQuery 插件. 功能: 固定表格标题行或列头 Version: ...
- 已知长度为n的线性表采用顺序结构,写一算法删除该线性表中所有值为item的元素
/** * @author:(LiberHome) * @date:Created in 2019/2/27 23:34 * @description: * @version:$ */ /*已知长度为 ...
- 通过阿里云命令行工具 aliyuncli 购买服务器
开始想通过 aliyuncli 的 golang 源码进行编译安装(注:python 版的 aliyuncli 已不再维护),但没成功,详见 通过 golang 源码编译阿里云命令行工具 aliyun ...
- spark-sql(spark sql cli)客户端集成hive
1.安装hadoop集群 参考:http://www.cnblogs.com/wcwen1990/p/6739151.html 2.安装hive 参考:http://www.cnblogs.com/w ...
- DELPHI中完成端口(IOCP)的简单分析(2)
DELPHI中完成端口(IOCP)的简单分析(2) 今天我写一下关于DELPHI编写完成端口(IOCP)的工作者线程中的东西.希望各位能提出批评意见.上次我写了关于常见IOCP的代码,对于IOCP ...
- windows 10 超级优化,同时解决本地磁盘100%的问题
windows 10 超级优化,同时解决本地磁盘100%的问题 我的系统是笔记本I7处理器,配置了web服务器IIS 和一个数据库(mysql7),同时启用了虚拟机(表中已禁用),以及安装了offic ...
- RoR-Scaffolding
Scaffolding能快速让rails跑起来 同时也生成JSON response rails g scaffolding "xxx" xxy:integer 生成scaffol ...
- 16.4-uC/OS-III同步 (任务信号量)
信号量和消息队列均是单独的内核对象,是独立于任务存在的. 任务信号量 仅发布给一个特定任务 .任务消息队列 可以发布给多个任务. 任务信号量伴随任务存在,只要创建了任务,其任务信号量就是该任务的一个数 ...
- docker容器与镜像
就像cad图层概念 数据卷就是为了完成数据持久化操作