我正在尝试使用我的 Windows 10 机器获取对我的 Minecraft 服务器的写入权限。目前我只有读取权限。我正在使用 Ubuntu 22.04 服务器。这是我当前的 smb.conf:
[minecraft-files]
comment = user Samba Share
path = /home/user/mc-files
read only = no
browsable = yes
writeable = yes
create mask = 0664
directory mask = 0775
权限(请注意,我的用户名是“用户”)
drwx------ 11 user user 4096 Jun 18 06:31 mc-files
输出testparm -s
:
Loaded services file OK.
Weak crypto is allowed
Server role: ROLE_STANDALONE
[global]
log file = /var/log/samba/log.%m
logging = file
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
server role = standalone server
server string = %h server (Samba, Ubuntu)
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
[server-storage]
comment = user Samba Share
path = /home/user/server-storage
read only = No
[minecraft-files]
comment = user Samba Share
create mask = 0664
directory mask = 0775
path = /home/user/mc-files
read only = No
输出ls -al /home/user/mc-files
:
drwxrwxrwx+ 9 user user 4096 Jun 18 07:03 ..
-rw-r--r-- 1 9001 9001 2 Jun 18 06:33 banned-ips.json
-rw-r--r-- 1 9001 9001 2 Jun 18 06:33 banned-players.json
-rw-r--r-- 1 9001 9001 697 Jun 18 06:33 bukkit.yml
drwxr-xr-x 2 9001 9001 4096 Jun 13 01:36 cache
-rw-r--r-- 1 9001 9001 104 Jun 18 06:33 commands.yml
drwxr-xr-x 2 9001 9001 4096 Jun 18 06:33 config
-rw-r--r-- 1 9001 9001 158 Jun 13 01:36 eula.txt
-rw-r--r-- 1 9001 9001 0 Jun 13 01:36 help.yml
drwxr-xr-x 11 9001 9001 4096 Jun 13 01:36 libraries
drwxr-xr-x 2 9001 9001 4096 Jun 18 06:32 logs
(还有更多,但这应该足够了)
我把权限设置为700,因为我之前设置成777,后来我发现777不好。
我需要更改配置文件中的任何权限或其他内容才能在 Windows 10 上获得读写访问权限?
我曾经看过与这个问题类似的问题,但是那些都是非常古老的问题,而且存在于不同版本的 ubuntu 中。