SliTaz SliTaz Forum

You are not logged in.

#1 2014-09-20 18:16:18

miro_ilias
Member
Registered: 2014-09-20
Posts: 1

forgot login and password

Dear experts,

few years ago I installed slitaz linux on my old PC, set some login/password and it was working.

But (few days ago when I returned) I totally forgot the login and password. Advices I found on internet (like tux) are not working.

Is there any way to fix this login problem without reinstalling the whole system ? If not, no problem, I will reinstall the whole slitaz operating system with the newest 4.0 version.

Best, Miro

Offline

#2 2014-09-20 19:15:07

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: forgot login and password

Hi Miro,

In short. There is a file in the SliTaz (like in any other Linux) that contains passwords. If you'll find a way to edit it, then you can reset passwords.

What the file? Actually there's two files: /etc/shadow and /etc/shadow-.

How to edit them? You can boot Live CD or Live USB on your machine. Or remove your hard disk and mount it to another machine with Linux installed. And you should be root super user.

If you copy shadow files from Live CD to your system, then you'll get default passwords (password root for root user, and empty password for tux user). Not bad if you copy current shadow files somewhere before you edit or substitute them.

You can edit files manually. Boot SliTaz Live CD, mount and open disk partition that contains your SliTaz installation using PCManFM. Click PCManFM's menu Tool -> Open Current Folder as Root, answer default root password. Go to your installed system folder (something like /media/your SliTaz/etc and edit shadow files by double click on them.

Each line begins with user name (login). Password contains between first and second colons (":" symbols) in the encoded form.

Note $1$EbR327ag$7NFmnOi7JQc5/lG0JLiU8/ means "root" password.

And empty password is nothing between :: in the "/etc/shadow" file and exclamation sign between :: (:!:) in the "/etc/shadow-" file.

Maybe I wrong, I just looked at files in my Live USB.

Good luck! And don't forget to change your passwords after successful boot onto your system!

PS. I'm reading this fine manual (RTFM) now:

http://linux.die.net/man/5/passwd

http://linux.die.net/man/5/shadow

Seems like "shadow-" is just a "previous" version of "shadow" file and you may not edit it.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.016 seconds, 9 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]