This article discusses the scope of the problem that samba encounters during use.
Question 1: In Win2000 Client, use Chinese to do filename, to Linux command line, become garbled how to solve?
Workaround: It is possible that Unicode is not supported on the command line, and for general purposes, forcing Samba to use GB2312 can be added in the [Global] section: Unix charset = GB2312: The best setting is GBK, otherwise some characters will cause problems, causing roaming accounts to be unavailable.
Problem 2: In the shared directory settings can be used to do annotations, but the comment in the win client look at the garbled, how to solve?
Workaround: In the [Global] section, add a row: Display charset = GB2312 on it, requiring samba to be more than 3.0.
Question 3: How do I open shared resources to Anonymous (guest) users?
Workaround: In the [Global] section, add a row: Map to Guest = Bad user and then add 2 lines to the corresponding shared Resources section: Guest account = Nobody guest OK = Yes so all users who do not have a corresponding password , when accessing this shared resource, its corresponding user is nobody.
Problem 4: In some Win2000 machines can not modify the domain account password, samba log hint check_oem_password:incorrect password length (-312332314).
Workaround: Uninstall Win2K hotfix patch: KB828741 or download updates to the current latest version of samba3.04.
Question 5: Originally used is the release of the packaged samba, now to download the latest version of the source code compiled installation, how to keep the original settings?
Solution: First stop the original samba service:
/etc/init.d/smb stop
Back up the original domain account data to:
/root/anheng.backup: pdbedit -e smbpasswd:/root/anheng.backup
To compile and install the new samba:
./configure --prefix=/usr/local/samba
--enable-cups --with-smbmount --with-acl-support make make install
So the new Samba is installed in:
/usr/local/samba了smb.conf
Put in the:
/usr/local/samba/lib/smb.conf
Copy the old smb.conf to the above directory:
cp /etc/samba/smb.conf /usr/local/samba/lib/smb.conf
To determine if there is a problem with the Testparm test settings file, specify an absolute path:
/usr/local/samba/bin/testparm
If the direct execution of Testparm, the execution will be the old version of Samba Testparm generally will not be a problem, I have encountered a problem here is that the passwd program did not find, the smb.conf bank passwd programs = passwd%u passwd program =/usr/bin/passwd%u Finally, modify the startup script,/etc/init.d/smb the NMBD and SMBD in front of the add absolute path/usr/local/samba/sbin on the full installation completed. Before starting, restore domain account: pdbedit-i smbpasswd:/root/anheng.backup and then you can start the/ETC/INIT.D/SMB after the start of the new installation, Because the program and settings file is inconsistent with the original distribution of Linux directory location, if you use Webmin for management, you need to reset the Webmin inside the Samba module configuration information.