GNU bug report logs -
#30728
guix-install.sh doesn't work if run with "sudo"
Previous Next
Full log
View this message in rfc822 format
Gábor Boskovits <boskovits <at> gmail.com> writes:
> 2018-03-26 11:11 GMT+02:00 Ricardo Wurmus <rekado <at> elephly.net>:
>
>>
>> Hi Clément,
>>
>> > As I said to Chris (Cc'ed), I don't think it's a good idea to install
>> > Guix in root's home directory. Instead, we should probably honor the
>> > USER and HOME environment variables, so that the command can be run as a
>> > non-root user (with sudo) in a consistent way. What do you think?
>>
>> The script should be run as root as it follows the manual’s
>> instructions, which tell people to install Guix for the root user and
>> then make it available system-wide.
>>
>> This is why I think that it would be correct to install it to the root’s
>> home directory and not to the sudoing user’s HOME.
>>
>> Or am I missing something?
>>
>>
> I think Ricardo is right on this one. I would also recommend installing in
> root's home directory.
But you don't explain why. And "as it follows the manual's
instructions" isn't a good reason to me.
> I believe, that installing in a user home would make sense only with a
> big amount of additional instrumentation and documentation changes,
> along with arrangements to allow guix in userspace.
I think it would be fairly easy. The kind of edit we do all the time
when patches are being reviewed.
This bug report was last modified 7 years and 55 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.