I think what you need to look into is umask:
The umask is used by open(2) to set initial file permissions on a
newly-created file. Specifically, permissions in the umask are
turned
off from the mode argument to open(2) (so, for example, the common
umask default value of 022 results in new files being created with
permissions 0666 & ~022 = 0644 = rw-r--r-- in the usual case where
the
mode is specified as 0666).
Depending on which shell or ftp server you are running, there are different
places to set the default umask. A google search for umask and your
shell/ftp server will probably get you the results you are looking for.
- Chris
"Mike ."
<mike_4766@hotmai
l.com> To
Sent by: fam@xxxxxxxxxxx
fam-bounce@xxxxxx cc
i.com
Subject
using fam to monitor file changes
...
Composed Date:
10/16/2003 09:24
AM
hi!
We are using linux and fam on our fileservers, all users are members of the
group
"staff". The problem is that when somebody creates a file it autmatically
gets the
permission "-rw-r--r-- ", then when other users wants to make changes to
the
file its not possible ("r--"). This is not a linux admin discussion list, I
know.
So to solve this I had an idea of setting up fam to monitor all files and
do
this
whenever something is created, this will be based on some rules.
(this sounds really weired but I have not found other ways to do this)
Whats the best way to monitor a filesystem, scan the whole fs at startup
for
directories? and then use fam? Im almost sure somebody will point out a
completely different solution on this problem!
Is this a good way or is there other way of doing this?
All feedback is welcome!
Thanks!
-- Mike
_________________________________________________________________
Get Hotmail on your mobile phone http://www.msn.co.uk/msnmobile
Get headline news all day on Arizona's Home Page, http://www.azcentral.com
|