all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Do you guix pull for the root account on a single user machine running Guix System if the root user is never used?
@ 2024-08-16 19:39 Oleander via
  0 siblings, 0 replies; 7+ messages in thread
From: Oleander via @ 2024-08-16 19:39 UTC (permalink / raw)
  To: help-guix

According to the manual:

https://guix.gnu.org/manual/en/html_node/After-System-Installation.html

> From then on, you can update the system whenever you want by running,
> say: `guix pull && sudo guix system reconfigure /etc/config.scm `

Then the manual also notes:

> guix pull updates the guix command and package definitions only for
> the user it is run as. This means that if you choose to use guix
> system reconfigure in root’s login shell, you’ll need to guix pull
> separately.

If I understood everything correctly, on a single user machine running
Guix SD, if the root user is never used to run any command, it's
not necessary to also run sudo -i guix pull or #guix pull. Is this
correct?

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Do you guix pull for the root account on a single user machine running Guix System if the root user is never used?
@ 2024-08-16 20:50 Raghav Gururajan
  0 siblings, 0 replies; 7+ messages in thread
From: Raghav Gururajan @ 2024-08-16 20:50 UTC (permalink / raw)
  To: 7059548; +Cc: help-guix


[-- Attachment #1.1: Type: text/plain, Size: 305 bytes --]

Hello!

On a single-user machine where the user has superuser privileges (wheel 
group), it's not required to use 'root' for guix pull and guix system 
configure. You can do `guix pull` and then `sudo guix system reconfigure 
/etc/config.scm`; as regular user.

Regards,
Raghav "RG" Gururajan.


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Do you guix pull for the root account on a single user machine running Guix System if the root user is never used?
@ 2024-08-16 20:52 Raghav Gururajan
  2024-08-17  6:35 ` Oleander via
  0 siblings, 1 reply; 7+ messages in thread
From: Raghav Gururajan @ 2024-08-16 20:52 UTC (permalink / raw)
  To: 7059548; +Cc: help-guix


[-- Attachment #1.1: Type: text/plain, Size: 305 bytes --]

Hello!

On a single-user machine where the user has superuser privileges (wheel 
group), it's not required to use 'root' for guix pull and guix system 
configure. You can do `guix pull` and then `sudo guix system reconfigure 
/etc/config.scm`; as regular user.

Regards,
Raghav "RG" Gururajan.


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Do you guix pull for the root account on a single user machine running Guix System if the root user is never used?
  2024-08-16 20:52 Raghav Gururajan
@ 2024-08-17  6:35 ` Oleander via
  2024-08-18  9:01   ` Raghav Gururajan
  0 siblings, 1 reply; 7+ messages in thread
From: Oleander via @ 2024-08-17  6:35 UTC (permalink / raw)
  To: rg; +Cc: help-guix

> -------- Original Message -------- On Aug 16, 2024, 22:52, Raghav
> Gururajan < rg@raghavgururajan.name> wrote:
> Hello! On a single-user machine where the user has superuser
> privileges (wheel group), it's not required to use 'root' for guix
> pull and guix system configure. You can do `guix pull` and then `sudo
> guix system reconfigure /etc/config.scm`; as regular user. Regards,
> Raghav "RG" Gururajan.

Hi Raghav, thanks for your quick reply!

I know that root is not required to run guix pull and and sudo guix
system reconfigure. Is it also not necessary to update the root
definitions on Guix System?

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Do you guix pull for the root account on a single user machine running Guix System if the root user is never used?
  2024-08-17  6:35 ` Oleander via
@ 2024-08-18  9:01   ` Raghav Gururajan
  2024-08-18  9:15     ` Raghav Gururajan
  0 siblings, 1 reply; 7+ messages in thread
From: Raghav Gururajan @ 2024-08-18  9:01 UTC (permalink / raw)
  To: Oleander; +Cc: help-guix


[-- Attachment #1.1: Type: text/plain, Size: 936 bytes --]

Hi Oleander!

> I know that root is not required to run guix pull and and sudo guix
> system reconfigure. Is it also not necessary to update the root
> definitions on Guix System?

That's correct. It's not necessary to keep guix definitions updated in 
`root` profile, on single-user machine where the regular user has 
superuser privileges. This is because, when you system reconfigure as 
regular user using sudo, the guix in regular user's profile is used and 
not the guix in root's profile.

The only scenario I could think of - where you gotta keep guix in root's 
profile updated is - on multi-user machine where no regular user has 
superuser privileges and the system administration is done via root. But 
even in that scenario, I think it's a better practice to create a 
regular user with superuser privileges for an admin to perform system 
administration using sudo.

Regards,
Raghav "RG" Gururajan.


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Do you guix pull for the root account on a single user machine running Guix System if the root user is never used?
  2024-08-18  9:01   ` Raghav Gururajan
@ 2024-08-18  9:15     ` Raghav Gururajan
  2024-08-19  9:39       ` Oleander via
  0 siblings, 1 reply; 7+ messages in thread
From: Raghav Gururajan @ 2024-08-18  9:15 UTC (permalink / raw)
  To: Oleander; +Cc: help-guix


[-- Attachment #1.1: Type: text/plain, Size: 1173 bytes --]

Oleander!

>> I know that root is not required to run guix pull and and sudo guix
>> system reconfigure. Is it also not necessary to update the root
>> definitions on Guix System?
> 
> That's correct. It's not necessary to keep guix definitions updated in 
> `root` profile, on single-user machine where the regular user has 
> superuser privileges. This is because, when you system reconfigure as 
> regular user using sudo, the guix in regular user's profile is used and 
> not the guix in root's profile.
> 
> The only scenario I could think of - where you gotta keep guix in root's 
> profile updated is - on multi-user machine where no regular user has 
> superuser privileges and the system administration is done via root. But 
> even in that scenario, I think it's a better practice to create a 
> regular user with superuser privileges for an admin to perform system 
> administration using sudo.

Forgot to mention something. You can test it yourself by doing `which 
guix` and `sudo which guix` AND/OR `guix -V` and `sudo guix -V`. The 
output of them will be same because the root profile isn't used.

Regards,
Raghav "RG" Gururajan.


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Do you guix pull for the root account on a single user machine running Guix System if the root user is never used?
  2024-08-18  9:15     ` Raghav Gururajan
@ 2024-08-19  9:39       ` Oleander via
  0 siblings, 0 replies; 7+ messages in thread
From: Oleander via @ 2024-08-19  9:39 UTC (permalink / raw)
  To: rg; +Cc: help-guix

Got it. Thank you Raghav!

-------- Original Message --------
On Aug 18, 2024, 11:15, Raghav Gururajan wrote:

> Oleander! >> I know that root is not required to run guix pull and and sudo guix >> system reconfigure. Is it also not necessary to update the root >> definitions on Guix System? > > That's correct. It's not necessary to keep guix definitions updated in > `root` profile, on single-user machine where the regular user has > superuser privileges. This is because, when you system reconfigure as > regular user using sudo, the guix in regular user's profile is used and > not the guix in root's profile. > > The only scenario I could think of - where you gotta keep guix in root's > profile updated is - on multi-user machine where no regular user has > superuser privileges and the system administration is done via root. But > even in that scenario, I think it's a better practice to create a > regular user with superuser privileges for an admin to perform system > administration using sudo. Forgot to mention something. You can test it yourself by doing `which guix` and `sudo which guix` AND/OR `guix -V` and `sudo guix -V`. The output of them will be same because the root profile isn't used. Regards, Raghav "RG" Gururajan.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-08-19  9:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-16 20:50 Do you guix pull for the root account on a single user machine running Guix System if the root user is never used? Raghav Gururajan
  -- strict thread matches above, loose matches on Subject: below --
2024-08-16 20:52 Raghav Gururajan
2024-08-17  6:35 ` Oleander via
2024-08-18  9:01   ` Raghav Gururajan
2024-08-18  9:15     ` Raghav Gururajan
2024-08-19  9:39       ` Oleander via
2024-08-16 19:39 Oleander via

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.