I'm uing ubuntu 12.04 desktop. I have 3 users: user1(administrator), user2(standard) and guest. I wanted to disable user1 and enable user2 which auto logs on with no password but after I did that I can't login to user1 and user2 accounts except the guest session user. I'm striped off every administrative privileges. I don't know which options are available to me and how do I enable root or user which is an administrator?
(Disabling and locking a user account both mean the same thing.)
To disable / lock the user account use below command:
To put an expire date to an user account so that it automatically gets disabled / locked.
To re-enable a disabled user, issue the passwd command with the -u option.
To enable the root account and change the root password use below steps.
Enter the new password for root account and then exit. if this does not solve the issue let me know.
Please feel free to let me know if you need anything else or any further clarification.
Use this to lock an account:
and this to unlock an account so locked: