View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0011533 | Taler | merchant backend | public | 2026-06-17 13:51 | 2026-09-15 23:50 |
| Reporter | vecirex | Assigned To | Florian Dold | Resolution deadline | |
| Implementer | Reviewer | ||||
| Release signed by | Deployed by | ||||
| Verifier | Communicator | ||||
| Data protection authority notification required | No | ||||
| CSIRT notification required | No | ||||
| Estimated effort (hours) | Actual effort (hours) | 0 | |||
| Fast-track | No | ||||
| Work package | none | ||||
| Priority | none | Severity | trivial | Reproducibility | always |
| Status | feedback | Resolution | reopened | ||
| Target Version | post-1.0 | ||||
| Summary | 0011533: MR/compat/fix: consider using su instead of sudo for taler-merchant-dbconfig | ||||
| Description | Given xBSD ports and even minimalistic Debian for podman (cf. output) which is without sudo, use su:root@1b0bd36dc346:~# taler-merchant-dbconfig taler-merchant-dbinit v1.6.5 Setting up database user taler-merchant-httpd. Database user 'taler-merchant-httpd' already existed. Continuing anyway. /usr/bin/taler-merchant-dbconfig: line 91: sudo: command not found Failed to grant permissions to taler-merchant-httpd root@1b0bd36dc346:~# sudo bash: sudo: command not found root@1b0bd36dc346:~# | ||||
| Additional Information | When on computer with proper git access for this repo, I fix this right away. | ||||
| Tags | compat, deployment, xbsd | ||||
Sidetrack (stopping right away): runuser works perfectly fine on a minimalistic Debian in podman (like taler.hacktivism.ch) and is also more portable on Linux systems, but only there; would go like this (just tried out):root@1b0bd36dc346:~# cat /usr/bin/taler-merchant-dbconfig | grep runuser if ! runuser -u postgres -- createuser "$DBUSER" 2>/dev/null; then runuser -u postgres -- psql -v dbuser="$DBUSER" <<'EOF' || ret=$? if runuser -u postgres -- psql "$DBNAME" </dev/null 2>/dev/null; then if ! runuser -u postgres -- dropdb "$DBNAME"; then if ! runuser -u postgres -- createdb -O "$DBUSER" "$DBNAME"; then if ! runuser -u "$DBUSER" -- "$DBINIT" -c "$CFGFILE"; then root@1b0bd36dc346:~# | |
| Fix title s/runuser/su/ | |
| Fixed and tested to work via containers, merge request: a2beb276..86bd3f52 | |
| Please specify the repo and branch when asking me to merge something, a2beb276..86bd3f52 is not super useful. | |
| It's merchant.git, git switch to: 11533-compat-fix-su-not-sudo | |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2026-06-17 13:51 | vecirex | New Issue | |
| 2026-06-17 13:51 | vecirex | Status | new => assigned |
| 2026-06-17 13:51 | vecirex | Assigned To | => vecirex |
| 2026-06-17 13:58 | vecirex | Note Added: 0028933 | |
| 2026-06-17 13:59 | vecirex | Description Updated | |
| 2026-06-17 14:00 | vecirex | Note Edited: 0028933 | |
| 2026-06-17 14:01 | vecirex | Status | assigned => implementing |
| 2026-06-17 14:02 | vecirex | Tag Attached: xbsd | |
| 2026-08-22 17:38 | Florian Dold | Target Version | => post-1.0 |
| 2026-08-26 21:38 | Florian Dold | Summary | Free taler-merchant-dbconfig from sudo => consider using runuser instead of sudo for taler-merchant-dbconfig |
| 2026-08-29 15:05 | vecirex | Summary | consider using runuser instead of sudo for taler-merchant-dbconfig => consider using su instead of sudo for taler-merchant-dbconfig |
| 2026-08-29 15:05 | vecirex | Note Added: 0029750 | |
| 2026-09-05 00:46 | vecirex | Assigned To | vecirex => Florian Dold |
| 2026-09-05 00:46 | vecirex | Status | implementing => informing |
| 2026-09-05 00:46 | vecirex | Summary | consider using su instead of sudo for taler-merchant-dbconfig => MR/compat/fix: consider using su instead of sudo for taler-merchant-dbconfig |
| 2026-09-05 00:46 | vecirex | Note Added: 0029891 | |
| 2026-09-05 00:49 | vecirex | Note Edited: 0029891 | |
| 2026-09-05 00:49 | vecirex | Status | informing => feedback |
| 2026-09-05 00:49 | vecirex | Resolution | open => reopened |
| 2026-09-05 00:50 | vecirex | Tag Attached: compat | |
| 2026-09-05 00:51 | vecirex | Tag Attached: deployment | |
| 2026-09-05 16:12 | Florian Dold | Note Added: 0029897 | |
| 2026-09-05 16:12 | Florian Dold | Assigned To | Florian Dold => vecirex |
| 2026-09-15 23:49 | vecirex | Note Added: 0029977 | |
| 2026-09-15 23:50 | vecirex | Assigned To | vecirex => Florian Dold |