NSA 325 v2 unable to delete file
As the title suggests I'm unable to delete some files (through Windows File Explorer, Web Interface or SSH).
Files I can delete have Admin as the owner with permissions rwxrwxrwx
Files I cannot delete have 10018 as the owner with permissions rwxr-sr-x
I am unable to change the permissions.
Any ideas how to resolve this?
Thanks,
Darren
All Replies
-
That is a strange list of attributes, rwxr-sr-x. The set-group-ID bit is set, which means it set the process’s effective group ID to that of the file, when executed. If the group is root, or 0 (zero), then maybe it's malware?
Anyway, the ability to delete a file is not a consequence of the file attributes, but of the directory attributes. I think you have no write access for that directory, maybe because it's 'w' bit isn't set.
0 -
Thanks for the quick response. Can you recommend the best way to edit permissions please?
the folder structure is: NFS\ABC\DEF\GHI\file.jpg
I can delete other folders from folder ABC but cannot delete folder DEF or the file.jpg
I cannot change the permissions, in Windows 10 file explorer, of folder DEF or GHI. Error: Failed to enumerate objects in the container. Access is denied.
Thank you, again.0 -
Is it possible that the other, deleteable directories in ABC were empty? You can't delete a not-empty directory, so when a directory contains a non-deleteable file, you can't delete it, although you have the right permissions.
In this case I'd login over ssh, and execute:
cd /path/to/ABC su chmod -R a+w DEF
to give everybody write access to every file in DEF. If you don't know where ABC is located, execute
cat /etc/exports
to see the location of all NFS exports.
But maybe you should first execute 'dmesg', to see if there is a filesystem corruption.
1 -
Deleteable directories in ABC not empty.
Changed permissions as suggeseted and great, that worked. Thank you so much.
0
Categories
- All Categories
- 415 Beta Program
- 2.4K Nebula
- 151 Nebula Ideas
- 98 Nebula Status and Incidents
- 5.7K Security
- 277 USG FLEX H Series
- 277 Security Ideas
- 1.4K Switch
- 74 Switch Ideas
- 1.1K Wireless
- 42 Wireless Ideas
- 6.4K Consumer Product
- 250 Service & License
- 395 News and Release
- 85 Security Advisories
- 29 Education Center
- 10 [Campaign] Zyxel Network Detective
- 3.6K FAQ
- 34 Documents
- 34 Nebula Monthly Express
- 85 About Community
- 75 Security Highlight