Directory permissions changed by mistake, any idea why?
by burning from LinuxQuestions.org on (#55CCK)
I tried downloading a pre-built package of SBo from https://sbopkg.org/downloads.php. Upon doing so I extracted the tarball and I think I made a mistake in doing so or I passed the wrong args so I deleted everything I just downloaded and tried downloading it again.
But upon attempting to download a 2nd time, it then prompted me where I wanted to save the file, which it didn't do last time. Then when I selected my /home/username/Downloads directory, it said I had invalid save permissions when I had them just moments ago. I never ran any chown commands in the process.
So Changing into my /home/username/ directory, I ran ls -l to list all the permissions and sure enough, all of them sans the Downloads directory were owned by my user, with /home/username/Downloads being, for some reason, owned by root user and group. Exiting from my user account and logging into root, I changed directories into /home/username/Downloads and managed to successfully change the permissions back to username and users group, but I'm still stumped as to how or why the perms just randomly changed after I downloaded/deleted the file I downloaded?
The only commands I ran were rm -rf on the files within /home/username/Downloads.


But upon attempting to download a 2nd time, it then prompted me where I wanted to save the file, which it didn't do last time. Then when I selected my /home/username/Downloads directory, it said I had invalid save permissions when I had them just moments ago. I never ran any chown commands in the process.
So Changing into my /home/username/ directory, I ran ls -l to list all the permissions and sure enough, all of them sans the Downloads directory were owned by my user, with /home/username/Downloads being, for some reason, owned by root user and group. Exiting from my user account and logging into root, I changed directories into /home/username/Downloads and managed to successfully change the permissions back to username and users group, but I'm still stumped as to how or why the perms just randomly changed after I downloaded/deleted the file I downloaded?
The only commands I ran were rm -rf on the files within /home/username/Downloads.