Macos samba不允许强制用户
我正在Debian Wheezy上使用Samba 3.6.6 我希望能够使用macbook更改开发服务器上的www文件。 因此,我设置了samba并为/var/www目录进行了共享 我将用户bart和root添加到samba以进行连接。并使用命令K连接,然后smb://192.168.2.100 (我的samba服务器) 由于apache使用www数据作为www文件的用户和组,因此我在samba中使用force user和force group来防止权限错误 但是,它确实强制组www数据,但不强制用户。我创建的每个文件都归组www数据中的root所有 为了查找错误,我跟踪了/var/log/samba中的日志,在重新启动samba服务时只在log.smbd中发现了一个错误。请参见此处的日志:Macos samba不允许强制用户,macos,debian,samba,Macos,Debian,Samba,我正在Debian Wheezy上使用Samba 3.6.6 我希望能够使用macbook更改开发服务器上的www文件。 因此,我设置了samba并为/var/www目录进行了共享 我将用户bart和root添加到samba以进行连接。并使用命令K连接,然后smb://192.168.2.100 (我的samba服务器) 由于apache使用www数据作为www文件的用户和组,因此我在samba中使用force user和force group来防止权限错误 但是,它确实强制组www数据,但不强
smbd version 3.6.6 started.
Copyright Andrew Tridgell and the Samba Team 1992-2011
[2013/09/23 11:14:22.601031, 0] printing/print_cups.c:110(cups_connect)
Unable to connect to CUPS server localhost:631 - Connection refused
[2013/09/23 11:14:22.602215, 0] printing/print_cups.c:487(cups_async_callback)
failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
这是我的smb.conf:
[global]
server string = %h server
map to guest = Bad User
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
usershare allow guests = Yes
panic action = /usr/share/samba/panic-action %d
idmap config * : backend = tdb
[homes]
comment = Home Directories
valid users = %S
create mask = 0700
directory mask = 0700
browseable = No
[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
printable = Yes
print ok = Yes
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
[www]
comment = www
path = /var/www/
valid users = bart, root
admin users = bart, root
write list = bart, root
force user = www-data
force group = www-data
read only = No
我甚至尝试将www数据添加到有效用户、管理员用户和写入列表中。这当然没有任何效果
你能帮我吗?提前谢谢 在别人的帮助下,他说: “我认为在这种情况下,选项admin users会覆盖选项force user。”
我删除了管理员用户,我的问题解决了 告诉我为什么要投票否决它?