Author Topic: How to change zentyal https login password from terminal  (Read 9421 times)

thorsten

  • Guest
How to change zentyal https login password from terminal
« on: June 05, 2011, 04:32:18 pm »
Hi all,

I can not access my zentyal server with the old password anymore - something happend, but I did not do anything:

The standard password (stored in Firefox) was not accepted anymore. However - the same linux user is the admin of a VMWare Server 2.0 parallely installed to zentyal: The login works. Additionally the terminal login is with the same password / user still possible. Just the login screen of zentyal reports: "Wrong password"...

What can I do to access the system again?

Thanks and best regards
Thorsten

Amendement: OK - not it is really interesting: I can logon the server from its console - the password works for the zentyal screen saver - it looks like the inital administration user  is removed from the zentyal administration group. How can I fix this???
« Last Edit: June 05, 2011, 04:42:49 pm by thorsten »

robb

  • Guest
Re: How to change zentyal https login password from terminal
« Reply #1 on: June 05, 2011, 05:30:52 pm »
Add the user to the group 'admin'


sudo useradd -G {group-name} 'username'

If initial username is zentyal then
sudo useradd -G admin zentyal

if you want to change password:
sudo passwd 'newpassword'
(or from zentyal admin interface)
« Last Edit: June 05, 2011, 05:56:00 pm by robb »

thorsten

  • Guest
Re: How to change zentyal https login password from terminal
« Reply #2 on: June 05, 2011, 07:45:21 pm »
Hi Robb,

no, but thanks - this does not work. The user "teb" is still (correctly) in the admin group and the  change of password is not possible, either:

Code: [Select]
teb@John:~$ sudo useradd -G admin teb
useradd: user 'teb' already exists
teb@John:~$ sudo passwd
passwd: Authentication token manipulation error
passwd: password unchanged
teb@John:~$

Any ideas?

Thanks in advance
Thorsten

robb

  • Guest
Re: How to change zentyal https login password from terminal
« Reply #3 on: June 05, 2011, 11:44:54 pm »
Can you check if that user already is in the admin group?
sudo groups <username>
Or to check all members of a particular group:
to find out all members of a group, type following

egrep "^groupname" /etc/group
fi:
egrep "^adm" /etc/group
egrep "^ftpusers" /etc/group



I did some searching, but wouldn't know if I am going in the right direction. Have a look at this: http://mohammednv.wordpress.com/2008/01/08/authentication-token-manipulation-error-when-changing-user-passwords-in-linux/

thorsten

  • Guest
Re: How to change zentyal https login password from terminal
« Reply #4 on: June 06, 2011, 06:12:58 am »
Hi Robb,

thanks, but no, it does not work:

Quote
teb@John:/$ sudo groups
[sudo] password for teb:
root

Obviously this command does not give the requested output,  so I tried:

Code: [Select]
teb@John:/$ groups
teb adm dialout cdrom plugdev lpadmin sambashare admin libvirtd
teb@John:/$ egrep "^adm" /etc/group[code]
adm:x:4:ebox,teb
admin:x:118:teb

-> The user teb is in the admin group

and

Code: [Select]
teb@John:/$ pwconv
pwconv: cannot lock /etc/passwd; try again later.
teb@John:/$ sudo pwconv
teb@John:/$ passwd
Changing password for teb.
(current) UNIX password:
passwd: Authentication token manipulation error
passwd: password unchanged

OK, I think your Idea points into the correct direction - what about the following: can I restart the complete Zentyal server system from the command line e.g. like: /etc/init.d/zentyal restart ???? I know this is possible from within the splash screen, but I do not have access...

Is there any code for this ? If not, I will try to reboot the complete system. But I try to avoid this - I am afraid to be locked out completely ...

Thanks for any tips and ideas

Best regards
Thorsten

Ed.: some typos corrected
« Last Edit: June 08, 2011, 07:33:22 am by thorsten »

Christian REBIERE

  • Zen Apprentice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: How to change zentyal https login password from terminal
« Reply #5 on: June 07, 2011, 08:49:04 am »
Hi,

I had the same problem on my zentyal server.

Reading your claim, sure I'm in the same case and you gave me an idea !!!

I just tried : "sudo /etc/init.d/ebox restart", then I type password.
After waiting for all the ebox modules stop and start, crossing my fingers, I tried again login to Zentyal web interface, and...
It's all right.

Thank you for your good idea.

Regards

thorsten

  • Guest
Re: How to change zentyal https login password from terminal
« Reply #6 on: June 08, 2011, 07:31:18 am »
Hi all,

for me, a reboot solved the problem.

THX
Thorsten