#1882 prosody-migrator: no way to configure which user to switch to
Reporter
Zash
Owner
Nobody
Created
Updated
Stars
★ (1)
Tags
Status-Accepted
Type-Defect
Priority-Medium
Zash
on
prosody-migrator uses startup.switch_user(), which tries to switch to a 'prosody' user (and group).
This is problematic for operating systems where the target user is called something else, maybe '_prosody' or 'jabber'.
This raises the problem that the migrator does not read a config file at all until later, and it's a special one.
Does it even need to switch user, or could it assert that non-root is used?
prosody-migrator uses startup.switch_user(), which tries to switch to a 'prosody' user (and group). This is problematic for operating systems where the target user is called something else, maybe '_prosody' or 'jabber'. This raises the problem that the migrator does not read a config file at all until later, and it's a special one. Does it even need to switch user, or could it assert that non-root is used?