mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
security: Fix issue with Plinth locked out from sudo
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
This commit is contained in:
1 parent
fded8e57ec
commit
daeec0528b
2 files changed
+12
-2
No files matched your search
Vendored
+6
@@ -5,6 +5,12 @@ set -e
|
||||
daemonuser=plinth
|
||||
daemongroup=plinth
|
||||
|
||||
# Due to a change in sudo, now it runs PAM modules even on password-less
|
||||
# invocations. This leads to plinth not being able to run root privileges. This
|
||||
# is because of our own restrictions in /etc/security/access.conf. Since Plinth
|
||||
# is locked out after upgrade, we need to do this in postinst.
|
||||
sed -ie 's+-:ALL EXCEPT root fbx (admin) (sudo):ALL+-:ALL EXCEPT root fbx plinth (admin) (sudo):ALL+' /etc/security/access.conf
|
||||
|
||||
case "$1" in
|
||||
configure)
|
||||
addgroup --system --quiet plinth
|
||||
|
||||
Reference in new issue
Block a user