From: Josua Stingelin <josuast@hotmail.com>
To: guix-devel@gnu.org
Subject: Changing permissions of files created with simple-service etc-service-type
Date: Fri, 11 Feb 2022 12:25:23 +0100 [thread overview]
Message-ID: <DB9PR06MB76571332BB16351FEE980C66AA309@DB9PR06MB7657.eurprd06.prod.outlook.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1047 bytes --]
Hei Guix!
I've been a long time follower of your distribution. In my humble opinion guix
has the most promising configuration system out there!
I'm trying to set up a guix configuration for my laptop. After playing around
with it for a while I figured now is a great time to get some help.
How do I change the permissions of a configuration file?
For example I'm used to running wpa_supplicant with a configuration file that
I'm copying from machine to machine to keep connected to all my favorite
wireless networks.
I'm using the etc-service-type of the simple-service to copy the file. Which
works great. But sadly grants read-access to everyone. I'd prefer it only be
readable by root.
(simple-service 'wpasupplicantconf-service
etc-service-type
`(("wpa_supplicant.conf",
(local-file "wpa_supplicant.conf"))))
$ ls -l /etc/wpa_supplicant.conf
-r--r--r-- 1 root root 2.3K Feb 11 11:39 /etc/wpa_supplicant.conf
How can I achieve that?
Kind Regards,
Josua a.k.a Joshua/Josh
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next reply other threads:[~2022-02-11 11:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-11 11:25 Josua Stingelin [this message]
2022-02-14 21:48 ` Changing permissions of files created with simple-service etc-service-type Ludovic Courtès
2022-02-16 15:41 ` Josua Stingelin
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DB9PR06MB76571332BB16351FEE980C66AA309@DB9PR06MB7657.eurprd06.prod.outlook.com \
--to=josuast@hotmail.com \
--cc=guix-devel@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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.