Gossen Alexey <[EMAIL PROTECTED]> writes: > On Wed, 23 Apr 2003 10:17:26 +0300 > "Oleg P. Philon" <[EMAIL PROTECTED]> wrote: > > так как мы итак про chmod разговариваем. > > как сделать, чтобы все создаваемые файлы в директории, скажем /pub, получали > по умолчанию сдедующие атрибуты > 1)владелец: создающий (или без разницы) > 2)группа: public > новые файлы получали маску файла 660 > новые директории - маску 770 > > моя цель, чтобы все пользователи, находящиеся в группе public, получали > полный доступ ( rw(x) )к файлам, независимо от владельца этого файла > > читал man chown man chmod, но дурной башка там ничего не нашёл >
man 2 stat The set GID bit (S_ISGID) has several special uses: For a directory it indicates that BSD semantics is to be used for that directory: files created there inherit their group ID from the directory, not from the effective gid of the creating process, and directories created there will also get the S_ISGID bit set. For a file that does not have the group execution bit (S_IXGRP) set, it indicates mandatory file/record locking. и еще man umask -- Mon at phobos.loc Der kalte Mond in voller Pracht... The Moon is Waning Crescent (40% of Full)