* On 4/16/25 00:06, Sam Darwin via Mailman-users wrote:
su - -u list -s /bin/bash -c "pwd"That fails on Ubuntu 24.04. Did you mean sudo instead of su? su doesn't have a -u flag. Or which operating system were you on?
Yes, Linux-based su doesn't support the -u option, but sudo does. Probbably an oversight.
The correct call would be: su - -s /bin/bash -c "mailman-web makemigrations --merge" list or, if you don't want to run it in a login shell: su -s /bin/bash -c "mailman-web makemigrations --merge" listBut, all this said, mailman-web is typically already a wrapper calling su -s /bin/bash -c "python3 .../path/to/manage.py $*" www-data, so why should it be wrapped in another wrapper with a different user? The list user is typically used by the mailman-wrapper wrapper.
Mihai
OpenPGP_signature.asc
Description: OpenPGP digital signature
_______________________________________________ Mailman-users mailing list -- mailman-users@mailman3.org To unsubscribe send an email to mailman-users-le...@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/ Archived at: https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/message/RDEKKW2OZO4KJGLIITIHIF37XDTYGSFN/ This message sent to arch...@mail-archive.com