centos7配置samba连接win10

本文详细介绍了如何在Windows和Linux系统上管理Samba用户,包括删除用户信息、添加网络凭据、配置smb.conf,以及在Linux中安装、配置Samba、添加用户和共享文件夹的过程。通过实例演示了如何在两个操作系统间实现文件共享和权限设置。

win操作:
win删除所有samb用户信息

net use * /del /y

win下添加网络凭据

win+R
control userpasswords2
添加samba服务器地址 \\192.168.xx.xx
添加samba用户,密码,必须是系统已经存在的用户

Linux操作:
1.安装samba

yum install samba

[root@localhost share]# cd /etc/samba/
[root@localhost samba]# ls
lmhosts  smb.conf
[root@localhost samba]# ll
total 8
-rw-r--r--. 1 root root  20 Mar 16 23:45 lmhosts
-rw-r--r--. 1 root root 784 Jun 12 11:29 smb.conf

2.添加配置

vi smb.conf
[share]
    comment = fff
	path = /share
	browseable = Yes
	writeable = Yes

3.linux添加用户

useradd gdut17
passwd gdut17

4.samba添加用户

smbpasswd -a gdut17

5.创建共享文件夹

mkdir /share
chmod 777 /share/ -R

chown gdut17:root /share/
chown gdut17:gdut17 /share/

[root@localhost /]# ll
drwxrwxrwx.   2 gdut17 gdut17   45 Jun 12 11:31 share

6.关闭 setlinux

setenforce 0
systemctl restart smb

在这里插入图片描述

在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值