阿里云samba(阿里云samba务器怎么搭建)

华为云服务器特价优惠火热进行中!

2核2G2兆仅需 38 元;4核4G3兆仅需 79 元。购买时间越长越优惠!更多配置及优惠价格请咨询客服。

合作流程:
1、点击链接注册/关联华为云账号:点击跳转
2、添加客服微信号:cloud7591,确定产品方案、价格方案、服务支持方案等;
3、客服协助购买,并拉微信技术服务群,享受一对一免费技术支持服务;
技术专家在金蝶、华为、腾讯原厂有多年工作经验,并已从事云计算服务8年,可对域名、备案、网站搭建、系统部署、AI人工智能、云资源规划等上云常见问题提供更专业靠谱的服务,对相应产品提供更优惠的报价和方案,欢迎咨询。

本篇文章给大家谈谈阿里云samba,以及阿里云samba务器怎么搭建对应的知识点,希望对各位有所帮助,不要忘了收藏本站喔。

微信号:cloud7591
如需了解更多,欢迎添加客服微信咨询。
复制微信号

本文目录一览:

怎么给阿里云服务器安装samba

linux

1安装软件samba-3.0.33-3.7.el5.i386.rpm2

2.创建共享文件夹,添加smb用户

3修改/etc/samba/smb.conf

4

[root@testclient ~]# service smb restart

[root@testclient ~]# service cups restart

[root@testclient ~]# chkconfig smb on

[root@testclient ~]# chkconfig cups on

在阿里云服务器上搭建samba,为什么怎么都不成功?

官网登陆——》控制台——》云服务器ECS——》网络和安全——》安全组——》配置规则——》添加安全组规则

配置文件可以这样

[public]

comment = Public Stuff

path = /var/samba/public

public = no

writable = no

printable = no

browseable = yes

admin users = admin

valid users = guest

创建个用户

echo -e "test\guest" | smbpasswd -s -a guest

大家的云服务器能配置好Samba么

1. 安装iptables防火墙

安装iptables和iptables-services 

yum install iptables 

yum install iptables-services

*关闭centos自带的防火墙 

systemctl stop firewalld 

systemctl mask firewalld

2. 清空防火墙默认规则和自定义规则

iptables -P INPUT ACCEPT 

iptables -F 

iptables -X 

iptables -Z

3. 防火墙开放samba服务所需端口和常用端口

vi /etc/sysconfig/iptables 

添加以下内容到iptables中 

-A INPUT -m state –state NEW -m tcp -p tcp –dport 139 -j ACCEPT 

-A INPUT -m state –state NEW -m tcp -p tcp –dport 445 -j ACCEPT 

-A INPUT -m state –state NEW -m udp -p udp –dport 137 -j ACCEPT 

-A INPUT -m state –state NEW -m udp -p udp –dport 138 -j ACCEPT 

-A INPUT -p tcp –dport 22 -j ACCEPT 

-A INPUT -p tcp –dport 21 -j ACCEPT 

-A INPUT -p tcp –dport 80 -j ACCEPT 

-A INPUT -p tcp –dport 443 -j ACCEPT 

-A INPUT -p icmp –icmp-type 8 -j ACCEPT 

-A INPUT -m state –state RELATED,ESTABLISHED -j ACCEPT 

-P OUTPUT ACCEPT

4. 开启iptables防火墙

注册iptables服务 

systemctl enable iptables.service 

开启服务 

systemctl start iptables.service 

查看状态 

systemctl status iptables.service

5. 安装和配置samba

yum install samba 

设置samba开机启动 

chkconfig smb on

vim /etc/samba/smb.conf,粘贴复制以下内容 

[global] 

unix charset = gbk 

dos charset = gbk 

workgroup = img 

netbios name = img 

server string = uc 

security = user 

smb ports = 1315 1314 #很重要,貌似阿里云屏蔽了samba默认的端口

 

comment = uc 

path=/home/xuhaoguang/work 

create mask = 0664 

directory mask = 0775 

writable = yes 

valid users = work #登录samba服务的账号 

browseable = yes

给samba添加work账号: 

smbpasswd -a work

启动samba: 

service smb restart

6. 客户端连接samba服务

mac: 

command +k ; smb://ip_address:1314

windows: 

运行输入:\Samba服务器的ip

      我是按照上面的步骤完成阿里云服务器上的samba配置的,仅供大家参考!

阿里云samba的介绍就聊到这里吧,感谢你花时间阅读本站内容,更多关于阿里云samba务器怎么搭建、阿里云samba的信息别忘了在本站进行查找喔。

发布于 2022-10-21 00:10:32
收藏
分享
海报
47
目录

    忘记密码?

    图形验证码

    复制成功
    微信号: cloud7591
    如需了解更多,欢迎添加客服微信咨询。
    我知道了