PDA

View Full Version : How do i enable my own account back?



hurl380
4th May 2006, 02:06 AM
I was trying to figure why avg didnít have permission to update even do I was root. Well to make things short. I made some changes under groups and accounts, something like that and next thing I know my account was disabled. I can't log back on unless I hit f10 and type in my root password to take my to a login option screen. How do enable the account back to log in at regular user I was? thanks

JordanN
4th May 2006, 08:22 AM
There are probably long ways to do it, but this seems simpler. These instructions will delete your account and then recreate it.

Log in at the console (CTRL+ALT+F1) as root.

Back up your home directory:

cp -R /home/USERNAME /home/USERNAME.back

Delete your existing user account:

userdel USERNAME

Recreate your user account:

useradd USERNAME; passwd USERNAME

Restore the contents of your home directory:


cp -Rf /home/USERNAME.back /home/USERNAME
rm -Rf /home/USERNAME.back


Make sure your useraccount owns everything in your home directory:

chown -R USERNAME:USERNAME /home/USERNAME

Make sure no one else can see or modify the contents of your home directory:

chmod -R 700 /home/USERNAME

hurl380
4th May 2006, 08:53 PM
I cant login at the terminal because the account is disabled.