Re: permission denied: /gnu/store/...guile...

2015-05-23 Thread Ludovic Courtès
Mark H Weaver skribis: > l...@gnu.org (Ludovic Courtès) writes: > >> Mark H Weaver skribis: [...] > I would suggest using (geteuid) instead. Also, we should set the mode. > In this particular case, if we had changed the owner without also > changing the mode, rekado's system still would have

Re: permission denied: /gnu/store/...guile...

2015-05-23 Thread Mark H Weaver
l...@gnu.org (Ludovic Courtès) writes: > Mark H Weaver skribis: > >> The problem turned out to be that on rekado's system, / was owned by >> user "rekado" with mode 700. > > Oh, I see. I would never have thought of this! > >> Perhaps 'guix system init' should explicitly set the ownership and >>

Re: permission denied: /gnu/store/...guile...

2015-05-23 Thread Ludovic Courtès
Mark H Weaver skribis: > The problem turned out to be that on rekado's system, / was owned by > user "rekado" with mode 700. Oh, I see. I would never have thought of this! > Perhaps 'guix system init' should explicitly set the ownership and > permissions on the target root directory? Here’s a

Re: Re: permission denied: /gnu/store/...guile...

2015-05-23 Thread rekado
On Sat, 23 May 2015 04:21:40 +0800 Mark H Weaver wrote >Mark H Weaver writes: > >> The problem turned out to be that on rekado's system, / was owned by >> user "rekado" with mode 700. > >One possibility is that he created this filesystem from some nice GUI >disk utility from Fedo

Re: permission denied: /gnu/store/...guile...

2015-05-22 Thread Mark H Weaver
Mark H Weaver writes: > The problem turned out to be that on rekado's system, / was owned by > user "rekado" with mode 700. One possibility is that he created this filesystem from some nice GUI disk utility from Fedora, before running our USB installer. Perhaps 'guix system init' should explici

Re: permission denied: /gnu/store/...guile...

2015-05-22 Thread Mark H Weaver
The problem turned out to be that on rekado's system, / was owned by user "rekado" with mode 700. Mark

Re: permission denied: /gnu/store/...guile...

2015-05-22 Thread Ludovic Courtès
rekado skribis: > On Fri, 22 May 2015 05:53:51 +0800 Ludovic Courtès wrote > > > Could you try this: > > > > --8<---cut here---start->8--- > > (chdir "/tmp") > > (setgroups #()) > > (setgid 3) > > (setuid 30001) > > (pk 'uid/gid

Re: permission denied: /gnu/store/...guile...

2015-05-22 Thread rekado
On Fri, 22 May 2015 05:53:51 +0800 Ludovic Courtès wrote > Could you try this: > > --8<---cut here---start->8--- > (chdir "/tmp") > (setgroups #()) > (setgid 3) > (setuid 30001) > (pk 'uid/gid (getuid) (getgid)) > (pk 'euid/egid

Re: permission denied: /gnu/store/...guile...

2015-05-21 Thread Ludovic Courtès
Could you try this: --8<---cut here---start->8--- (chdir "/tmp") (setgroups #()) (setgid 3) (setuid 30001) (pk 'uid/gid (getuid) (getgid)) (pk 'euid/egid (geteuid) (getegid)) (let loop ((i 3)) (when (< i 1024) (false-if-exception (close-fdes i)) (l

Re: permission denied: /gnu/store/...guile...

2015-05-21 Thread rekado
> Could you post the output of > “stat /gnu/store/cnqmkmj40jmssnx6fkf9n0n3bqj5x426-guile-2.0.11/bin/guile”? ~ root@banana ~# stat /gnu/store/cnqmkmj40jmssnx6fkf9n0n3bqj5x426-guile-2.0.11/bin/guile File: ‘/gnu/store/cnqmkmj40jmssnx6fkf9n0n3bqj5x426-guile-2.0.11/bin/guile’ Size: 10912

Re: permission denied: /gnu/store/...guile...

2015-05-21 Thread Ludovic Courtès
rekado skribis: >>> Derive([("out","/gnu/store/vvs2c9zzl9zwrq0zwrayjlih9cpwjbcq-ibus-pinyin-1.5.0.tar.gz","sha256","a85d458dcc51ea9fd65849e63002428b3fcb3b39adcbea9214b5cb4a4cbdbc96")],[("/gnu/store/479gki04zgbysxipcb1wdl56mh1bldbx-guile-2.0.11.drv",["out"]),("/gnu/store/p20cih7k80cpqka6f06100j1yc

Re: permission denied: /gnu/store/...guile...

2015-05-20 Thread rekado
On Wed, 20 May 2015 20:18:31 +0800 Ludovic Courtès wrote >So this happens only with this derivation? No. It happens whenever I build something without substitutes. There are no substitutes for packages that are still in development (like my ibus-pinyin draft). >I suppose you’re o

Re: permission denied: /gnu/store/...guile...

2015-05-20 Thread Alex Kost
Daniel Pimentel (2015-05-20 16:12 +0300) wrote: > On 2015-05-20 09:24, l...@gnu.org wrote: >> Daniel Pimentel skribis: >> >>> I have similar problem, I think. My problem was permission to write >>> (using sudo) in /gnu/store/ when I needed to enable my correct >>> synaptics (I copied 50-synaptics

Re: permission denied: /gnu/store/...guile...

2015-05-20 Thread Daniel Pimentel
On 2015-05-20 09:24, l...@gnu.org wrote: Daniel Pimentel skribis: I have similar problem, I think. My problem was permission to write (using sudo) in /gnu/store/ when I needed to enable my correct synaptics (I copied 50-synaptics.conf file to /gnu/store/.../xorg.conf.d/), so I needed remount /

Re: permission denied: /gnu/store/...guile...

2015-05-20 Thread Ludovic Courtès
Daniel Pimentel skribis: > I have similar problem, I think. My problem was permission to write > (using sudo) in /gnu/store/ when I needed to enable my correct > synaptics (I copied 50-synaptics.conf file to > /gnu/store/.../xorg.conf.d/), so I needed remount /gnu/store/ (sudo > mount -o remount,

Re: permission denied: /gnu/store/...guile...

2015-05-20 Thread Ludovic Courtès
rekado skribis: > build error: executing > `/gnu/store/cnqmkmj40jmssnx6fkf9n0n3bqj5x426-guile-2.0.11/bin/guile': > Permission denied > builder for > `/gnu/store/ni0hz29nyd051fsp2n73icjnwx28fajz-ibus-pinyin-1.5.0.tar.gz.drv' > failed with exit code 1 > @ build-failed > /gnu/store/ni0hz29nyd05

Re: permission denied: /gnu/store/...guile...

2015-05-20 Thread Daniel Pimentel
On 2015-05-20 04:06, rekado wrote: Hi Guix, my apologies for this badly formatted email. I'm using a webmail interface because I have not been able to set up my email through Emacs on GuixSD as I cannot build custom packages. Here's what happens when I try to build a custom package from a git

Re: permission denied: /gnu/store/...guile...

2015-05-20 Thread Andreas Enge
Hello Recado, this may not at all be helpful, but whenever I encounter a mysterious problem such as this, I usually do a "make distclean; ./configure; make install". Or better yet, have it precede by "./bootstrap" and "rm -rf INSTALL_DIRECTORY/share/guile". Sometimes that solves the issue, but it