LinHES Forums
http://forums.linhes.org/

Adding a Webmin User
http://forums.linhes.org/viewtopic.php?f=25&t=21295
Page 1 of 1

Author:  gatorback [ Thu Aug 26, 2010 11:44 pm ]
Post subject:  Adding a Webmin User

I tried to find a command for the command line, but was unsuccessful. Instaead this is what I found The state of the system was:

Code:
[root@mythtv ~]# cat /etc/webmin/miniserv.users
root::0
[root@mythtv ~]# cat /etc/webmin/webmin.acl
root: acl adsl-client apache at backup-config bandwidth bind8 burner change-user cluster-copy cluster-cron cluster-passwd cluster-shell cluster-software cluster-useradmin cluster-usermin cluster-webmin cron custom dhcpd dnsadmin dovecot exim exports fdisk fetchmail file filter firewall format fsdump grub htaccess-htpasswd idmapd init inittab ipfilter ipfw krb5 ldap-client ldap-server lilo logrotate lpadmin lvm mailboxes mailcap man mount mysql net nis openslp pacman pam passwd phpini postfix postgresql ppp-client proc procmail proftpd pserver quota raid rbac samba servers shell smf software spam squid sshd status stunnel syslog-ng syslog tcpwrappers telnet time tunnel updown useradmin usermin webmin webminlog xinetd zones


Based on this article, I added the following to /etc/webmin/miniserv.users

Quote:
myusername:hash_from_etc/shadow:0


After restart:

Code:
sv restart webmin


This allowed me to logon, but with no functionality. To add functionality visit /etc/webmin/webmin.acl and add the user privileges to the list. Just in case:

Code:
myusername: acl adsl-client apache at backup-config bandwidth bind8 burner change-user cluster-copy cluster-cron cluster-passwd cluster-shell cluster-software cluster-useradmin cluster-usermin cluster-webmin cron custom dhcpd dnsadmin dovecot exim exports fdisk fetchmail file filter firewall format fsdump grub htaccess-htpasswd idmapd init inittab ipfilter ipfw krb5 ldap-client ldap-server lilo logrotate lpadmin lvm mailboxes mailcap man mount mysql net nis openslp pacman pam passwd phpini postfix postgresql ppp-client proc procmail proftpd pserver quota raid rbac samba servers shell smf software spam squid sshd status stunnel syslog-ng syslog tcpwrappers telnet time tunnel updown useradmin usermin webmin webminlog xinetd zones


Ideally, there would be a command like useradd that would add the user and the password has would not be needed /etc/webmin/miniserv.users. Maybe someone can suggest a more elegant method for managing passwords and adding users.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/