the root stop working

Asked by dane gutzmer

i ran a sudo to try and private a user account but now i log in to the root account and every thing is gone all i see are a few erro messages and then the jus the desktop screen the panels at the top or bottom of the screen do not come up either the root no longer works ......so i then log into another user which still work deleted the root and now i cant add any other root or user

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu sudo Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Root logon is NOT advised NOR supported.

What happens when you login as your user which was created when you installed? There is only ONE root user, root and you cannot add another. You can however boot to root recovery mode and create a new user and add it to the 'admin' group and it will be able to use sudo and gksudo (or kdesu in KDE).

If you hold shift at boot, select recovery mode, then select root, you can then run:

useradd -G admin newuser; passwd newuser

You can now login as newuser and use sudo / gksudo / kdesu. Obviously change newuser to a name you wish to use. It must be unique.

You can now run:

reboot

and login as the new user.

Can you help with this problem?

Provide an answer of your own, or ask dane gutzmer for more information if necessary.

To post a message you must log in.