AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题

问题[netatalk](server)

Martin Hope
Mike
Asked: 2020-04-04 13:39:01 +0800 CST

Time Machine 的 Samba4 问题:无法在 Samba 共享上创建新备份

  • 2

注意:最初发布在 StackExchange 上。我不确定哪个位置更合适,如果重复导致问题,我深表歉意。

TL;DR:Time Machine 无法在我的共享驱动器上创建新备份,但可以添加到现有备份。

我正在运行 macOS Catalina,我的 Time Machine 使用 NetAtalk 和 Avahi 备份到 Debian 10 服务器。由于 Mavericks macOS 更喜欢 SMB,并且考虑到 SMB 稍微快一些,我决定改用 SMB 来获取 Time Machine 共享。在新的 AFP 共享上,我可以在“系统偏好设置”中启动新的 Time Machine 备份,它会创建一个新的 .sparseimage,而不会抱怨。

如果我使用完全相同的目录 (/usr/local/smb)、相同的权限等,并创建一个 samba 共享,当 Time Machine 尝试创建新备份时,它会给出错误:“Time Machine 无法完成备份到 SERVER.local。无法创建备份磁盘映像。”

如果我首先使用 AFP 连接到共享并进行初始备份,然后我可以连接 SMB 并添加后续增量备份而不会出错。我认为可能是权限问题,但出于调试目的,我将 /usr/local/smb 设置为 0777 并且仍然出现错误。

ls -la显示共享点的权限:

drwxrwxrwx  5 root smbusers 4096 Apr  3 12:35 smb

我在日志中发现以下可能有用的错误:

Failed to create '/Volumes/.timemachine/SERVER._smb._tcp.local/DDE06691-7411-41DD-8419-24FEFC21CE29/TimeMachine Set A - SMB/8E394711-7E3F-520B-800C-192D4F680177.sparsebundle', results: {
}, error: 13 Permission denied

afp.conf:

[Global]
; Global server settings
vol preset = default_for_all
log file = /var/log/netatalk.log
uam list = uams_dhx2.so,uams_clrtxt.so
save password = no

[default_for_all]
file perm = 0664
directory perm = 0774
cnid scheme = dbd

[Time Machine Set A - AFP]
path = /usr/local/smb
time machine = yes
vol size limit = 4000000

我正在使用这个 GitHub 中建议的一些 smb.conf 选项:https ://gist.github.com/ChloeTigre/4c2022c0d1a281deedba6f7539a2e3ae

smb.conf:

[global]

## Browsing/Identification ###

# Change this to the workgroup/NT-domain name your Samba server will part of
   workgroup = WORKGROUP
   wins support = yes

#### Debugging/Accounting ####

# This tells Samba to use a separate log file for each machine
# that connects
   log file = /var/log/samba/log.%m

# Cap the size of the individual log files (in KiB).
   max log size = 1000

# We want Samba to only log to /var/log/samba/log.{smbd,nmbd}.
# Append syslog@1 if you want important messages to be sent to syslog too.
   logging = file

# Do something sensible when Samba crashes: mail the admin a backtrace
   panic action = /usr/share/samba/panic-action %d

###MacOS compatability stuff
guest account = smbguest
min protocol = SMB2
map acl inherit = yes
vfs objects = catia fruit streams_xattr  
fruit:metadata = netatalk
fruit:model = MacSamba
fruit:posix_rename = yes 
fruit:veto_appledouble = yes

durable handles = yes
kernel oplocks = no
kernel share modes =no
posix locking = no
smb2 leases = yes


#Turned off for testing compatability
#fruit:wipe_intentionally_left_blank_rfork = yes 
#fruit:delete_empty_adfiles = yes 

####### Authentication #######

# Server role. Defines in which mode Samba will operate. Possible
# values are "standalone server", "member server", "classic primary
# domain controller", "classic backup domain controller", "active
# directory domain controller". 
#
# Most people will want "standalone server" or "member server".
# Running as "active directory domain controller" will require first
# running "samba-tool domain provision" to wipe databases and create a
# new domain.
   server role = standalone server

   obey pam restrictions = yes

# This boolean parameter controls whether Samba attempts to sync the Unix
# password with the SMB password when the encrypted SMB password in the
# passdb is changed.
   unix password sync = yes

# For Unix password sync to work on a Debian GNU/Linux system, the following
# parameters must be set (thanks to Ian Kahan <<[email protected]> for
# sending the correct chat script for the passwd program in Debian Sarge).
   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .

# This boolean controls whether PAM will be used for password changes
# when requested by an SMB client instead of the program listed in
# 'passwd program'. The default is 'no'.
   pam password change = yes

# This option controls how unsuccessful authentication attempts are mapped
# to anonymous connections
   map to guest = bad user

######Security#######
security = user
valid users = @smbusers
username map = /etc/samba/users.map
guest ok = no

# Allow users who've been granted usershare privileges to create
# public shares, not just authenticated ones
   usershare allow guests = yes

#======================= Share Definitions =======================

[TimeMachine Set A - SMB]
path = /usr/local/smb
comment = SMB Time Machine Destination Set A
browsable = yes
writeable = yes
create mode = 0664     #tried turning this off, no fix
directory mode = 0777  #tried turning this off, no fix
vfs objects = catia fruit streams_xattr
fruit:aapl = yes
fruit:time machine = yes
#guest ok = yes
fruit:time machine max size = 3.9T  #tried turning this off, no fix
inherit acls = yes
debian samba time-machine netatalk samba4
  • 2 个回答
  • 6498 Views
Martin Hope
Gewürzwiesel
Asked: 2013-12-14 01:37:23 +0800 CST

Netatalk Spotlight 索引挂起

  • 1

我已经设置了一个 Netatalk 服务器,但我一直在配置聚光灯搜索。服务器是 ubuntu 12.04 LTS,我已经安装了索引所需的跟踪器和矿工。根据 netatalk wiki 上的指南(此处),无需进一步配置。我不得不摆弄 dbus 会话,但跟踪器可以工作。相反,矿工没有。

现在进行一些控制台输出。跟踪器本身似乎工作:

# tracker-control 
Found 174 PIDs…
Prozesskennung 2765 für »tracker-store« gefunden
Prozesskennung 2786 für »tracker-miner-fs« gefunden

Speichern:
13 Dez 2013, 10:03:28:  ✓     Store                      - Leerlauf 

Indizierer:
13 Dez 2013, 10:03:28:    0%  Dateisystem                - Initialisierung 
13 Dez 2013, 10:03:28:  ✓     Anwendungen                - Leerlauf 
13 Dez 2013, 10:03:28:  ✗     E-Mails                    - Läuft nicht oder Plugin ist deaktiviert

对不起这里的德国人,但它基本上说,跟踪器找到了矿工,文件系统矿工正在初始化。跟随带有选项 -F 的跟踪器状态显示没有活动,除了我的应用程序目录已被爬网。

strace 显示如下:

# strace -p 12043
Process 12043 attached - interrupt to quit
restart_syscall(<... resuming interrupted call ...>

现在来自 tracker-miner-fs 的日志:pastebin

您会看到,应用程序目录已按应有的方式进行爬网,但完成后,它会停止。

任何帮助都会很棒

netatalk
  • 1 个回答
  • 1210 Views
Martin Hope
Philip
Asked: 2012-06-09 01:45:23 +0800 CST

带有 Netatalk 和 Samba TimeMachine 的 Ubuntu 无法连接

  • 0

几周前,我在我的 Ubuntu 服务器上安装了 netatalk 并对其进行了配置,以便我可以使用我的 Mac 上的 Timemachine 在服务器上进行备份,而不是在外部硬盘驱动器上进行备份。

直到昨天,当我安装 Samba 以便能够将我服务器上的某些文件夹共享到我的 mac 时,它一直运行良好。

现在我收到一条错误消息:

There are no shares available or you are not allowed to access them on the server. Please contact your system administrator to resolve the problem.

据我了解,问题出在服务器上,而不是在我的 Mac 上。我试图重新启动计算机,但没有添加 Samba 共享的任何文件夹,而是添加了时间机器“afp://...@...”。

同时运行它们是否有问题,我是否需要配置 samba 以便它不拒绝 afp?

我对此很陌生......

samba time-machine netatalk ubuntu-10.04
  • 1 个回答
  • 3014 Views
Martin Hope
EduAlm
Asked: 2010-04-15 11:35:43 +0800 CST

apt-get 因包损坏而出错

  • 1

每次我在服务器上运行 apt-get install 或 update 时,都会出现以下错误:

(可能不完全是因为我是从葡萄牙语翻译过来的)

An error was found when processing: netatalk
E: Sub-process /usr/bin/dpkg returned an error code (1)

我不想安装那个包。当我尝试安装该软件包时出现此错误,该软件包无法安装,并且不会消失。这并不妨碍我安装其他软件包。它安装它们,最后只给出这个错误。

ubuntu apt netatalk
  • 2 个回答
  • 3289 Views
Martin Hope
MalphasWats
Asked: 2010-02-14 02:00:56 +0800 CST

从 Mac OS X 连接到 Ubuntu 文件共享

  • 2

我的网络上运行着一个无头 Ubuntu 服务器。最初我已经为 SAMBA 配置了它以与我的 Windows 机器一起使用,这似乎工作正常。我刚买了一台 Mac 并试图访问服务器 - 它出现在 Finder 中,我没有做任何事情,但是当我登录时,我看不到任何文件或写入它或任何东西。

我尝试运行本教程来设置 netatalk 和 avahi,但它在第一步失败 - 我无法获取源文件,因为我收到一个错误:

Package libcupsys2-dev is a virtual package provided by:
  libcups2-dev 1.4.2-8
You should explicitly select one to install.
E: Package libcupsys2-dev has no installation candidate
E: Failed to satisfy Build-Depends dependency for netatalk: libcupsys2-dev

我不知道下一步该做什么。我尝试使用 repos 中的基本版本完成这些步骤,这让我可以到达 Finder 中出现的服务器,但是当我尝试登录时,我只是收到一个无效的用户名/密码错误(我已经尝试过了)很多时候我确信我选对了!)

有没有人有任何关于设置 Ubuntu 服务器的提示,以便我可以在我的 Mac 上使用它?

对于赏金:我希望通过 Bonjour 广播服务器,以便我可以在 finder 中看到它,如果可能的话,我希望可以将其设置为 TimeMachine 备份。

谢谢

ubuntu mac-osx samba netatalk
  • 4 个回答
  • 6275 Views
Martin Hope
bobinabottle
Asked: 2009-07-23 03:47:01 +0800 CST

Mac OS X 客户端无法在 debian 服务器上通过 samba 或 netatalk 看到扩展 ACL

  • 2

我已经为我公司的中央文件存储库设置了一个 debian 盒子来替代旧的 Windows 服务器。我正在使用启用 acl 的 ext3 文件系统。

我们需要能够使用扩展的访问控制列表来控制用户对文件的访问,windows 用户识别 acl 的设置就好了。

Mac OS X 客户端(运行 leopard 10.5)将无法通过 samba 或 netatalk 看到扩展 ACL,并且我遇到权限错误。

有人可以推荐一种解决方法吗?如何让 Mac OS X 识别 Linux 上的扩展 ACL?如果需要,我很乐意从 debian 更改为其他东西,只要它是免费的 ;-)

linux debian mac-osx samba netatalk
  • 2 个回答
  • 3345 Views
Martin Hope
jkp
Asked: 2009-05-01 06:16:46 +0800 CST

有人能告诉我如何在没有 TimeCapsule 的情况下使用 TimeMachine 通过网络可靠地备份吗?

  • 7

我有一个巨大的服务器(运行 Ubuntu Linux),它有一个 2TB 的 raid 坐在那里只是乞求我备份到它。

我运行 netatalk 以通过 AFP 协议与我的 Mac 共享(我所有的客户端机器几乎都是 Mac),并设置了 timemachine 以使用服务器上的共享驱动器作为其目的地。

唯一的麻烦是它似乎完全不可靠。我经常遇到 TimeMachine 由于某种原因无法完成备份的问题,有时它似乎会使整个服务器停机(我知道这是一个软件而不是硬件问题,因为服务器实际上是在 KVM 和 KVM 主机下运行的 Ubuntu一直在运行)。

所以问题是有没有人成功地尝试过这样做?有谁知道任何问题?有没有更好的方法来解决这个问题?我知道它有点含糊,但我想知道其他用户是否有经验可以分享。

backup mac-osx afp time-machine netatalk
  • 7 个回答
  • 1172 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve