Zentyal Forum, Linux Small Business Server

Zentyal Server => Installation and Upgrades => Topic started by: JPB on August 27, 2010, 08:40:00 am

Title: Reset Administrator Password for Dashboard
Post by: JPB on August 27, 2010, 08:40:00 am
In this morning's Update "aptitude safe-upgrade" updated some ebox/Zentyal components.
I do this daily till Zentyal become released in a few days.

The problem now is that my Dashboard Admin password is NOT accepted, I guess the LDAP was messed up.

How can I fix this and reset the Dashboard password with the command-line?
https://zentyal.domain.tld/LOGIN

Thanx ???
Title: Re: Reset Administrator Password for Dashboard
Post by: Kamilion on August 27, 2010, 11:46:08 am
Working on it here:
http://forum.ebox-platform.com/index.php?topic=4702.0 (http://forum.ebox-platform.com/index.php?topic=4702.0)
Got bit by this too; I'm working on a solution.

New Zentyal RC2 behavior is:

Local accounts on the zentyal machine in the 'admin' group are allowed to log into ebox's UI.
Solution: create a local account and add it to the admin group (creating the admin group first if nonexistant) and use it's shell password to login.

I'm still figuring out how to do the same with *no* local account (LDAP+PAM only) in the above thread.

Using the Zentyal installer will create such a local user in the admin group as part of the install process.

Installing manually from PPA will *not*.
Title: Re: Reset Administrator Password for Dashboard
Post by: Kamilion on August 27, 2010, 10:38:05 pm
Easy fix. SSH in and add the admin group. (It will do nothing if the group already exists.)

Code: [Select]
addgroup --system admin
Code: [Select]
Adding group `admin' (GID 121) ...
Done.
Code: [Select]
addgroup --system admin
Code: [Select]
addgroup: The group `admin' already exists as a system group. Exiting.
Code: [Select]
adduser kamilion admin
Code: [Select]
Adding user `kamilion' to group `admin' ...
Adding user kamilion to group admin
Done.

In this case, admin is a local group, and kamilion is a zentyal ldap user.

OPTIONALLY, allow sudo access for 'admin' group users:
Code: [Select]
echo "%admin ALL=(ALL) ALL" >> /etc/sudoers
* Cribbed from Ubuntu Forums (http://ubuntuforums.org/showpost.php?p=1010839&postcount=8)
Title: Re: Reset Administrator Password for Dashboard
Post by: sixstone on September 01, 2010, 11:19:59 am
Kudos kamilion for such a detailed howto ;)