找了好多相关samba的配置,不是这里不行,就是那里不行。现在终于配置成功了。在这里记录一下,以便大家一起交流学习。

1.安装smaba
[email protected]:~# apt-get install smaba

2.修改配置文件
cd /etc/samba
vi smb.conf,增加以下内容:
#======================= Share Definitions =======================
[share]
comment = Shared Folder require password
path = /home/share
public = yes
writable = yes
valid users = share
create mask = 0777
directory mask = 0777
force user = nobody
force group = nogroup
available = yes
browseable = yes


3.重启服务
[email protected]:~# service samba restart

4.修改文件权限,增加用户名密码:
[email protected]:~# useradd share
[email protected]:~# smbpasswd -a share
New SMB password:
Retype new SMB password:
Added user share.
[email protected]:~# chmod 777 /home/share

5.在window下输入:\\192.168.10.61回车,最后来一张图片!

ubuntu下配置samba服务器


相关文章:

  • 2021-11-06
  • 2021-04-15
  • 2021-05-02
  • 2021-11-04
  • 2021-10-23
  • 2021-06-11
  • 2022-12-23
猜你喜欢
  • 2021-11-13
  • 2021-08-25
  • 2021-11-23
  • 2021-11-06
  • 2021-11-06
相关资源
相似解决方案