云服务器samba(云服务器哪个品牌比较好)

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

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

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

今天给各位分享云服务器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共享为什么访问不了?

因为运营商把445端口封了,你需要在windows上端口重映射为其他端口,samba服务器上也要更改

大家的云服务器能配置好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的源码安装采用最新版本samba-4.1.14,官网下载。安装过程如下:

$ sudo mkdir /usr/local/samba-4.1.14

$ ./configure --prefix=/usr/local/samba-4.1.14

...

Checking for program xsltproc                                                    : not found

Checking for program python                                                      : /usr/bin/python

Checking for program python                                                      : /usr/bin/python

Checking for program python                                                      : /usr/bin/python

Checking for Python version = 2.5.0                                              : ok 2.7.6

Checking for library python2.7                                                    : not found

Checking for library python2.7                                                    : yes

Checking for program python2.7-config                                            : not found

Checking for program python-config-2.7                                            : not found

Checking

for custom code                                                         

: Could not find the python development headers

/home/anonymalias/Downloads/samba-4.1.14/wscript:100:

error: the configuration failed (see

'/home/anonymalias/Downloads/samba-4.1.14/bin/config.log')

上面错误的原因是samba必须依赖python,执行

$ sudo apt-get install python-dev

后面就是make sudo make install,安装ok后,安装目录结构如下:

/usr/local/samba-4.1.14$ ls

bin  etc  include  lib  private  sbin  share  va

将源码文件下默认的conf文件拷贝到安装目录下的etc目录中

/usr/local/samba-4.1.14$ cp /home/anonymalias/Downloads/samba-4.1.14/examples/smb.conf.default  etc/smb.conf

修改smb.conf中配置

global段添加如下字段

[global]

...

netbios name = ubuntu

共享资源字段采用默认配置

[homes]

comment = Home Directories

browseable = no

writable = yes

# NOTE: If you have a BSD-style print system there is no need to

# specifically define each individual printer

[printers]

comment = All Printers

path = /usr/spool/samba

browseable = no

# Set public = yes to allow user 'guest account' to print

guest ok = no

writable = no

printable = yes

添加用户名为Ubuntu的账户,

/usr/local/samba-4.1.14$ sudo bin/smbpasswd -a ubuntu

New SMB password:

Retype new SMB password:

samba服务器的用户是依赖于linux的用户,只能添加linux中已存在的用户,否则会出现如下错误:

/usr/local/samba-4.1.14$ sudo bin/smbpasswd -a user1

New SMB password:

Retype new SMB password:

Failed to add entry for user user1.

启动samba 服务

/usr/local/samba-4.1.14$ sudo sbin/nmbd

/usr/local/samba-4.1.14$ sudo sbin/smbd

在Windwos文件管理器或直接win+R,输入server ip,可以看到如下界面:

关于云服务器samba和云服务器哪个品牌比较好的介绍到此就结束了,不知道你从中找到你需要的信息了吗 ?如果你还想了解更多这方面的信息,记得收藏关注本站。

发布于 2022-10-25 21:10:02
收藏
分享
海报
55
目录

    忘记密码?

    图形验证码

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