mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-18 02:16:59 +02:00
Merge pull request #514 from philips/sudo-gce
feat(app-emulation/google-compute-daemon): add sudo group
This commit is contained in:
commit
b4a62b4f72
@ -0,0 +1,27 @@
|
||||
From 6126db1c7c690d666b2389c4a918a4c4955c8e91 Mon Sep 17 00:00:00 2001
|
||||
From: Brandon Philips <brandon@ifup.co>
|
||||
Date: Fri, 4 Apr 2014 12:12:00 -0700
|
||||
Subject: [PATCH] feat(accounts): add users to the sudo group by default
|
||||
|
||||
On CoreOS the sudo group gets passwordless sudo. Add users to this
|
||||
group.
|
||||
---
|
||||
google-daemon/usr/share/google/google_daemon/accounts.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/google-daemon/usr/share/google/google_daemon/accounts.py b/google-daemon/usr/share/google/google_daemon/accounts.py
|
||||
index 6f970c4..17cb2ce 100755
|
||||
--- a/google-daemon/usr/share/google/google_daemon/accounts.py
|
||||
+++ b/google-daemon/usr/share/google/google_daemon/accounts.py
|
||||
@@ -76,7 +76,7 @@ class Accounts(object):
|
||||
self.urllib2 = urllib2_module
|
||||
|
||||
self.default_user_groups = self.GroupsThatExist(
|
||||
- ['adm', 'video', 'dip', 'plugdev'])
|
||||
+ ['adm', 'video', 'dip', 'plugdev', 'sudo'])
|
||||
|
||||
def CreateUser(self, username, ssh_keys):
|
||||
"""Create username on the system, with authorized ssh_keys."""
|
||||
--
|
||||
1.8.5.2 (Apple Git-48)
|
||||
|
@ -23,6 +23,7 @@ src_prepare() {
|
||||
epatch "${FILESDIR}"/0001-Fixes-authorized_keys-file-permissions.patch
|
||||
epatch "${FILESDIR}"/0001-fix-google-daemon-use-for-the-passwd-not.patch
|
||||
epatch "${FILESDIR}"/0001-hack-address_manager-use-CoreOS-names-and-locations.patch
|
||||
epatch "${FILESDIR}"/0001-feat-accounts-add-users-to-the-sudo-group-by-default.patch
|
||||
}
|
||||
|
||||
src_install() {
|
Loading…
Reference in New Issue
Block a user