Could you help me to reset my root password?
After upgrade from Ubuntu 14.04 to 16.04 I lost my previous ability to delete my files. Now my laptop is full and I can not remove anything and install updates or whatever.
I am set as administrator and with dmin rights, but when I go to any file and try to deley shows me im not the owner ad have no premission. The shown user is like 1001 who is also me. Dont have connection with the person who made the first laptop installation and who probably set himselves as root. I even remember any pass , but dont see any option to enter it as root for that user, because it doesnt appears on the screen.
If you have any suggestions how could I deal with the situation, please, let me know.
I would save what I want to keep on an external HDD. Then clean install a new OS, and create new password. That would mean you only have what you want, so memory is cleaned.
What do more knowledgeable folk think
In Ubuntu you don’t log in as root for doing administrative tasks.
Instead, you execute commands as root (super user) with the sudo command (always asking you to enter the proper password), but I assume you have been doing this all the time for installing software and updating.
You being unable to do so now, may possibly be the result of a completely full hard disk. Have you tried to delete the files in /tmp?. You might want to try sudo rm -rf /tmp/* and possibly sudo rm -rf /var/log/* and then reboot.
Anyway, as long as you have the administrative password, you can change it with sudo passwd root.
Most likely the problem is that your HD is full and there is no room to delete stuff.
backup what you want and do a reinstall of the system.
You can try this in a terminal
sudo journalctl --vacuum-time=3d
and sudo find /tmp -type f -delete
the first one will erase systemd journals and the second will delete tmp files that should give you enough room to clean the rest of the system.
but you will still need your usr password to do it. If you do not have that password you will need to reinstall.
Hmm, do this and let me know whether it worked.
Prepare a live-usb of any distro, or even Ubuntu 18.04; use it to delete files in your Hard disk. Most probably the files should be filling up your home folder.
So, navigate to your hard disk, then /home/username and you’ll get the folder which contains Documents, Downloads, Pictures, etc… There you can delete files and free up space.
Its my Laptop. One ex employee made the installations. Im not familiar in the technical stuff, just like to use LInux. Didnt had problems with the upgrades for years and many of them made alone. The mess happend when my husband made the last upgrade. He doent use LInux, and just followed the steps upgrading by memory stick with iso file.
<he has no idea how it happend, me either.
I have been making upgrades and operate as asministrator before without need to use root, just when saw I cant delete files and im not owner of my files decided could be done as root.
Ill try your ideafor deleting, but where should I do it- in console or GRUB?
Akito’s advice is the best. Copy what you want to keep to an external drive or DVD and flush the computer. Do a clean install, set the passwords as you like, and make regular exports of valuable data to an external drive.
I have made live usb, and tried to delete from the hd,but nothin worked, or I do not make it right.
I opend the hd as normally, or should I do it in any way through the live usb?
Sorry for the silly question, but really have no idea how is the right