Plasma wrote:Ok so Today I came across a problem completely of my own making.
While creating the folders for media on my NAS it seems I may have mucked up the permissions.
I have a folder that is owned by me but the contents are all owned by admin so I have no write access.
I'd like an easy way to fix this which I figured I could do with the web file manager, but the "Properties" only allows me to set "read", "read/write" etc against Owner, Group and Public. However it won't actually let me change the Owner or the Group etc!
Is is simply a case of SSH in to the NAS and set them manually with chmod / chown etc? Don't want to bugger it all up now I have it working almost right.
As a side note I'm surprised you can't set the Owner and Group from anywhere in the Admin Interface, unless you can and I haven't found it yet.
Plasma
SSH into your NAS (using "
admin" credentials) and ....
Note: Use "Cut&Paste" to ensure you copy this accurately
- Code: Select all
cd /share/MD0_DATA/Multimedia/plasma
/bin/chown -R plasma.everyone * .[a-z]* .
exit
The "chown" command above will change ownership to: owner:plasma, group:everyone, for all files, (including those beginning with a period followed by a lowercase letter), recursively. (The last period changes the ownership on the present directory itself as well).
Note1: You need to use the ".[a-z]*" construct to prevent it from changing the ownership on "..", which is why you can't simply use ".*" for that second filename
Note2: Due to QNAP's insistence on using Busybox v1.01, it prevents using the "-v" switch with "chown", as this switch is not supported in Busybox v1.01
Once you actually own the files again you should be able to change the permissions via WFM (Web File Manager) again, as you again own them.
Hope this helps...
Patrick