Bug Report: openmediavault-luksencryption add password does not accept blanks (probably quoting problem)

  • When I try to add a password via the GUI that contains blanks, I get an error like this:


    500 - Internal Server Error

    Unable to add the key to the encrypted device: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; /bin/bash -c 'echo -n 'Altes Passwort' | cryptsetup luksAddKey -q '/dev/md0' <(echo -n 'Neues Passwort')' 2>&1' with exit code '2': Passwort): -c: line 1: unexpected EOF while looking for matching `)' Passwort): -c: line 2: syntax error: unexpected end of file


    To show and or protocol such an error is bad (tm), since that line gets logged (probably also remotely, if enabled) and thus renders all passwords insecure.


    Also, the quoting is probably incorrect since such errors do not occur when they consist only of numbers and letters. I suspect that it coughs on other special characters as well.



    I filed a bug in Github.

  • I just experienced the same problem. See my comment on Github. I found a workaround for now though: Type the passphrase in double quotes: "this passphrase gets accepted". The double quotes won't be part of the passphrase.


    meyergru: Are you sure this gets logged? I also don't want my passwords to be safed in logs and tried to delete them but I couldn't find any logfile nor anything in journalctl that would contain this...

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!