Some samba skills and troubleshooting methods

Source: Internet
Author: User
Some samba skills and troubleshooting methods-Linux Enterprise Application-Linux server application information. The following is a detailed description. 1. Set disable spoolss = yes

"Printer" can be hidden"

Ii. When Windows switches off all shared files and directories
Enter net use */delete/y in cmd Mode
You can log on to samba as another user without logging off.

3. Make samba server case insensitive

Use it in the configuration file smb. conf

Short preserve case = yes

Preserve case = yes

4. the prompt "save copy" or "Overwrite change" appears when creating an excel table in samba.

Solution

1. Click Start, click Run, type regedit in the open box, and press ENTER.
2. Locate and click the following registry key: HKEY_CURRENT_USER \ SOFTWARE \ Microsoft \ Office \ 10.0 \ Excel \ Options
3. On the "edit" menu, point to "new" and click "double byte value" (REG_DWORD ).
4. Type QFE_Saskatchewan as the name and press ENTER.
5. Right-click the QFE_Saskatchewan item and click Modify ".
6. in the "value" box, type 2 so that Excel will always refresh the File Cache before obtaining the timestamp (The problem should be solved in most cases ), alternatively, type 1 to disable timestamp check in Excel (not recommended) and deselect this dialog box in all cases. Click OK to save the setting.
7. Restart Excel to make this setting take effect for this user

5. They are high people! In Linux, you need to change the password of the user corresponding to smbpasswd:
(I encountered this password synchronization problem when using LFS. I don't know if other releases have this problem)
# For samba passwd sync
Password sufficient pam_smbpass.so audit use_first_pass
Add this line to the/etc/pam. d/passwd file. After passwd is executed, the user's SMB User password will be changed.

6. Symptoms
If you open a network folder in Windows resource manager, and then try to open the file from the folder or save the file to the folder, the associated program may report a shared conflict, return an "access denied" message, or open the document in read-only mode. This problem usually occurs when you open a network folder and double-click to open a Microsoft Word or Microsoft Excel file. The document is read-only.


To solve this problem, perform the following operations:
1. In Windows Resource Manager, open a network folder containing the files you want to open or save.
2. Click Folder Options on the Tools menu ".
3. Click "use Windows traditional style Folders", and then click "OK ".
For test purposes, you can rename the following registry key. This prevents Shell programs from opening files and extracting optional column information. This registry key is no longer used:
HKEY_CLASSES_ROOT \ Folder \ Shellex \ ColumnHandlers \ {24f14f01-7b1c-11d1-838f-440f80461cf}
Use the following registry key:
HKEY_CLASSES_ROOT \ Folder \ Shellex \ ColumnHandlers \ {24f14f01-7b1c-11d1-838f-440f80461cf}-disable

But some WINXP still have this problem.
Therefore, we recommend that you upgrade samba to samba-3.0.24 because samba-3.0.24 has fixed this bug.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.