CentOS 5.8 x64 源码安装 samba-3.6.9

时间:2022-08-07 06:14:59
环境 CentOS 5.8 X64 
 
 
wget http://www.samba.org/samba/ftp/stable/samba-3.6.9.tar.gz
 
tar zxvf samba-3.6.9.tar.gz
 
cd samba-3.6.9
 
cd source3
 
sh autogen.sh
 
./configure --prefix=/opt/local/samba
 
make && make install
 
==============================================================
All MO files for Samba are installed. You can use "make uninstall"
or "make uninstallmo" to remove them.
==============================================================
 
安装完成...
 
将smb.conf文件拷贝到/opt/local/samba/lib/
 
cd ..
 
cp examples/smb.conf.default /opt/local/samba/lib/smb.conf
 
cd /opt/local/samba/bin
 
./testparm
 
查看加载服务文件是否正常
 
ln -s /opt/local/samba/lib/libtalloc.so.2 /lib64/libtalloc.so.2
ln -s /opt/local/samba/lib/libtdb.so.1 /lib64/libtdb.so.1
 
Loaded services file OK.
 
 
修改smb.conf 文件..
 
 
 
 
 
添加smb 用户.
 
./smbpasswd -a user
 
 
启动samba 服务
 
cd /opt/local/samba/sbin/
 
./smbd start
 
./nmbd start