我正在尝试使用命令在 Ubuntu Server、Linux 4.15.0-162-generic #170-Ubuntu SMP 上设置目录
chown user:group
但是,我收到了类似的错误
chown: invalid spec: ‘2163147:’
此图显示了一些有空间的用户(这些用户不起作用)和其他没有空间的用户(他们工作正常)。
我已经使用 samba、sssd、krb5 设置了该服务器,并且安装了 Apache2 和 Nginx。
有人对这个问题有解决办法吗?
这是以下的输出testparm -s
:
/var/www/Students$ testparm -s
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
WARNING: The "syslog" option is deprecated
Processing section "[printers]"
Processing section "[print$]"
Processing section "[www$]"
Unknown parameter encountered: "security mask"
Ignoring unknown parameter "security mask"
Unknown parameter encountered: "force security mode"
Ignoring unknown parameter "force security mode"
Unknown parameter encountered: "directory security mask"
Ignoring unknown parameter "directory security mask"
Unknown parameter encountered: "force directory security mode"
Ignoring unknown parameter "force directory security mode"
Processing section "[StudentsCS$]"
Unknown parameter encountered: "security mask"
Ignoring unknown parameter "security mask"
Unknown parameter encountered: "force security mode"
Ignoring unknown parameter "force security mode"
Unknown parameter encountered: "directory security mask"
Ignoring unknown parameter "directory security mask"
Unknown parameter encountered: "force directory security mode"
Ignoring unknown parameter "force directory security mode"
Processing section "[Dvwa$]"
Unknown parameter encountered: "security mask"
Ignoring unknown parameter "security mask"
Unknown parameter encountered: "force security mode"
Ignoring unknown parameter "force security mode"
Unknown parameter encountered: "directory security mask"
Ignoring unknown parameter "directory security mask"
Unknown parameter encountered: "force directory security mode"
Ignoring unknown parameter "force directory security mode"
Loaded services file OK.
Server role: ROLE_STANDALONE
# Global parameters
[global]
client signing = if_required
dns proxy = No
kerberos method = secrets and keytab
log file = /var/log/samba/log.%m
map to guest = Bad User
max log size = 1000
obey pam restrictions = Yes
pam password change = Yes
panic action = /usr/share/samba/panic-action %d
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
passwd program = /usr/bin/passwd %u
security = USER
server role = standalone server
server string = %h server (Samba, Ubuntu)
syslog = 0
unix password sync = Yes
usershare allow guests = Yes
idmap config * : backend = tdb
[printers]
browseable = No
comment = All Printers
create mask = 0700
path = /var/spool/samba
printable = Yes
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
[www$]
create mask = 0770
directory mask = 02770
force create mode = 0770
force directory mode = 02770
guest ok = Yes
path = /var/www
read only = No
valid users = amcdonald
[StudentsCS$]
create mask = 0770
directory mask = 02770
force create mode = 0770
force directory mode = 02770
guest ok = Yes
inherit acls = Yes
inherit owner = windows and unix
inherit permissions = Yes
path = /var/www/Students/
read only = No
[Dvwa$]
create mask = 0770
directory mask = 02770
force create mode = 0770
force directory mode = 02770
guest ok = Yes
inherit acls = Yes
inherit owner = windows and unix
inherit permissions = Yes
path = /var/www/html/
read only = No