[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 274
  • Last Modified:

file permissions

take a look at doc attached

I have a folder /opt01/app/iknci which is a nfs mounted folder

there is a folder html in this directory ,
the date of modify on this folder is Apr11 2009 as is seen in the snap attached

now if you go in the folder html
the last modified file is on Dec 03 as seen in the attachment

do any one have any idea why the base folder "html" did not update the date to  last modified file date withing the folder.



doc1.doc
0
bsa_jug
Asked:
bsa_jug
  • 2
  • 2
1 Solution
 
bsa_jugAuthor Commented:
file attached
doc1.doc
0
 
woolmilkporcCommented:
Hi,

the timestamps of a directory only get updated when an element (file/subdirectory)
is added to it or removed from it, not when an element is updated.

wmp
0
 
woolmilkporcCommented:
OK,

maybe there is a misunderstanding of what a directory actually is.

Each element of a filesystem (file, directory etc.) is associated with an inode.

A directory  is nothing more than a simple list of names and the corresponding inode numbers,
so the inode of the directory itself only needs to get updated when this list grows or shrinks.

It's the mentioned inode where administrative information is stored.

Typical contents of an inode are

- location of the item's contents on disk
- item type (file, directory, link ...)
- item's size
- the timestamps you're referring to in your question (atime, mtime, ctime)
- owner, group, mode ...

wmp




0
 
bsa_jugAuthor Commented:
thanks wmp ,
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now