Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete user script for kubernetes #271

Open
1 of 3 tasks
GSimonHU opened this issue Jul 5, 2023 · 1 comment
Open
1 of 3 tasks

Delete user script for kubernetes #271

GSimonHU opened this issue Jul 5, 2023 · 1 comment
Labels

Comments

@GSimonHU
Copy link

GSimonHU commented Jul 5, 2023

Environment & Version

Environment

  • docker compose
  • kubernetes
  • docker swarm

Version

  • Version: 2.0.16

Description

Cannot delete users in kubernetes env using the purge_user.sh (for docker-compose usage) from https://github.com/Mailu/Mailu/blob/master/scripts/purge_user.sh as a basis.

I managed to remove user from mailu admin pod by exec-ing into the pod and running flask user-delete:

kubectl exec -it -n mailu $mailu-admin-pod-name -- bash

flask mailu user-delete -r [email protected]

But was not able to run the in the webmail pod the the /var/www/roundcube/bin/deluser.sh script

Replication Steps

Exec into the webmail pod

kubectl exec -it -n mailu $mailu-webmail-pod-name -- bash

cd /var/www/roundcube/bin
./deluser.sh --host=front '[email protected]'

Observed behaviour

[05-Jul-2023 12:15:31 Europe/Berlin] PHP Fatal error: [snuffleupagus][0.0.0.0][readonly_exec][drop] Attempted execution of a writable file (/var/www/roundcube/bin/deluser.sh) in /var/www/roundcube/bin/deluser.sh on line 22

Expected behaviour

Delete the user

Already tried this solution (Mailu/Mailu#2836) and did not work

@nextgens nextgens transferred this issue from Mailu/Mailu Jul 5, 2023
@fastlorenzo
Copy link
Collaborator

Thanks for the report, looks like an issue that should be reported in Mailu repo directly https://github.com/Mailu/Mailu/issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants