Posts

Showing posts with the label root

Project Wild Penguin 4.4.2017: Removing lock from a file locked through root

Image
While working on my secret project. I came across several files on my external hard drive that had a lock icon on them. On researching, I found that it is because that my current user has only read permission and write permission is for root user only. So, I searched for a way to remove the root lock from the files. I came across several solutions. The best one is the following: chmod ugo+rw myfile.txt     Enjoy thix xkcd comic about authorization:   Source: https://askubuntu.com/questions/155874/is-it-possible-to-remove-lock-from-a-file-locked-through-root. https://xkcd.com/1200/

Reset lost root password in Ubuntu

Image
Recently while installing Xubuntu 12.04 on my old PC, I encounter the problem where Xubuntu was not accepting my root/admin password that I set during the installation. I found the solution to my problem on http://askubuntu.com/questions/24006/how-do-i-reset-a-lost-administrative-password. I'm posting this solution here so that I can keep a record of the problem I've faced and working solutions for them. By default the first user's account is an administrative account, so if the UI is prompting you for a password it's probably that person's user password. If the user doesn't remember their password you need to reset it. To do this you need to boot into recovery mode. Boot up the machine, and  after  the BIOS screen, hold down the left  Shift  key. You will then be prompted by a menu that looks something like this: I've noticed on some systems that timing when to hit the left  Shift  key can be tricky, sometimes I miss it and need to try it ...