ubuntu9.0.4下samba服务器的源码安装

来源:互联网 发布:纽卡斯尔大学知乎 编辑:程序博客网 时间:2024/05/10 18:56

一、首先下载samba源码包,下载地址http://download.chinaunix.net/download/0001000/30.shtml

二、利用命令tar -xzvf samba-3.5.9.tar.gz解压

三、cd samba-3.5.9/source3/执行./autogen.sh后执行./configure生成Makefile

四 、执行make和make install

五、配置动态链接库vim /etc/ld.so.conf 添加/usr/local/samba/lib后执行ldconfig

六、配置/etc/samba/smb.conf文件在最后添加

[share]         path = /home/share         valid users = root         writeable = yes

七、执行命令cp /etc/samba/smb.conf /usr/local/samba/lib

八、在/usr/local/samba/bin下执行

./smbpasswd –a root

九、关闭防火墙 ufw disable 开启samba服务
# ./usr/local/samba/sbin/smbd restart# ./usr/local/samba/sbin/nmbd restart
0 0
原创粉丝点击