WelcomeUser Guide
ToSPrivacyCanary
DonateBugsLicense

©2024 Poal.co

1.4K

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)

[–] 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.

[–] 2 pts

To find out who owns a folder in Linux, you can use the following commands123: ls -l filename: This command will show you a list of all the files in the directory, as well as their permissions. The owner of the directory will be the name listed after the “rwx” permissions. find directoryname -exec stat -c '%U %n' {} ;: This command will display the owners of a directory, its subdirectories, and the files in them using the stat command.

might be owned by the system idk

https://www.howtouselinux.com/post/how-to-find-the-owner-of-a-file-in-linux

[–] 2 pts

You're on a network drive? That complicates things, the device itself may be preventing that. You may have to log in and change permissions from the NAS itself.