SliTaz SliTaz Forum archive

This forum is now a read-only archive

The SliTaz community has moved to Maille, a forum made for SliTaz.

We looked hard for a replacement for this aging forum, including a move from bbPress to FluxBB last June. But spam bots now get through sign-up even with mail confirmation, and these forum engines are barely maintained anymore. So we wrote a forum in the SliTaz spirit: small, fast, no JavaScript, works on old machines and in text browsers. Everything here stays readable.

Go to Maille

You are not logged in.

#1 2017-06-25 13:20:28

kalobhromor
Member
Registered: 2017-06-23
Posts: 3

Can't Log In As Root

While logged in as root, I accidentally deleted all the files and directories in the /home/root/ directory (including the hidden ones) and logged out.  Now, after restarting the computer, I am not able to log in as root.

The following error message is displayed:

Failed to execute login command.

But when I log in as another user and use the su command, it works fine.

What can I do?

Offline

#2 2017-06-25 19:15:52

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: Can't Log In As Root

Boot into the slitaz version and flavor live cd you used as the source for the install.

Login as root.

Mount the partition that contains the install to a directory.

Restore the missing files with [c]cp -a[/c] to copy the required system files from the live system your booted into to the mounted install.

Offline

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

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.015 seconds, 7 queries executed - Memory usage: 1.53 MiB (Peak: 1.77 MiB) ]