Create new Master Admin user

how can I create new Master Admin user when I lost any of it? (from command line or something)
Or how can I identify if I have any of Master Admin user on system?
Is it possible to create it without sudoers?

Howdy,

Normally, the root user is a Master Admin user.

If you want another Master Admin, the typical way of doing that would be to create a new user on your server, and then to add that user to the /etc/sudoers file.

I haven’t tested this, but if you don’t want to use sudoers, I suspect you could also just create a new user on your server that has a UID and GID of 0.

-Eric

tried both, but nothing work…
tried:

  1. installed sudo, created new user “user1”, added this user to sudoers file (user1 ALL=(ALL) ALL ), restarted webmin, tried login from other PC to https://example.com:10000 with new created user… no luck: Login failed. Please try again.
  2. created new user “user2”, gave him “root rights” (0:0), added this user to sudoers file (user2 ALL=(ALL) ALL ), restarted webmin, tried login from other PC to https://example.com:10000 with new created user… no luck: Login failed. Please try again.

Eric please, what can I do more or what im doing wrong… really need help with this. Backups from some “Master admin” user almost eated all my HDD… I must deleted this backups every week…

Howdy,

Both of what you described should work.

Are you able to login as that new user over SSH?

-Eric

yes, I can login with both new created users over SSH.

Eric! Is there something more I can try to resolve my problem??? So smart system haven’t possibility change simple things…

At last I found the resolution to my problem by myself and want to share it with you guys and especially with Eric (Andreychek), weird he dont know that ;-). Instead of it I’m waiting at least “Thank you” ( sad there is no button “Like” LOL).
First of all if you want to know which rights has every Webmin user there is the file (in Debian) /etc/webmin/webmin.acl where you can see all rights for every users. This way I found who has Master Admin rights on my system, changed psw to him and vuala!!! Now I have all privileges which I need…
Second, I didnd’t tried it but think if you will add rights to another user in this file, same like another Master Admin has, u can have another Master Admin user. Format of rights is like this:

root: dfsadmin dnsadmin ipfilter ipfw smf

server1.adm: bind8 mysql apache webalizer virtual-server file passwd proc cron at telnet change-user htaccess-htpasswd mailboxes syslog virtualmin-awstats virtualmin-dav virtualmin-mailman virtualmin-htpasswd

server2.adm: bind8 mysql apache webalizer virtual-server file passwd proc cron at telnet change-user htaccess-htpasswd mailboxes syslog virtualmin-awstats virtualmin-dav virtualmin-mailman virtualmin-htpasswd

adminofall.adm: backup-config change-user webmincron usermin webminlog webmin servers acl bacula-backup init passwd quota mount fsdump inittab ldap-client ldap-useradmin logrotate mailcap mon pam proc at cron sentry package-updates software man syslog syslog-ng system-status useradmin virtualmin-init virtualmin-signup security-updates virtualmin-awstats apache bind8 pserver dhcpd dovecot exim fetchmail frox jabber ldap-server majordomo mysql openslp postfix postgresql proftpd procmail qmailadmin mailboxes sshd samba sendmail spam squid sarg virtualmin-google-analytics virtualmin-mailman virtualmin-oracle virtualmin-sqlite virtualmin-svn virtual-server wuftpd webalizer adsl-client bandwidth ipsec krb5 firewall exports nis net xinetd inetd pap ppp-client pptp-client pptp-server stunnel shorewall tcpwrappers virtualmin-registrar idmapd filter neisysinfo burner grub lilo raid lvm fdisk lpadmin smart-status time vgetty cluster-passwd cluster-copy cluster-cron cluster-shell cluster-software cluster-usermin cluster-useradmin cluster-webmin cfengine heartbeat shell custom file tunnel phpini cpan htaccess-htpasswd telnet status updown virtualmin-dav virtualmin-htpasswd virtualmin-slavedns

In this exampleu can see, that user “adminofall.adm” has “Master Admin” rights…