正确的权限,无法移动文件

正确的权限,无法移动文件

在 Ubuntu 19.04 上运行 Samba4。尝试复制此文件:

-rwxrwxrwx+ 1 root company 49K Jul 15 10:00 FileToMove.DOCX

到此文件夹:

drwxrwsrwx+ 2 root company 4.0K Jul 12 13:52 TargetFolder

无论操作系统是什么,尝试制作此副本都会出现权限定义错误。我不知道问题出在哪里。位于Target Folder以下共享中:

[Client-Billing] path= /server/Client-Billing/ writeable = yes guest ok = no valid users = @company force group = company

全局部分如下所示:

[global] workgroup = PREMPROVSOL server string = %h server (Samba, Ubuntu) interfaces = 127.0.0.0/8 10.0.10.0/24 bind interfaces only = yes log file = /var/log/samba/log.%m max log size = 1000 logging = file panic action = /usr/share/samba/panic-action %d server role = standalone server obey pam restrictions = yes unix password sync = yes passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* . pam password change = yes map to guest = bad user unix charset = UTF-8 dos charset = CP932 create mask = 0777 directory mask = 2777 force create mode = 0777 force directory mode = 2777

有什么建议么?

*编辑 * 文件夹上的 getfacl 返回以下结果:

Removing leading '/' from absolute path names
# file: server/Client-Billing/TargetFolder
# owner: theuser
# group: company
# flags: -s-
user::rwx
user:root:rwx
user:777:rwx
user:3000042:rwx
group::r-x
group:root:r-x
group:3000042:rwx
mask::rwx
other::rwx
default:user::rwx
default:user:root:rwx
default:user:777:rwx
default:user:3000042:rwx
default:group::r-x
default:group:root:r-x
default:group:3000042:rwx
default:mask::rwx
default:other::---

我觉得 UID 和 GID 有点奇怪。这些数字是从哪里来的?

相关内容