[Info-vax] How to delete directory someone created in my directory
David J Dachtera
djesys.no at spam.comcast.net
Fri Mar 6 22:24:40 EST 2009
Christopher Lusardi wrote:
>
> (1) Some one created a directory in my directory and I can not delete
> it. I also cannot change the protections of the directory. How do I
> delete it.
Are you the System Manager? If so, SYSPRV will be helpful, or BYPASS.
You need to aqcuire CONTROL access to the directory so you can change
either its ownership (to yourself) or its protection mask (to allow
S:RWD) (BYPASS overrides both).
> (2) How do I delete a non-empty directory.
Well, before you do that, are someone else's files in that directory?
Make sure you're not going to cause "data loss" if you delete files you
did not create.
That said, you'd have to empty the directory first (use RENAME to move
the files to some other directory on the same volume - requires RWD
access to those files, more than likely, or COPY them to a directory on
another physical volume and delete the originals), then you'd be able to
delete the empty directory, given sufficient access.
Hope this helps.
Yeah you can play with SET FILE/NODIRECTORY and SET ENTRY/REMOVE and
such, but that's really making a mess even worse. Try to "go kosher"
first, THEN "get creative" if you must.
D.J.D.
More information about the Info-vax
mailing list