[Info-vax] How to delete directory someone created in my directory

JF Mezei jfmezei.spamnot at vaxination.ca
Fri Mar 6 11:57:31 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.


Ok, there are 3 issues here.

A properly created directory will be created with you as owner, but you
still cannot delete it by default.

A properly created directory may be yours, but you won't be allowed to
delete it if there are files inside.

An improperly created directory may belong to someone else, in which
case, you'll probably need the system manager to fix it.

1- Check onwership:

DIR/SECURITY  mysubdir.dir

This will show if the directory file belongs to you or not. (normally
should).


2- Change protection of directory:

SET FILE mysubdir.dir/prot=(o:rwed)
	(this lets you read/write/execute/delete the file)

Emptying the directory is less user friendly:

SET FILE [.mysubdir...]*.dir/prot=(o:rwed)/log
	this sets any subdirectories below to be deletable.

DELETE [.mysubdir...]*.*;* /log

This may generate errors if it tries to delete non-empty subdirectories.
You re-issue the above commands until all file and all subdirectories
have been deleted.

DIR [.mysubdir] should now yield an empty directory.

You shoud now be able to

DELE/LOG mysubdir.dir;*




More information about the Info-vax mailing list