[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: file permission issue again....



Hello list,

Imagination does not honor any restriction, and something similar has come in my mind.

Can we have any folder with customized permission level, so that, whenever we create/move
any files/folders with in that folder, those automatically get a predefined permission level ?

Say we move test ( 755 as permission )  file into xyz folder, and the test file will get 722 permission.
I have flipped through the SUID and GUID by those are related with ownership.

Is there any way by chance ?

Maybe 'inotify' is what you want.

From the description of inotify-tools:

Description: command-line programs providing a simple interface to inotify
  inotify-tools is a set of command-line programs for Linux providing a
  simple interface to inotify. These programs can be used to monitor and
  act upon filesystem events. inotify-tools consists of two utilities:
  .
  inotifywait simply blocks for inotify events, making it appropriate
  for use in shell scripts.
  .
  inotifywatch collects filesystem usage statistics and outputs counts
  of each inotify event.
 Homepage: http://inotify-tools.sourceforge.net/

hth, --Jasper.


Reply to: