SliTaz SliTaz Forum

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.017 seconds, 8 queries executed - Memory usage: 1.53 MiB (Peak: 1.77 MiB) ]