User Tools

Site Tools


wiki:add_a_new_user_to_webmin_from_shell

Background

The following steps will add a new user to webmin as a panel administrator.

Ideal Prerequisites

Software you should have installed before attempting this task

  • Webmin
  • CentOS 7

Caveats

  • system user must be used

New User from Scratch

NOTE: text in parentheses should be customized according to environment.
Create a new system user (webmin_admin):

sudo useradd --system webmin_admin

Modify miniserv.users with nano

sudo nano /etc/webmin/miniserv.users

Enter the newly created user (webmin_admin) on a new line:

webmin_admin:x:0

Save miniserv.users CTRL+X then CTRL+C

Change the users password (password):

sudo /usr/libexec/webmin/changepass.pl /etc/webmin/ webmin_admin password

User nano to add the users permissions to webmin.acl:

sudo nano /etc/webmin/webmin.acl</nano>

Add a new line with the same permissions as the current root user to give full acccess
<code>acl adsl-client ajaxterm apache at backup-config bacula-backup bandwidth bind8 burner change-user cluster-copy cluster-cron cluster-passwd cluster-shell cluster-software cluster-useradmin cluster-usermin cluster-webmin cpan cron custom dfsadmin dhcpd dovecot exim exports fail2ban fdisk fetchmail file filemin filter firewall firewall6 firewalld fsdump grub heartbeat htaccess-htpasswd idmapd inetd init inittab ipfilter ipfw ipsec iscsi-client iscsi-server iscsi-target iscsi-tgtd jabber krb5 ldap-client ldap-server ldap-useradmin logrotate lpadmin lvm mailboxes mailcap man mon mount mysql net nis openslp package-updates pam pap passwd phpini postfix postgresql ppp-client pptp-client pptp-server proc procmail proftpd qmailadmin quota raid samba sarg sendmail servers shell shorewall shorewall6 smart-status smf software spam squid sshd status stunnel syslog-ng syslog system-status tcpwrappers telnet time tunnel updown useradmin usermin vgetty webalizer webmin webmincron webminlog wuftpd xinetd

Save /etc/webmin/webmin.acl CTRL+X then CTRL+C

Restart Webmin:

sudo /etc/init.d/webmin restart

References

  • none

Discussion

Enter your comment. Wiki syntax is allowed:
If you can't read the letters on the image, download this .wav file to get them read to you.
 
wiki/add_a_new_user_to_webmin_from_shell.txt · Last modified: 2019/08/04 02:20 by ctv_admin