Received: from hekla.abc.se (hekla.abc.se [158.174.61.227]) by gbr-app-1.alpinelinux.org (Postfix) with ESMTPS id 1F41E223652 for <~alpine/users@lists.alpinelinux.org>; Sun, 12 Oct 2025 11:49:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=default; bh=SDXMNAcSYU X1QqVvAhIjcnqN5WUjHsA5vM5dSmS1jTA=; h=in-reply-to:references:subject: cc:to:from:date; d=abc.se; b=lGKO3cEFc+aS0fleqVFjIKc8jWHGiL7y+ZsMu0urg 3T+DFOPrB2zm+i3JWXVL0jQGDgw8t4d/Nsc7vYvvFuh5w0EUwErllMmwgvJaYgYgMzIhte L58r/ez2Ed1sDO5v5Rg7heDnepd2qI7kd3xEtyzkV70iM/wzb18nv6Yk8/f06IxXIng69U b798HTn99jRy4A3aaK8TAijfMRmmjSA4EcIcOQMTJb5cRZKUv0ktUy3SOqY8yMd8bm/fKl WRfCcXHESGQnAuIDCwsNgFkAslkbYUEbGsMrkDiPJCTC00UfGgQgra2m35K28O+iw0MhEE LbWp/V9HogG14fFN6g86Q== Received: from eeyore.invalid (94-255-243-70.cust.bredband2.com [94.255.243.70]) by hekla.abc.se (OpenSMTPD) with ESMTPSA id 03dd0a25 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sun, 12 Oct 2025 13:49:31 +0200 (CEST) Date: Sun, 12 Oct 2025 13:49:30 +0200 From: Andreas =?utf-8?B?S8OkaMOkcmk=?= To: Wolfgang Klein Cc: ~alpine/users@lists.alpinelinux.org Subject: Re: ddclient: file ownership error Message-ID: Mail-Followup-To: Wolfgang Klein , ~alpine/users@lists.alpinelinux.org References: <33666daa-a206-49e4-96de-038d5eaa1108@web.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <33666daa-a206-49e4-96de-038d5eaa1108@web.de> On Sun, Oct 12, 2025 at 12:34:51PM +0200, Wolfgang Klein wrote: > Andreas Kähäri wrote: > > > I don't use ddclient, and know nothing about it, but if you started the > > tool as a user different from the ddclient user, it might be complaining > > about the fact that the file is not owned by the user you started it as > > (not actually the ddclient user). Try starting it as the ddclient user > > instead. > > > > sudo -u ddclient ddclient -daemon=0 -debug -verbose -noquiet > > > > ... or something like that. > > > > If I'm barking up the wrong tree, please ignore me. :) > > > > > > > No, it might turn out to be the right tree, but with some obstacles around > it: since "sudo" is not installed, I tried > > su - ddclient -c "ddclient -daemon=0 -debug -verbose -noquiet" > > and was told, the account is not available. So I changed the shell for user > ddclient from /sbin/nologin to /bin/bash. After that: no more complaining > about ownership, but also no output whatsoever! Just a quiet cursor quietly > entering a new line, that's all. And of course no action is done either. > > So, how to make ddclient work on Alpine? Right now I have no idea. :( > > > > You should not change the shell for the ddclient user. The fact that the shell is /sbin/nologin means that the user is not supposed to log in (interactively). It's a security measure. If you have neither "sudo" nor "doas", you can use "su" to run the command as the ddclient user via the root account: su -c 'su -p ddclient -c "ddclient -debug -verbose"' Or, if you are already root: su -p ddclient -c 'ddclient -debug -verbose' The "-p" avoids invoking the user's nologin shell. Even if I was familiar with the software, it would probably be very difficult to help you without knowing anything about your configuration. Glancing at the documentation (https://ddclient.net/), it seems like the "-daemon=0" and "-noquiet" are set by default, so it's not clear why you need to set them explicitly. The rest of the configuration is read from the configuration file, and you haven't shown us that file (if you post it, ensure to redact any sensitive information, like passwords and usernames). -- Matti Andreas Kähäri Uppsala, Sweden .