OpenVMS delete dir problem

No longer supported!

Moderator: Moderators

Postby miker_alpha » Sat Dec 18, 2004 1:01 pm

See my original reply:

There is/should be/could be a file called LOGIN.COM in your home directory, consisting of DCL commands that are executed every time you log on - including via FTP.

Put the $SET FILE... command in that file, and logon. Hopefully the command will then be activated. As I said before you only have to do this once, so you can then revert to your original LOGIN.COM

What error did "quote rmd test.dir;" return?

MikeR
Look for OpenVMS help on my webpage
Check for QOTD here.
Image
User avatar
miker_alpha
Moderator
Moderator
 
Posts: 256
Joined: Sat May 08, 2004 9:20 am
Location: Kibbutz Tzora, Israel

Postby aarn » Sat Dec 18, 2004 3:49 pm

There is no LOGIN.COM in my login ftp directory. I've created it ($ SET FILE [...]*.DIR;1 /PROT=O:RWED )
and uploaded to a server but directories still have RWE attributes.

>What error did "quote rmd test.dir;" return?
The answer was:
550-Failed to delete directory ...
550 ACP could not mark file for deletion
aarn
Newbie
 
Posts: 5
Joined: Sat Dec 11, 2004 12:31 pm

Postby miker_alpha » Sat Dec 18, 2004 9:00 pm

Mike_R_$type LOGIN.COM;
$ set file *.dir;1 /prot=O:rwed
Mike_R_$


Mike_R_$dir/sec *.dir

Directory DKA200:[HOME.M.MIKER]

KRB.DIR;1 [AP_HTTPD,MIKER] (RWE,RWE,,)
...

....
login using wsFTP from a PC at home
....

Mike_R_$dir/sec *.dir

Directory DKA200:[HOME.M.MIKER]

KRB.DIR;1 [AP_HTTPD,MIKER] (RWE,RWED,,)
...

The fields in brackets () are protections of the file for SYSTEM, OWNER, GROUP and WORLD,
R=READ, W=WRITE, E=EXECUTE, D=DELETE
(EXECUTE on a directory implies the ability to search that directory.)

So as you see it works, at least in principle.
Perhaps try without the [...]
You could also as a "one-off" try putting
$ DELETE TEST;DIR;1
in your LOGIN.COM

(i) Why do you need to delete a directory?
(ii) To use DCL commands easily, as well as learn OpenVMS I really recommend using a "shell" type account!

MikeR
Look for OpenVMS help on my webpage
Check for QOTD here.
Image
User avatar
miker_alpha
Moderator
Moderator
 
Posts: 256
Joined: Sat May 08, 2004 9:20 am
Location: Kibbutz Tzora, Israel

Postby aarn » Sat Dec 18, 2004 10:42 pm

Seems LOGIN.COM does not work for me. I've tried to add delete file command there but file has not been deleted.

Here is a directory list:
ABC.DIR;1 1/4 18-DEC-2004 21:35:05 [USER,AARN] (RWE,RWE,RWE,RWE)

ABC is a dir I've created.

After some experiments I discovered it could change attributes to RWED if any file was written into it. Probably that is a solution.

Thanks a lot for your help.
aarn
Newbie
 
Posts: 5
Joined: Sat Dec 11, 2004 12:31 pm

Previous

Return to FTP accounts

Who is online

Users browsing this forum: No registered users and 12 guests

cron