From: Simon Josefsson via Guix-patches via <guix-patches@gnu.org>
To: 60320@debbugs.gnu.org
Subject: [bug#60320] [PATCH] doc: Improve user-group documentation.
Date: Sun, 25 Dec 2022 22:19:00 +0100 [thread overview]
Message-ID: <871qonmbaz.fsf@josefsson.org> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 566 bytes --]
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
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: 0001-doc-Improve-user-group-documentation.patch --]
[-- Type: text/x-patch, Size: 1760 bytes --]
From 6b7464c2820fd5f8b570f78e6e79752bc47ceaf8 Mon Sep 17 00:00:00 2001
From: Simon Josefsson <simon@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
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 255 bytes --]
next reply other threads:[~2022-12-25 21:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-25 21:19 Simon Josefsson via Guix-patches via [this message]
2022-12-26 6:43 ` [bug#60320] [PATCH] doc: Improve user-group documentation Julien Lepiller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871qonmbaz.fsf@josefsson.org \
--to=guix-patches@gnu.org \
--cc=60320@debbugs.gnu.org \
--cc=simon@josefsson.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.