I have a standard account with no password, then in the terminal it aksed for my password to install a program, I tried just ENTER and the adminstrators password but none worked, then I tried to create a password but I can't cause it says that the current password is wrong, but I haven't made a password yet! what's going on? Any ideas?
From my reading of your question it appears that you already have an administrator user on the machine, and you do know that user's password. From that administrator's account you added another user account, without setting a password for it. Now, when you log in as that second non-admin user, you can't install programs because it asks you for a password and you can't give it the password because you haven't set it. Is that right?
If I understood you right, then you need to do the following steps:
log in as your original administartor user.
in console, type
sudo passwd myotheruser
to give the
myotheruseraccount permissions to install software, you can add it to
admingroup (again, while logged in as the original administrator user):
sudo usermod -G admin myotheruser
After that your
myotheruser account will be able to use
sudo commands, install software and will have essentially the same privileges as your original administrator account.
I hope you must have entered a password during installation for sure, if you dont remember and you have access to any other user account with administrator privileges, you can set password for this user from that account. For that you can use terminal,
Login to other account
ctrl+alt+t brings terminal screen type
sudo passwd rohith
here instead of rohith give user name of locked account for which you have lost password.
now you have to enter current user password and then you can enter new password for the other user. and then login to that account with that password.
Second method is by logging into debug mode from grub, and following same command as above
It seems that the root (administrator) user doesn't have a password. Just open a Terminal (Dash >> Terminal) and enter the following command:
sudo passwd root
And then enter the password twice. If it doesn't work (sudo shouldn't work if root hasn't a password) try logging in as root on a separated TTY. Please, read all the answer before continuing! Press
CTRL+ALT+F2 and enter
root. When it asks you for a password, just press enter. Then enter the following command:
And enter the password twice. Maybe it'll work!
For going back to the graphical interface (the desktop) just press