In VirtualMin 7.9.0 on CentOS Linux 7.9.2009, can't edit "Real Name" of email user if this field is empty

SYSTEM INFORMATION
CentOS Linux 7.9.2009 REQUIRED
Webmin 2.105 REQUIRED
VirtualMin 7.9.0 REQUIRED
VirtualMin GUI SUGGESTED

When trying to create a new user or trying to edit a user through the VirtualMin GUI, if the Real Name field is empty, then it is not displayed in the GUI and thus not editable.

If the real name field is edited through Webmin’s Users and Groups, the field then shows up properly and is editable in the VirtualMin GUI as expected.

Webmin’s users and Virtualmin (domain) users are a different kettle of fish as I understand it

but have just checked by attempting to add a domain user and you are correct - the name field is missing.

When trying to create a new user or trying to edit a user through the VirtualMin GUI, if the Real Name field is empty, then it is not displayed in the GUI and thus not editable.

This was a bug and it was fixed in the PR we’re currently working on merging.

2 Likes

Awesome! Thanks!

I figured it would be but reported anyway in case you hadn’t found it yet.

This is frustrating not being able to use Real Name when creating a new user account, is there a workaround until the next release happens?

Like was said in the OP. use webmin to edit.

But a Webmin user is not the same as a Virtualmin(domain) user are they?

I mean the users in system. Sorry I see what you mean.

The “best” work-around I can see is to use the
Screenshot 2023-12-29 101314
button

This isn’t “the best” work around!

Yes, you can easily fix it in Virtualmin 7.9.0 by running the following command:

sed -i '/if ($user->{'\''person'\''} && $user->{'\''real'\''}) {/c\if ($user->{'\''person'\''}) {' /usr/libexec/webmin/virtual-server/edit_user.cgi
1 Like

it was in italics because it does seem to work.
I am sure yours is better (if a little less intuitive) :wink:

For Debian based installations the script location is different so you can use:

sed -i '/if ($user->{'\''person'\''} && $user->{'\''real'\''}) {/c\if ($user->{'\''person'\''}) {' /usr/share/webmin/virtual-server/edit_user.cgi
1 Like

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.