ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

第十一章 FreeBSD之设置samba为独立服务器

2021-05-10 22:05:35  阅读:320  来源: 互联网

标签:samba conf 第十一章 Free server etc FreeBSD root


一、安装samba

# pkg search samba
 
p5-Samba-LDAP-0.05_2           Manage a Samba PDC with an LDAP Backend
p5-Samba-SIDhelper-0.0.0_3     Create SIDs based on G/UIDs
samba-nsupdate-9.16.5          nsupdate utility with the GSS-TSIG support
samba410-4.10.18               Free SMB/CIFS and AD/DC server and client for Unix
samba411-4.11.13               Free SMB/CIFS and AD/DC server and client for Unix
samba412-4.12.7                Free SMB/CIFS and AD/DC server and client for Unix
samba413-4.13.0                Free SMB/CIFS and AD/DC server and client for Unix
# pkg install samba413-4.13.0

二、启动samba

(1)打开/etc/rc.conf

# vi /etc/rc.conf

(2)在/etc/rc.conf最后加入如下,并保存:

nmbd_enable="YES"
winbindd_enable="YES"
samba_enable="YES"
samba_server_enable="YES"

(3)创建/usr/local/etc/smb4.conf,添加如下内容并保存

#vi /usr/local/etc/smb4.conf

[root]
    comment = root's stuff
    path = /root
    public = no
    browseable = yes
    writable = yes
    printable = no
    create mask = 0755

(4)创建samba root用户:

# smbpasswd -a root

(5)进入/usr/local/etc

# cd /usr/local/etc

(6)启动samba服务

# service samba_server start //启动命令

或者

# service samba_server restart //重启命令

(7)查看samba状态:

service samba_server status

(8)在windows下利用\\192.168.253.128访问共享文件夹

\\192.168.253.128

 

标签:samba,conf,第十一章,Free,server,etc,FreeBSD,root
来源: https://blog.csdn.net/pyf987337461/article/details/116567966

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有