John
2023-07-17 15:18:52 UTC
Hi,
I think the Subject line says it all?
NAS drive. Win-7. Some files are owned and locked by "Unix
User/nobody" and won't allow my Win-7 box to delete them. [Win-7
Ultimate].
I've tried DOS Command Prompt, changing the permissions, changing
the owner, using the remote management web interface and thinking
about crying.
That last would of course make me feel better but would not really
affect the files.
I've even used PowerShell "Remove-Item *.* -Force" inside the
folder or directory holding the files.
No, I've no idea *how* "NOBODY" got hold of the files.
MS Online support while exceedingly helpful doesn't have a fix for
this one, nor does the drive's manufacturer's website.
In PowerShell, the Get-ACl command tells me that the owner of the
files is someone called "O:S-1-22-1-65534". That's a little weird, but
I'll accept it as an "alias" of Mr. nobody.
The Help for Set-Acl is a little worrying. I'm not entirely sure
how I'd work it but I *think* I would
"C:\PS>$DogACL = get-acl Z:\dog.txt" to store the NAS file's
security inside an ACLObject then
"C:\PS>set-acl -path C:\cat.txt -AclObject $DogACL" to copy a
valid, friendly security description from a file I *know* I own into
the ACLObject for the one I don't.
But that would mean doing them one file at a time, so I *think*
these would be better:
"C:\PS>$newACL = get-acl file0.txt" from a file I *know* I own,
then
"C:\PS>get-childitem Z:\Folder -recurse -include *.* -force |
set-acl -aclobject $newacl" to set the contents of the NAS folder to
be owned by me.
But I've never used PS so I don't know what, if anything, the
drastic repercussions would be. Some gentle hand-holding would be very
much appreciated, thanks.
If it matters, it's a Seagate and I've deleted other stuff from it.
Any aid and comfort would be appreciated. :)
J.
I think the Subject line says it all?
NAS drive. Win-7. Some files are owned and locked by "Unix
User/nobody" and won't allow my Win-7 box to delete them. [Win-7
Ultimate].
I've tried DOS Command Prompt, changing the permissions, changing
the owner, using the remote management web interface and thinking
about crying.
That last would of course make me feel better but would not really
affect the files.
I've even used PowerShell "Remove-Item *.* -Force" inside the
folder or directory holding the files.
No, I've no idea *how* "NOBODY" got hold of the files.
MS Online support while exceedingly helpful doesn't have a fix for
this one, nor does the drive's manufacturer's website.
In PowerShell, the Get-ACl command tells me that the owner of the
files is someone called "O:S-1-22-1-65534". That's a little weird, but
I'll accept it as an "alias" of Mr. nobody.
The Help for Set-Acl is a little worrying. I'm not entirely sure
how I'd work it but I *think* I would
"C:\PS>$DogACL = get-acl Z:\dog.txt" to store the NAS file's
security inside an ACLObject then
"C:\PS>set-acl -path C:\cat.txt -AclObject $DogACL" to copy a
valid, friendly security description from a file I *know* I own into
the ACLObject for the one I don't.
But that would mean doing them one file at a time, so I *think*
these would be better:
"C:\PS>$newACL = get-acl file0.txt" from a file I *know* I own,
then
"C:\PS>get-childitem Z:\Folder -recurse -include *.* -force |
set-acl -aclobject $newacl" to set the contents of the NAS folder to
be owned by me.
But I've never used PS so I don't know what, if anything, the
drastic repercussions would be. Some gentle hand-holding would be very
much appreciated, thanks.
If it matters, it's a Seagate and I've deleted other stuff from it.
Any aid and comfort would be appreciated. :)
J.