一.升级需知
相关命令
1.#rsync -av /etc/samba/ /etc/samba.old/
2.#cp /etc/init./smb /etc/init.d/smb.bak
samba密码文件:passdb.tdb、schannel_store.tdb、secrets.tdb
samba配置文件:f
2.在升级前,请先仔细参考相关的升级文档。如果对新版本一无所知,那么你为何要去升级它呢?下面是Samba 3.4版本的一些变化:
Major enhancements in Samba 3.4.0 include:
1.Configuration changes:
2.o The default passdb backend has been changed to 'tdbsam'!
3.
4.General changes:
5.o Samba4 and Samba3 sources are included in the tarball
6.
7.Authentication Changes:
8.o Changed the way smbd handles untrusted domain names given during user
9. authentication.
10.
11.Printing Changes:
12.o Various fixes including printer change notificiation for Samba spoolss print servers.
13.
14.Configuration changes
15.=====================
16. ATTENTION
17.The default passdb backend has been changed to 'tdbsam'! That breaks existing
18.setups using the 'smbpasswd' backend without explicit declaration! Please use
19.'passdb backend = smbpasswd' if you would like to stick to the 'smbpasswd'
20.backend or convert your smbpasswd entries using& 'pdbedit -i smbpasswd -e
21.tdbsam'.
22.
23.The 'tdbsam' backend is much more flexible concerning per user settings
24.like 'profile path' or 'home directory' and there are some commands which do not
25.work with the 'smbpasswd' backend at all.
3.samba的一些说明
1)Samba配置文件
samba的配置文件是f,这个文件通常位于/etc/f 或 /usr/local/samba/f
你可以通过#testparm /etc/f命令来验证配置文件是否有错。
2)Samba密码文件
Samba-3默认使用tdbsam方式来存储密码,使用下面的命令来确认:
#grep passdb /etc/f
存储samba密码等敏感信息的tdb数据库文件位置默认是:/etc/samba/,可以通过下面的命令确认:
相关命令
1.# smbd -b | grep PRIVATE_DIR
2. PRIVATE_DIR: /etc/samba
3.
4.# smbd -b | grep PRIVATE_DIR #CentOS默认路径
5. SRCDIR: /builddir/build/BUILD/samba-3.0.28/source
6. BUILDDIR: /builddir/build/BUILD/samba-3.0.28/source
7. SBINDIR: /usr/sbin
8. BINDIR: /usr/bin
9. SWATDIR: /usr/share/swat
10. LIBDIR: /usr/lib/samba
11. LOCKDIR: /var/cache/samba
12. PIDDIR: /var/run
13. PRIVATE_DIR: /etc/samba
14.
15.# smbd -b|grep DIR #编译、安装、启动新版本后
16. SRCDIR: /usr/src/samba-3.4.3/source3
17. BUILDDIR: /usr/src/samba-3.4.3/source3
18. SBINDIR: /usr/local/samba/sbin
19. BINDIR: /usr/local/samba/bin
20. SWATDIR: /usr/local/samba/swat
21. LIBDIR: /usr/local/samba/lib
22. MODULESDIR: /usr/local/samba/lib
23. LOCKDIR: /usr/local/samba/var/locks
24. STATEDIR: /usr/local/samba/var/locks
25. CACHEDIR: /usr/local/samba/var/locks
26. PIDDIR: /usr/local/samba/var/locks
27. PRIVATE_DIR: /usr/local/samba/魔兽世界安装程序private
二、下载解压
下载新版Samba安装文件(这里以samba 3.4.3为例):/
相关命令
1.#rpm -q samba #确认当前samba版本
2.samba-3.0.33-3.14.el5
3.#cd /usr/src/
4.#wget /samba/ftp/stable/samba-3.4.
5.#tar -xvf samba-3.4.
6.#cd samba-3.4.3
三、编译安装
Samba 3.4.3目录中有source3和source4两个samba版本。source3为Samba稳定的3.4.3版本,source4为Samba 4预览版,目前还在测试中。
相关命令
1.#cd source3/
2.#./autogen.sh #自动生成适合当前系统的configure脚本
3.#./configure –help #获取可用的configure参数
4.#./configure --with-automount --with-quotas
5.#make
6.#make install
samba安装目录的相关参数,其它请参考./configure –help
相关参数
1.Installation directories:
2. --prefix=PREFIX install architecture-independent files in PREFIX
3. [/usr/local/samba]
4. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5. [PREFIX]
6.By default, `make install' will install all the files in `/usr/local/samba/bin', `/usr/local/samba/lib' etc. You can specify an installation prefix other than `/usr/local/samba' using `--prefix',for instance `--prefix=$HOME'.
7.
8.Fine tuning of the installation directories:
9. --bindir=DIR user executables [EPREFIX/bin]
10. --sbindir=DIR system admin executables [EPREFIX/sbin]
11. --libexecdir=DIR program executables [EPREFIX/libexec]
12. --datadir=DIR read-only architecture-independent data [PREFIX/share]
13. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
14. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
发布评论