Koozali.org: home of the SME Server

Recover root password

pietdejong

Recover root password
« on: June 22, 2004, 08:14:46 AM »
Hi All,

Does anyone know how to recover a lost root password ?

I am simply asking out of interest.

Many thanks
Piet

Jon_Reynolds

Recover root password
« Reply #1 on: June 22, 2004, 09:38:17 AM »
Boot into 'single user' mode and mount the etc directory and change the root password using an editor or issueing the passwd command, I think. Someone correct me if I'm wrong.

Jon

bobk

Recover root password
« Reply #2 on: June 23, 2004, 12:20:16 AM »
Quote from: "Jon_Reynolds"
Boot into 'single user' mode and mount the etc directory and change the root password using an editor or issueing the passwd command, I think. Someone correct me if I'm wrong.

Jon


Basicly correct but he is how to do it.

If you loose the "root" "admin" password do this -

hit CTL-X when the 'e-smith' or 'contribs.org' graphic comes up at boot-time. This puts it into lilo text input mode.
Type:

esmith single

This boots e-smith into single user mode and logs you on without a root password but with SU powers!

Now type

passwd root
enter the new root password and confirm

passwd admin
enter the new admin password and confirm (same as root)

Then type

init 7

PhilV

Recover root password
« Reply #3 on: June 23, 2004, 12:11:22 PM »
Ummm... maybe I'm stating the obvious here, but is this not a security problem? If someone has access to the main terminal, there is almost no point in having the password if ANYONE with this info can change it.

Phil

Jon_Reynolds

Recover root password
« Reply #4 on: June 23, 2004, 12:39:07 PM »
Hi Phil,

You are quite right in your response to this. There is a way to   disallow this. I can't remember how exactly this is done but it is actually quite easy. Maybe someone else could shed some light on this.

Jon

stauder

Recover root password
« Reply #5 on: June 23, 2004, 01:44:36 PM »
no. I still can use my CDROM based linux, mount the SME root filesystem and delete the password from /etc/shadow. FOr the case that you have no CDROM drive installed, i would take the machine physically :-)

Quote from: "PhilV"
Ummm... maybe I'm stating the obvious here, but is this not a security problem? If someone has access to the main terminal, there is almost no point in having the password if ANYONE with this info can change it.

Phil

schirrms

Recover root password
« Reply #6 on: June 23, 2004, 08:46:18 PM »
Quote from: "PhilV"
Ummm... maybe I'm stating the obvious here, but is this not a security problem? If someone has access to the main terminal, there is almost no point in having the password if ANYONE with this info can change it.

Phil


Hi,

Generally speaking, at the moment you give a physical access to a server, and you accept a down time (shuting hard the system, reboot in single, change a password and then go back to level 7 is not exactly a discete action) there's no way to say that a system is still secure.
Even if the person with an access don't change anything on your filesystem, it's more than easy to do a complete copy of the drive(s), and there no security at all.

Regards,

Offline Boris

  • *
  • 783
  • +0/-0
Recover root password
« Reply #7 on: June 23, 2004, 09:09:23 PM »
If there is physical access to the server, there is no good protection from booting server off CDROM or floppy (or simply stealing the server). The only (presumable) good option is to encrypt file system on the server. This is not (yet) supported by SME.
You can chain server to the rack or desk, you can disable cdrom and floppy drive, disconnect and disable keyboard, but usually why not just limit the access to it by locking it in the (server) room?
...