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.
Stegan
December 20, 2023, 8:44pm
2
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.
Ilia
December 20, 2023, 9:44pm
3
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.
Randomz
December 29, 2023, 4:39am
5
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.
Stegan
December 29, 2023, 9:45am
7
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.
Stegan
December 29, 2023, 10:15am
9
The “best ” work-around I can see is to use the
button
Ilia
December 29, 2023, 10:43am
10
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
Stegan
December 29, 2023, 10:54am
11
it was in italics because it does seem to work.
I am sure yours is better (if a little less intuitive)
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
system
Closed
January 10, 2024, 7:14am
13
This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.