Menu

#5168 Cluster User editing adds null byte to username

1.890
open
nobody
None
5
2018-09-01
2018-07-26
No

After editing Cluster User details Webmin inserts a null byte into the username. More details below.

Server environment (the same for all three cluster nodes):
CentOS7
Webmin 1.890
Client environments:

1. Win10Pro, Chrome 67
2. Ubuntu 14.04, Firefox 61 and Chromium 65

Steps to reproduce:

  1. Go to Cluster -> Cluster Users and Groups
  2. Find some existing user (e.g. myuser) and open "Edit User" page
  3. Change username from myuser to myuser1 and click Save.

Expected results:
System username is changed from myuser to myuser1.

Actual results:

  1. Webmin output
    Updating on this server ..

    Updating password file entry ..
    .. done

    Renaming in groups ..
    .. done

    Updating in other modules ..
    .. done

    Failed to save user : Filename contains invalid characters

  2. System username is changed from myuser to myuser1\x00myuser.

Discussion

  • Jamie Cameron

    Jamie Cameron - 2018-07-30

    The quick work-around for this is to switch to the older Virtualmin Framed Theme. The long-term fix will come in a future Webmin release, once we re-do the UI for that module.

     
    • Eduardo Pérez

      Eduardo Pérez - 2018-08-30

      Hi! I'm havin the same issue. The only avialable themes in Webmin are Gray Framed, Old Webmin and Authentic. Where can I get the older Virtualmin Framed? Thanks!

       
  • Maksym Sheremet

    Maksym Sheremet - 2018-08-04

    The quick work-around works OK, thanks.

     
  • Jamie Cameron

    Jamie Cameron - 2018-08-31

    The "Gray Framed Theme" will work fine.

     
  • Ilia Rostovtsev

    Ilia Rostovtsev - 2018-09-01

    Unfortunately Gray Theme also returns an error:

    Failed to save user : Filename contains invalid characters

    Tested on Ubuntu Linux 16.04.4.

    However, the user name is changed to the requested one, in my case debug-ubuntu5 to debug-ubuntu55.

     
  • Jamie Cameron

    Jamie Cameron - 2018-09-01

    Odd, it works OK for me. Anyway, I know how to fix this properly and it will happen in a future release.

     
  • Eduardo Pérez

    Eduardo Pérez - 2018-09-01

    Can confirm here too. Gray Framed Theme also returns the error.

    As a workaround, download the latest Virtual Server Theme and Webmin virtual server package and install them on the server you want to use for making changes.

     

Log in to post a comment.

Auth0 Logo