New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

su

Got problems with Bubba? Then this forum is for you.
Locked
niclas
Posts: 16
Joined: 29 Jan 2007, 03:38

su

Post by niclas »

When I log in with SSH and try to switch user to root I get the following error message:

Code: Select all

niclas@bubba:~$ su -
Password:
You are required to change your password immediately (root enforced)
su: Authentication token is no longer valid; new one required.
Sorry.
niclas@bubba:~$
That means that I can't become root. What can I do?
John W
Posts: 62
Joined: 17 Jan 2007, 11:47

Post by John W »

Instead of "su -", just go with "su".
niclas
Posts: 16
Joined: 29 Jan 2007, 03:38

Post by niclas »

John W wrote:Instead of "su -", just go with "su".
That gives exactly the same message...
tor
Posts: 703
Joined: 06 Dec 2006, 12:24
Contact:

Post by tor »

Quick question,

Which sw version do you run? Is it ordinary Bubba or any of the new releases?

It looks like roots password has expired for some reason.

/Tor
Co-founder OpenProducts and Ex Excito Developer
niclas
Posts: 16
Joined: 29 Jan 2007, 03:38

Post by niclas »

I used the last img-file from http://update.excito.net/install/latest/
But I "solved" the problem by reinstalling it again. Would be good to know what I could have done for this error to appear though so it won't happen again.
tor
Posts: 703
Joined: 06 Dec 2006, 12:24
Contact:

Post by tor »

Hi,

That sounds very strange. What that error message says is essentially that roots password has expired. Which it really should not have done. We use the default settings which should give 99999 days before any user should have to change password, including root.

If this should happen again it would be interesting to see the contents of file /etc/shadow. And espescially roots entry in it.

/Tor
Co-founder OpenProducts and Ex Excito Developer
niclas
Posts: 16
Joined: 29 Jan 2007, 03:38

Post by niclas »

After installing, the date of the bubba is always (as it seems) 1 January 1970. I manually updated the time through the webinterface after setting the root password. 99999 days should be something like 273 years so this shouldn't matter, but maybe it does anyway?
tor
Posts: 703
Joined: 06 Dec 2006, 12:24
Contact:

Post by tor »

Hi again Niclas,

Yeah, that is most likely the problem. The installer uses the network for getting the current time. And if that fails you will get a date like that. And its most likely the problem. You get a date before the latest password change.

But in your case. Did the problem go away when you set a correct date?

/Tor
Co-founder OpenProducts and Ex Excito Developer
niclas
Posts: 16
Joined: 29 Jan 2007, 03:38

Post by niclas »

No, the problem went away when I reinstalled again. The problem probably came when I set the correct date. I'm not sure about that though because I didn't notice it directly after
Locked