* Attempting to Authorize Substitutes : Permission denied Issue
@ 2016-01-17 3:43 Marc Dunivan
2016-01-17 4:14 ` carl hansen
0 siblings, 1 reply; 3+ messages in thread
From: Marc Dunivan @ 2016-01-17 3:43 UTC (permalink / raw)
To: help-guix@gnu.org
[-- Attachment #1: Type: text/plain, Size: 859 bytes --]
Following the instructions here for a binary installation on top of a GNU\Linux system I get "Permission denied" when I attempt to authorize substitutes. What permissions should hydra.gnu.org.pub have? How can i correct this issue?
https://www.gnu.org/software/guix/manual/guix.html#Installation
7.To use substitutes from hydra.gnu.org (see Substitutes), authorize them:
# guix archive --authorize < ~root/.guix-profile/share/guix/hydra.gnu.org.pub
This is what happens to me:
[term ~]$ guix archive --authorize < ~root/.guix-profile/share/guix/hydra.gnu.org.pub
bash: /root/.guix-profile/share/guix/hydra.gnu.org.pub: Permission denied
The same thing happens with sudo:
[term ~]$ sudo guix archive --authorize < ~root/.guix-profile/share/guix/hydra.gnu.org.pub
bash: /root/.guix-profile/share/guix/hydra.gnu.org.pub: Permission denied
Respectfully,
Marc
[-- Attachment #2: Type: text/html, Size: 5679 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Attempting to Authorize Substitutes : Permission denied Issue
2016-01-17 3:43 Attempting to Authorize Substitutes : Permission denied Issue Marc Dunivan
@ 2016-01-17 4:14 ` carl hansen
2016-01-17 16:17 ` Marc Dunivan
0 siblings, 1 reply; 3+ messages in thread
From: carl hansen @ 2016-01-17 4:14 UTC (permalink / raw)
To: Marc Dunivan; +Cc: help-guix@gnu.org
[-- Attachment #1: Type: text/plain, Size: 1139 bytes --]
On Sat, Jan 16, 2016 at 7:43 PM, Marc Dunivan <m971668@protonmail.com>
wrote:
>
> Following the instructions here for a binary installation on top of a
> GNU\Linux system I get "Permission denied" when I attempt to authorize
> substitutes. What permissions should hydra.gnu.org.pub have? How can i
> correct this issue?
> https://www.gnu.org/software/guix/manual/guix.html#Installation
>
> 7.To use substitutes from hydra.gnu.org (see Substitutes), authorize them:
> # guix archive --authorize <
> ~root/.guix-profile/share/guix/hydra.gnu.org.pub
>
> This is what happens to me:
> [term ~]$ guix archive --authorize <
> ~root/.guix-profile/share/guix/hydra.gnu.org.pub
> bash: /root/.guix-profile/share/guix/hydra.gnu.org.pub: Permission denied
>
> The same thing happens with sudo:
> [term ~]$ sudo guix archive --authorize <
> ~root/.guix-profile/share/guix/hydra.gnu.org.pub
> bash: /root/.guix-profile/share/guix/hydra.gnu.org.pub: Permission denied
>
> Respectfully,
> Marc
>
>
with sudo , sudo magic ends when you get to the <
do this:
sudo su
THEN
# guix archive --authorize <
~root/.guix-profile/share/guix/hydra.gnu.org.pub
[-- Attachment #2: Type: text/html, Size: 5334 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Attempting to Authorize Substitutes : Permission denied Issue
2016-01-17 4:14 ` carl hansen
@ 2016-01-17 16:17 ` Marc Dunivan
0 siblings, 0 replies; 3+ messages in thread
From: Marc Dunivan @ 2016-01-17 16:17 UTC (permalink / raw)
To: carl hansen; +Cc: help-guix@gnu.org
[-- Attachment #1: Type: text/plain, Size: 816 bytes --]
Carl, thank you.
I didn't realize sudo only acted on the first part and stopped at <. I remembered > and | but forgot about <.
Executing su with sudo...cool! I will remember this.
[user@penguinpocketwee ~]$ sudo su
[root@penguinpocketwee user]# guix archive --authorize < ~root/.guix-profile/share/guix/hydra.gnu.org.pub
warning: failed to install locale: Invalid argument
[root@penguinpocketwee user]# exit
exit
[user@penguinpocketwee ~]$ sudo ls -l ~root/.guix-profile/share/guix/hydra.gnu.org.pub
-rwxr-xr-x. 1 root root 1083 Dec 31 1969 /root/.guix-profile/share/guix/hydra.gnu.org.pub
This also works for me on my GNU\Linux OS, but sudo su seems much more useful with multiple commands.
[user@penguinpocketwee ~]$ sudo -- sh -c 'guix archive --authorize < ~root/.guix-profile/share/guix/hydra.gnu.org.pub'
[-- Attachment #2: Type: text/html, Size: 8432 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-01-17 16:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-17 3:43 Attempting to Authorize Substitutes : Permission denied Issue Marc Dunivan
2016-01-17 4:14 ` carl hansen
2016-01-17 16:17 ` Marc Dunivan
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).