GNU bug report logs - #60320
[PATCH] doc: Improve user-group documentation.

Previous Next

Package: guix-patches;

Reported by: Simon Josefsson <simon <at> josefsson.org>

Date: Sun, 25 Dec 2022 21:20:01 UTC

Severity: normal

Tags: patch, wontfix

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 60320 in the body.
You can then email your comments to 60320 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#60320; Package guix-patches. (Sun, 25 Dec 2022 21:20:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Simon Josefsson <simon <at> josefsson.org>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Sun, 25 Dec 2022 21:20:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Simon Josefsson <simon <at> josefsson.org>
To: guix-patches <at> gnu.org
Subject: [PATCH] doc: Improve user-group documentation.
Date: Sun, 25 Dec 2022 22:19:00 +0100
[Message part 1 (text/plain, inline)]
Hi.

Not knowing better I added this to my operating-system form:

  (groups (cons* (user-group
                  (name "jas")
                  (id "1000"))
                %base-groups))

Running 'guix system reconfigure /etc/config.scm' worked fine, and upon
boot I was placed in group 30001.  Any idea what happened?  A warning
would have been nice.

If there had been an example in the manual I wouldn't have made the
mistake, so the attached patch improves this manual page:
https://guix.gnu.org/en/manual/en/html_node/User-Accounts.html#User-Accounts

/Simon
[0001-doc-Improve-user-group-documentation.patch (text/x-patch, inline)]
From 6b7464c2820fd5f8b570f78e6e79752bc47ceaf8 Mon Sep 17 00:00:00 2001
From: Simon Josefsson <simon <at> josefsson.org>
Date: Sun, 25 Dec 2022 22:04:42 +0100
Subject: [PATCH] doc: Improve user-group documentation.

* doc/guix.texi (User Accounts): Add user-group form and modify user-group
text and examples to use it.
---
 doc/guix.texi | 20 +++++++++++++++-----
 1 file changed, 15 insertions(+), 5 deletions(-)

diff --git a/doc/guix.texi b/doc/guix.texi
index c5ae350a47..79475915ec 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -17165,8 +17165,8 @@ select the file system in an elegant fashion!
 @cindex accounts
 @cindex user accounts
 User accounts and groups are entirely managed through the
-@code{operating-system} declaration.  They are specified with the
-@code{user-account} and @code{user-group} forms:
+@code{operating-system} declaration.  Users are specified with the
+@code{user-account} form:
 
 @lisp
 (user-account
@@ -17179,13 +17179,23 @@ User accounts and groups are entirely managed through the
   (comment "Bob's sister"))
 @end lisp
 
-Here's a user account that uses a different shell and a custom home
-directory (the default would be @file{"/home/bob"}):
+Groups are specified with the @code{user-group} form:
+
+@lisp
+(user-group
+  (name "bob")
+  (id 1000))
+  %base-groups))
+@end lisp
+
+Here's a user account that uses a different shell, a custom home
+directory (the default would be @file{"/home/bob"}) and uses the
+@code{bob} group instead of the traditional @code{users}.
 
 @lisp
 (user-account
   (name "bob")
-  (group "users")
+  (group "bob")
   (comment "Alice's bro")
   (shell (file-append zsh "/bin/zsh"))
   (home-directory "/home/robert"))
-- 
2.38.1

[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#60320; Package guix-patches. (Mon, 26 Dec 2022 06:45:02 GMT) Full text and rfc822 format available.

Message #8 received at 60320 <at> debbugs.gnu.org (full text, mbox):

From: Julien Lepiller <julien <at> lepiller.eu>
To: Simon Josefsson <simon <at> josefsson.org>, 60320 <at> debbugs.gnu.org
Subject: Re: [bug#60320] [PATCH] doc: Improve user-group documentation.
Date: Mon, 26 Dec 2022 07:43:46 +0100
[Message part 1 (text/plain, inline)]
I think the group was created, but you probably forgot to add yourself to that new group. At least, what you show us looks correct, for adding a group to you os declaration.

Note your user-group example is unbalanced. The manual is a bit long to read, but it seems correct to me.

Le 25 décembre 2022 22:19:00 GMT+01:00, Simon Josefsson via Guix-patches via <guix-patches <at> gnu.org> a écrit :
>Hi.
>
>Not knowing better I added this to my operating-system form:
>
>  (groups (cons* (user-group
>                  (name "jas")
>                  (id "1000"))
>                %base-groups))
>
>Running 'guix system reconfigure /etc/config.scm' worked fine, and upon
>boot I was placed in group 30001.  Any idea what happened?  A warning
>would have been nice.
>
>If there had been an example in the manual I wouldn't have made the
>mistake, so the attached patch improves this manual page:
>https://guix.gnu.org/en/manual/en/html_node/User-Accounts.html#User-Accounts
>
>/Simon
[Message part 2 (text/html, inline)]

Added tag(s) wontfix. Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 31 Jan 2023 22:32:01 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 60320 <at> debbugs.gnu.org and Simon Josefsson <simon <at> josefsson.org> Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 31 Jan 2023 22:32:01 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 01 Mar 2023 12:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 50 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.