WelcomeUser Guide
ToSPrivacyCanary
DonateBugsLicense

©2024 Poal.co

861

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

sudo chown -R 777 /the/folder/location that will change permission of folder and everything in it to your ownership

[–] 2 pts

Interesting. I tried "sudo chmod -R 777 06082023" first. Please hold.

EDIT: chown: cannot access '06082023': Permission denied

[–] 3 pts

I think they both work iirc but there's some minute difference i forget that's prob important lol

[–] 2 pts
[–] 2 pts

chown changes ownership, chmod changes permissions.

Can you sudo su and elevate to a complete root user?

[–] 2 pts

Can you sudo su and elevate to a complete root user?

Yep. I did that then tried the command from my OP again and got the same error. What confuses me is that I can do whatever the heck I want to other subfolders in this same NAS folder. The only one I can change / delete is the 06082023 folder.

[–] 1 pt

something like this perhaps if you're on an account w/ less access sudo chown -r username anaconda3

[–] 1 pt

I'm the only account on the server, and I can delete other files and folders on the NAS just fine. It's only this one folder.