在linux 上通过mount -t cifs(替换了原来的samba)的方法共享windows上的目录时, 如果需要设置用户名密码, 能否mount成功, 可能取决于netlogon服务是否开启, windows上该服务的描述是
Maintains a secure channel between this computer and the domain
controller
for authenticating users and services. If this service is
stopped,
the computer may not authenticate users and services and the
domain
controller cannot register DNS records. If this service is
disabled,
any services that explicitly depend on it will fail to start.
而mount 失败时给的错误信息, 是我见过错误信息中质量非常高的, 非常准确并且能提供直接帮助:
注意到了NT_STATUS_NETLOGON_NOT_START 吗. 这也是编程时名字起的合适能起到多大效用的一个实证.
阅读(2396) | 评论(0) | 转发(0) |