Page 1 of 1

su

Posted: 20 Feb 2008, 16:21
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?

Posted: 20 Feb 2008, 17:33
by John W
Instead of "su -", just go with "su".

Posted: 21 Feb 2008, 13:18
by niclas
John W wrote:Instead of "su -", just go with "su".
That gives exactly the same message...

Posted: 22 Feb 2008, 02:13
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

Posted: 22 Feb 2008, 13:53
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.

Posted: 23 Feb 2008, 08:26
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

Posted: 24 Feb 2008, 10:06
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?

Posted: 24 Feb 2008, 14:53
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

Posted: 26 Feb 2008, 12:10
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