home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / vms / 19834 < prev    next >
Encoding:
Internet Message Format  |  1992-12-24  |  3.7 KB

  1. Path: sparky!uunet!spool.mu.edu!agate!dog.ee.lbl.gov!ucbvax!ISTVAX.IST.LU!gloesener
  2. From: gloesener@ISTVAX.IST.LU
  3. Newsgroups: comp.os.vms
  4. Subject: Re: Request help !
  5. Message-ID: <9212241143.AA09264@ucbvax.Berkeley.EDU>
  6. Date: 24 Dec 92 09:10:58 GMT
  7. Sender: daemon@ucbvax.BERKELEY.EDU
  8. Distribution: world
  9. Organization: The Internet
  10. Lines: 82
  11.  
  12. > I read a mail (I forgot the name of the sender) about recursive directory
  13. > specification, using this command :
  14. > $ CREATE /DIR [.1]
  15. > $ SET FILE /ENTER=[.1]2.DIR 1.DIR
  16. > The first time I access 1.DIR, I could see 2.DIR.
  17. > Then, when I access 2.DIR, I could see another 2.DIR, and that 2.DIR seemed
  18. > endless. Everytime I access the next one, I would always see another one,
  19. > kind of getting deeper and deeper.
  20. > Can someone please explain to me what in happening ?
  21.  
  22. What you've done is creating a link to 1.dir which is [.1]2.DIR. This means that
  23. 2.DIR is not a real directory but only a name pointing to the directory 1.DIR so
  24. that when you enter the directory 2.DIR you are still in 1.DIR since 2.DIR 
  25. points to 1.DIR Graphically speaking:
  26.  
  27. Seen as direvctories:
  28.  
  29.                  1.DIR <-----+
  30.                    |         |
  31.                    +-2.DIR---+
  32.  
  33. Physically on the disk:
  34.  
  35.     File entry 1.DIR \
  36.                       \______> 1st block of the directory
  37.                       /
  38.     File entry 2.DIR /
  39.  
  40.  
  41. In other words (I do NOT think that you are stuppid but my explanations might
  42. be a bit unclear) 2.DIR is a sinonym for 1.DIR so that echa time you go to
  43. 2.DIR you are again in 1.DIR and of course you can see the directory link 2.dir
  44. again since it is in 1.DIR (clear ?) .
  45.  
  46. > I also tried to delete the directory :
  47. > I delete 2.DIR first, since it's lower that 1.DIR, using this command :
  48. > ( I did this after I access 1.DIR)
  49. > $ SET PROT:O:D 2.DIR
  50. > $ DEL 2.DIR;*
  51. > But, instead I got error message :
  52. > insufficient privilege or file protection violation.
  53. > I'd really appreciate any help I could get ?
  54. > Thanks in advance for any of your help.
  55.  
  56. This behavior is also due to the fact that 2.DIR is a 'circular' link to 
  57. 1.DIR. This implies that changing the protection of 2.DIR also changes the
  58. protection of 1.DIR. And you changed the protection of 2.DIR to O:D, so
  59. 1.DIR also changed to O:D. Now when you try to delete 2.DIR which is within
  60. 1.DIR VMS checks the access to all directories below the file you wand to
  61. delete. Since you have nolonger Read or Execute access to 1.DIR VMS can not
  62. access any file in that directory, and particulaary not 2.DIR, so that you
  63. can not delete it. To change this You have to change the protection of 2.DIR
  64. to O:RED but since you can not access 2.DIR because of the protection you've
  65. set previousely you must change the protection of 1.DIR to O:RED which also
  66. changes the protection of 2.DIR and now you can delete both directories.
  67.  
  68.                                                        Gasty Gloesener
  69.  
  70.  
  71.  
  72. ================================================================================
  73.                        | GGGGGG     Gasty Gloesener, 
  74. IIIIII  SSSSSS  TTTTTT | GG         Assistant of the Institute of Technology
  75.   II    SS        TT   | GG  GGGGGG in Luxembourg
  76.   II    SSSSSS    TT   | GG  GG     
  77.   II        SS    TT   | GGGGGG     Responsible for: VMS management, security,
  78. IIIIII  SSSSSS    TT   |     GG  GG                  programming
  79.                        |     GGGGGG                  UNIX stations management
  80.                        |                             NETWORK management
  81. ================================================================================
  82. e-mail: gloesener@istvax.ist.lu       | PSI: psi%0270442110::GLOESENER
  83.         gloesener@menvax.restena.lu   |
  84. ================================================================================
  85.  
  86.