ubuntu root account accidently changed to standard account

Asked by Tanmoy Kumar Thakur

i accidently changed my one and only root account to standard account. now i am not able to do any work that need root permission. please help.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu shadow Edit question
Assignee:
No assignee Edit question
Solved by:
Tanmoy Kumar Thakur
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

This isn't possible. Root will always be root and can never lose power. If you mean your user account that you use sudo with then that isn't root, it's your account and only root is root.

Can you give the output of:

groups; lsb_release -a

Thanks

Revision history for this message
Tanmoy Kumar Thakur (tanmoykumarthakur) said :
#2

tanmoy adm cdrom dip plugdev lpadmin sambashare
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04 LTS
Release: 12.04
Codename: precise

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

Yes, that's your user account, not root. If you hold SHIFT at boot and select recovery mode, then select root you can run:

usermod -a -G admin tanmoy; reboot

You will then be in the admin group and be able to use gksudo, sudo and kdesudo :)

Revision history for this message
Tanmoy Kumar Thakur (tanmoykumarthakur) said :
#4

when i put the the command its show 'admin group dose not exist'

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

What have you been doing!?

I suggest you make the group in the root recovery console, then add your user to it

Revision history for this message
Tanmoy Kumar Thakur (tanmoykumarthakur) said :
#6

please give me step by step instruction

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#7
Revision history for this message
Tanmoy Kumar Thakur (tanmoykumarthakur) said :
#8

group creation command give this error "cannot lock /etc/group; try again later". i also try adduser tanmoy adm, it show already in this group

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#9

Sounds like you need to fsck the partition in liveCD

Revision history for this message
Tanmoy Kumar Thakur (tanmoykumarthakur) said :
#10

i solve the problem with help of this link-http://psychocats.net/ubuntu/fixsudo