Link to home
Start Free TrialLog in
Avatar of iamcheese

asked on

Delete without permissions

Hi all,

I'm pretty sure this isn't possible, but I figured I'd give it a shot anyways.  I work at a school where we have a dedicated file server for the students.  Each student has his own network folder, and several courses have folders as well.  Unfortunately, the way the permissions were originally set up, no one has any permissions on the folder except the respective student.  This is easy to fix, but many students have folders which go several layers deep, and the only way I've been able to delete them is to go file by file, folder by folder taking ownership and giving admins the rights to delete them.  This works fine except it is extremely tedious, but it has to be done to avoid losing space over students who already graduated.  Is there any other option you guys can think of?

Avatar of Pete Long
Pete Long
Flag of United Kingdom of Great Britain and Northern Ireland image

If you tick the box that says allow inheritable permissions from this object to propagate to child objects (not sure on the wording but its something like that) then take ownership of the top level folder - it will ask you if you want to replace ownership on all the child  objects, just tick yes
Properties >security > advanced > permissions > tick the box "replace permission entries on all child objects............"
Avatar of elbereth21
Flag of Italy image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of iamcheese



I had tried this earlier, and no matter what I do, I get hundreds of files that come up "Access is denied."  I haven't found any way around this, even when I take ownership of the folder I'm trying to delete, or the top level folder.


Thanks for the link.  I'm going to try it out and keep you guys posted.

Thanks for the help guys

that worked wonderfully.  after I ran that I was able to replace permissions on the child objects with ease, save for a few files.  One question though, some of the files I was unable to delete because it would give a "Can't find specified file" error or "error reading from disk" error.  Have you ever encountered anything like that before or do you think the files were like that beforehand?  Unfortunately I have no way of verifying.  Thanks
Probably it depends on long names for files and folders, users tend to use them a lot and unfortunately Microsoft hasn't  found yet, an appropriate way to deal with long names. If possible, before deleting them, try to rename the higher folders with very short names (e.g. call them 1/2/3 and so on).
very true.  looking at the files now I notice they're all from Macs, and the students had unconventional filenames.  Thanks for all your help.  That saved me several hours so I'm upping the points.
You are very welcome.