我们为共享驱动器设置了Samba。我已粘贴下面的smb.conf文件。当我们尝试使用Windows Vista运行EXE文件时,一切都运行良好。当我们运行EXE文件时,它首先要求UAC控制,然后弹出用户名和密码提示。然后,您必须再次输入用户名和密码才能运行。
我认为问题是UAC现在在Admin下运行应用程序而不是登录用户。因此管理员用户看不到缓存的第一个用户名和密码。有谁知道这方面的工作?
smb.conf: [global] passdb backend = tdbsam security = user encrypt passwords = yes preferred master = Yes workgroup = Workgroup netbios name = Omni bind interfaces only = True interfaces = lo eth2 ;max disk size = 990000 ;some programs (like PS7) can't deal with more than 1TB socket options = TCP_NODELAY server string = Omni ;smb ports = 139 debuglevel = 1 syslog = 0 log level = 2 log file = /var/log/samba/%U.log max log size = 61440 vfs objects = omnidrive recycle recycle:repository = RecycleBin/%U recycle:keeptree = Yes recycle:touch = No recycle:versions = Yes recycle:maxsize = 0 recycle:exclude = *.temp *.mp3 *.cat omnidrive:log = 2 omnidrive:com_log = 1 omnidrive:vscan = 1 omnidrive:versioningState = 1 omnidrive:versioningMaxFileSize = 0 omnidrive:versioningMaxRevSize = 7168 omnidrive:versioningMaxRevNum = 1000 omnidrive:versioningMinRevNum = 0 omnidrive:versioningfilesInclude = /*.doc/*.docx/*.xls/*.xlsx/*.txt/*.bmp/ omnidrive:versioningfilesExclude = /*.tmp/*.temp/*.exe/*.com/*.jarr/*.bat/.*/ full_audit:failure = none full_audit:success = mkdir rename unlink rmdir write open close full_audit:prefix = %u|%I|%m|%S full_audit:priority = NOTICE full_audit:facility = LOCAL6 ;dont descend = RecycleBin veto files = /.subversion/*.do/*.do/*.bar/*.cat/ client ntlmv2 auth = yes [netlogon] path = /var/lib/samba/netlogon read only = yes [homes] read only = yes browseable = no [share1] path = /share1 read only = no browseable = yes writable = yes admin users = clinton1 public = no create mask = 0770 directory mask = 0770 nt acl support = no ;acl map full control = no hide unreadable = yes store dos attributes = yes map archive = no map readonly = Permissions
答案 0 :(得分:1)
如果有人关心;这是我修复vista问题的方法:
我设置了一个密钥来链接UAC帐户和无UAC帐户。
HKEY_LOCAL_MACHINE \ SOFTWARE \微软\的Windows \ CurrentVersion \政策\系统 EnableLinkedConnections =(dword)1
密码提示消失。
答案 1 :(得分:0)
我认为您也可以通过在Vista或Windows 7中关闭UAC来解决此问题。以下是执行此操作的链接:Turn User Account Control on or off