Avatar of iamcheese
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?

Thanks,
Charles
OS Security

Avatar of undefined
Last Comment
elbereth21

8/22/2022 - Mon
Pete Long

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
Pete Long

Properties >security > advanced > permissions > tick the box "replace permission entries on all child objects............"
ASKER CERTIFIED SOLUTION
elbereth21

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
elbereth21

This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
iamcheese

ASKER
Pete,

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.

elbereth,

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

Thanks for the help guys
iamcheese

ASKER
elbereth,

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
elbereth21

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).
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
iamcheese

ASKER
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.
elbereth21

You are very welcome.