Cannot delete a folder or change permission of hidden files within the folder

Status
Not open for further replies.

Doug99

Cadet
Joined
Nov 14, 2016
Messages
9
I have a music directory with several folders that I cannot remove. I am not sure what is going on but what I do know is that these folders contain hidden files. I have tried connecting to the share as root to delete the directories without success. Ideally what I would like to do is reset the owner and permissions of all files and folders within the music share. How do I do this?
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
chown the directories in question.
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,553
I have a music directory with several folders that I cannot remove. I am not sure what is going on but what I do know is that these folders contain hidden files. I have tried connecting to the share as root to delete the directories without success. Ideally what I would like to do is reset the owner and permissions of all files and folders within the music share. How do I do this?

Assuming this is an SMB share, if you're feeling incredibly lazy, you can run the command winacl -a reset -O <owner> -r -p <path to music share> This will grant Owner and Owner Group "full control", and everyone else "read-only" access, and change the owner to the one you specify with the -O flag.
 

Doug99

Cadet
Joined
Nov 14, 2016
Messages
9
Thank you for the help. I did login to freenas over ssh and run a chown of the entire media share which solved the problem.
 
Status
Not open for further replies.
Top