unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Nathan Dehnel <ncdehnel@gmail.com>
To: help-guix@gnu.org
Subject: How to put a file in /gnu/store and set its permissions
Date: Sat, 4 Dec 2021 16:47:12 -0600	[thread overview]
Message-ID: <CAEEhgEs9E8ZMZtYR3RhYSDQDfTCoX4eFECFGbWw-G7ruyUOS3w@mail.gmail.com> (raw)

https://guix.gnu.org/manual/en/html_node/G_002dExpressions.html
This says to set #:recursive? #t and guix will preserve its
permissions in the store. I have done this:

(define guixrig_host_rsa_key
    (local-file "ssh/guixrig_host_rsa_key" #:recursive? #t))

The file this expression puts in the store has permissions of 444,
despite the original being 400. How do I prevent guix from changing
permissions, or manually override them?


             reply	other threads:[~2021-12-04 22:47 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-04 22:47 Nathan Dehnel [this message]
2021-12-05  5:12 ` How to put a file in /gnu/store and set its permissions Leo Famulari
2021-12-05 21:18   ` Nathan Dehnel
2021-12-06  2:30     ` Gary Johnson
2021-12-08  0:59       ` Nathan Dehnel
2021-12-08  6:02         ` Arun Isaac
2021-12-08 16:26         ` Gary Johnson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAEEhgEs9E8ZMZtYR3RhYSDQDfTCoX4eFECFGbWw-G7ruyUOS3w@mail.gmail.com \
    --to=ncdehnel@gmail.com \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).