From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id AM3mD9m8GWSc7gAASxT56A (envelope-from ) for ; Tue, 21 Mar 2023 15:19:05 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id mNaGD9m8GWR0ZQAAauVa8A (envelope-from ) for ; Tue, 21 Mar 2023 15:19:05 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 182B7106A3 for ; Tue, 21 Mar 2023 15:19:04 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pecp2-0007dQ-1W; Tue, 21 Mar 2023 10:18:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pecp0-0007Y3-In for help-guix@gnu.org; Tue, 21 Mar 2023 10:18:42 -0400 Received: from knopi.disroot.org ([178.21.23.139]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pecoy-00038d-QE for help-guix@gnu.org; Tue, 21 Mar 2023 10:18:42 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id B2FC844494; Tue, 21 Mar 2023 15:18:38 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id f6PhxdsJsbAr; Tue, 21 Mar 2023 15:18:37 +0100 (CET) References: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1679408317; bh=XsJirFotH1EytgsG6AaHIv8DVFq1gIihQvIj1HO6O40=; h=References:Date:From:To:Cc:Subject:In-reply-to; b=KJj5Tg8U7mt0AViqljuBUyqbPZXAl+y+93terAsaMh4dhAp53G4opHgKztAARVMtI DjoEWhGuQlPE2Xg1RZmfXaiH65o0oNoXTlyucrU/XmA8r77z1zz8gzt+qNWwJgZ61h cXsns4TFSK492PB4vOBM6oXPRLi72YxTXXdkRjVj0qAOr92ZaurJDp6G10kR8TWhqW rsHFMa7VTsUoofYtRFJxDhz4F0wY7mX21SS0nTiTmy4xfYJcAx7MEFLsY+dAei7H9w tl8F247+fJtIoz6fr1HnVugYQlIeIxgb98UuNN+iS2Lf6/ZBwMJ4jPhoGZ2T4VTqXl QowJwPsgtxAQg== Date: Tue, 21 Mar 2023 10:15:40 -0400 From: Gary Johnson To: c4droid Cc: help-guix@gnu.org Subject: Re: Setting link file permission in home-files-service-type In-reply-to: Message-ID: <87r0tixk5h.fsf@disroot.org> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=178.21.23.139; envelope-from=lambdatronic@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1679408345; a=rsa-sha256; cv=none; b=EIe5N9WTa1JL4yQnjJPQM1ilCpwX6NgV0tG0aZnOfOY53JSPedtPjUmSzkQpiKoGdD7od2 vkhLLCgMAcld7Iv9+I9y6RcTrvXa41VSTP4mgo4HDdr4EukN9y2ghOs+3LhpIQ1gK2AmSq SFn5d1rsSgZvU7dEJzmXchYTWsr4BoEbYEnnsjxqZgvKNIePzpS7jSsoXTgHWh+pw6LeuJ dEcym8JO9B/1g9He7NeBM5poTvOqwkK7x/8AB9k2Hmn3qCkm5DjOhtSGOq4wt66LjnMeRC eBJjwcnN414k1+LkEu+7f3zrcZsPj/FkqxGm1sIP9G+tbSuE9CeC+/pADwzQYA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=KJj5Tg8U; dmarc=pass (policy=reject) header.from=disroot.org; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1679408345; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=TnX/h3CjB2chd9/4Vlc5vRO57ut/0PzH0XW0kpOZUac=; b=u/1LHCHt+KnxnkiyXBPVrsarlgthpO4NIQ9VDyNDmgjTnzAMrhhq1Zq6y0cSHmEmYstM6x 7W07AaEa0ejo4nGS7k94ctn1MjQppOOzcarZvtxYL8GYzR4M5PQr1Tq02YeFLsbWWK7pHY dR/nrZ0yzVll2Kko7C1Da3VPMRNwdCTuflrWoZ8AfHa2H8gxn9+zsF1UR5M8t46ybsWjFj 7q1CPqysHikNUl2PPULzbYnujwMl8G11sQoTXbG9lBnbZ8gHthqvltGQeC/rvYAKvIhNnS KFgvsqQWGx2s9U7AF3PlXjSQQZmhXyG/BB84dZpqsEzwYZaZLVjKA2ldL5CoMQ== X-Migadu-Spam-Score: -6.46 X-Spam-Score: -6.46 X-Migadu-Queue-Id: 182B7106A3 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=KJj5Tg8U; dmarc=pass (policy=reject) header.from=disroot.org; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Scanner: scn1.migadu.com X-TUID: em1QRrUIjD+z c4droid writes: > I'm changing my mailing workflow from fetchmail + procmail + msmtp + > mutt to fdm + msmtp + mutt, configuration file is already prepared, the > fdm and msmtp configuration file need 600 permission, guix home > home-files-service-type give 644 default, have workaround for when > symlinking change permission for target file. > > My home.scm configuration cut: > ``` scheme > (home-environment > (services > (list > (service home-files-service-type > `((".fdm.conf" ,(local-file "dotfiles/fdm.conf")) > (".msmtprc" ,(local-file "dotfiles/msmtprc"))))))) > ``` As mentioned on another thread recently, you need to pass the `#:recursive? #t` option to `local-file` if you want to preserve your file permissions. ``` scheme (home-environment (services (list (service home-files-service-type `((".fdm.conf" ,(local-file "dotfiles/fdm.conf" #:recursive? #t)) (".msmtprc" ,(local-file "dotfiles/msmtprc" #:recursive? #t))))))) ``` Happy hacking! Gary -- Protect yourself from surveillance: https://emailselfdefense.fsf.org ======================================================================= () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments Why is HTML email a security nightmare? See https://useplaintext.email/ Please avoid sending me MS-Office attachments. See http://www.gnu.org/philosophy/no-word-attachments.html