[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/07: vm-image: Allow for password-less sudo.
From: |
guix-commits |
Subject: |
07/07: vm-image: Allow for password-less sudo. |
Date: |
Sat, 27 Apr 2019 09:08:29 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 6e0521eeede6bd06bc083073145413a04771aad3
Author: Ludovic Courtès <address@hidden>
Date: Sat Apr 27 15:07:31 2019 +0200
vm-image: Allow for password-less sudo.
* gnu/system/examples/vm-image.tmpl (sudoers-file): New field.
---
gnu/system/examples/vm-image.tmpl | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/gnu/system/examples/vm-image.tmpl
b/gnu/system/examples/vm-image.tmpl
index c8a5ee0..95cfcb6 100644
--- a/gnu/system/examples/vm-image.tmpl
+++ b/gnu/system/examples/vm-image.tmpl
@@ -57,6 +57,12 @@ accounts.\x1b[0m
"audio" "video")))
%base-user-accounts))
+ ;; Our /etc/sudoers file. Since 'guest' initially has an empty password,
+ ;; allow for password-less sudo.
+ (sudoers-file (plain-file "sudoers" "\
+root ALL=(ALL) ALL
+%wheel ALL=NOPASSWD: ALL\n"))
+
(packages (append (list font-bitstream-vera nvi wget)
%base-packages))
- branch master updated (6cd7b1b -> 6e0521e), guix-commits, 2019/04/27
- 01/07: maint: Pass '--image-size=30G' to 'guix system vm-image'., guix-commits, 2019/04/27
- 02/07: doc: Recommend virtio-blk to access the VM image., guix-commits, 2019/04/27
- 05/07: vm-image: Mention 'info guix' in the MOTD., guix-commits, 2019/04/27
- 04/07: vm-image: Add a font to the global profile., guix-commits, 2019/04/27
- 03/07: doc: Update bit about SSH in the VM., guix-commits, 2019/04/27
- 07/07: vm-image: Allow for password-less sudo.,
guix-commits <=
- 06/07: doc: Suggest 1G of RAM for the VM image., guix-commits, 2019/04/27