WelcomeUser Guide
ToSPrivacyCanary
DonateBugsLicense

©2024 Poal.co

518

I create daily backups on a NAS drive. When the new one is complete I delete the previous day. I've been unable to delete the folder from the 8th because I don't have permissions to delete files. I just deleted 06112023, so I definitely have permissions on the main folder.

If I open the root folder itself in terminal and run "sudo rm -rf 06082023" I get the same lack of permission error. What do?

(06082023 is the folder I'm trying to delete.)

I create daily backups on a NAS drive. When the new one is complete I delete the previous day. I've been unable to delete the folder from the 8th because I don't have permissions to delete files. I just deleted 06112023, so I definitely have permissions on the main folder. If I open the root folder itself in terminal and run "sudo rm -rf 06082023" I get the same lack of permission error. What do? (06082023 is the folder I'm trying to delete.)

(post is archived)

[–] 2 pts (edited )

Wow. That's interesting, I've never encountered a situation where root couldn't delete a folder. It's possible there's corruption somewhere else, I'd be wary of other things going bad.

My solution would be to move what you want out of that directory, go up a level, and then sudo rm -r /path/to/directory and just delete the top level directory that contains the bad file(s).

Just make sure you're deleting the correct directory, -r is a powerful switch.

However, if that doesn't work, you have issues elsewhere that may not be a simple permissions error. Sometimes the gui of the NAS can override stuff the command shell doesn't do, if you have one of those.

[–] 2 pts

I was contemplating something like that. I have a USB drive that will hold everything in the "Daily Backups" folder and am copying it all over now. Once I'm sure I have the data I will try to delete the Daily Backups folder itself. Stay tuned. ;-)

[–] 2 pts

Standing by.

[–] 1 pt

I backed up everything on the NAS, then tried to delete the Backups folder itself. Everything within it was deleted EXCEPT the 08062023 folder!

At this point it might be worth reformatting the NAS.