我有一个小型 Linux 服务器(Debian Squeeze),它运行一个 Samba 服务器,该服务器配置为与一些 Windows 机器共享一些文件夹。在尝试从 Windows 中删除目录之一时,我收到“无法删除文件夹”错误。
我试图从 linux 的控制台中删除目录我得到了一个类似的错误:
# rm dir-name -rf
rm: cannot remove `dir-name': Directory not empty
Run Code Online (Sandbox Code Playgroud)
我列出了目录的内容并找到了一个名为 .fuse_hidden 的文件,后跟一个十六进制数 (000bd8c100000185)。
# ls -la dir-name
-rwxrwxrwx 1 root root 5120 Feb 13 11:46 .fuse_hidden000bd8c100000185
Run Code Online (Sandbox Code Playgroud)
我试图删除 .fuse_hidden 文件,但立即创建了一个新文件(注意十六进制数的变化)。
# rm dir-name/.fuse_hidden000bd8c100000185
# ls -la dir-name
-rwxrwxrwx 1 root root 5120 Feb 13 11:46 .fuse_hidden000bd8c100000186
Run Code Online (Sandbox Code Playgroud)
我也尝试使用 Midnight Commander 删除文件但没有成功。
到目前为止,我发现的其他解决方案涉及 GUI,而我只有控制台。
任何建议表示赞赏。
I have setup Samba in a Debian machine so that existing users in the linux server can connect to their homes and different shares using Windows.
user1, user2 and user3 can connect without problems, but user4 can't access any of the shares. user4 can log in perfectly using SSH.
Samba outputs the following upon failed connection attempts (using user4 credentials):
[2013/09/25 13:12:03.174008, 1] smbd/service.c:678(make_connection_snum)
create_connection_server_info failed: NT_STATUS_ACCESS_DENIED
Run Code Online (Sandbox Code Playgroud)
Samba outputs the following upon successful connection attempts (using user3 credentials at …