大网数据广告活动
服务器运维问答

smb.conf csc policy parameters

· 52CE 我爱测

I am administering a standalone user-authenticated Samba 4.3.11 server on Ubuntu 16.04, which is accessed by Windows 7 Pro and 10 Pro clients configured to cache offline files. The question is, what is the difference between the …

问题原文

原帖链接 · ebsf · CC BY-SA 4.0

I am administering a standalone user-authenticated Samba 4.3.11 server on Ubuntu 16.04, which is accessed by Windows 7 Pro and 10 Pro clients configured to cache offline files.

The question is, what is the difference between the following parameters for smb.conf:

(a) csc policy = manual [the default]

(b) csc policy = documents

(c) csc policy = programs

I haven't found anything distinguishing these parameters in two hours on Google. The smb.conf man page is cryptic, referencing Windows Server policies that no amount of research discerns corresponding concepts. The impression I have gleaned is that "manual" permits user-initiated (i.e., not automatic) file sync and that one or the other of "documents" or "programs" permits automatic file sync.

The Windows clients' Group Policy has been configured to sync at logon, logoff, and specified intervals but this does not occur, at least not obviously. Users can manually initiate syncs, however, consistent with my impression of the default setting.

Any thoughts on the distinctions among these parameters would be most welcome.

已采纳解答

原帖链接 · Andreas Rogge · CC BY-SA 4.0

There is not much documentation on this topic at all. I also noticed that clients sometimes ignore this policy.

One thing I noticed in the past: if you use roaming profiles you have to disable csc policy on that share or weird things will happen (profiles do not sync, strange error messages on the client during profile sync)

AFAICT these parameters just tell the client what to do and won't change the server's behaviour in any way other then telling the client what csc policy is set for this share.

There are four valid values for csc policy. I will try to describe what I understood these parameters do:

disabled

Disable client-side caching of resources on this share.

manual

Allow the client to decide settings for client-side caching of resources on this share.

documents and programs

Optimize the client-side caching for the use with documents or for the use of programs from this share.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2018-08-09)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。