Есть каталог
допустим /datafiles
ls -l
datatfiles root workers rwxrwx---
(папка зашарена через САМБУ)
в самбe установлена опция
inherit owner = yes
есть некий user, который тоже входит в эту группу workers
когда он создает внтури этой папки файл или каталог
то,
у нового каталога права не наследуются от
и не становятся как хотелось бы (user) root - (group)workers, как в datafiles
а даются следующие права
(user) root (group) user
т.е. NEW FOLDER root user rwxrwx---
т.е. как включить наследование группы??
как включить наследование группы от вышестоящего каталога? (Самба)
Модераторы: SLEDopit, Модераторы разделов
-
Ленивая Бестолочь
- Бывший модератор
- Сообщения: 2760
- ОС: Debian; gentoo
Re: как включить наследование группы от вышестоящего каталога?
не уверен, требует ли это наличия acl или можно использовать и с обычными правами.
acl group control (S)
In a POSIX filesystem, only the owner of a file or directory and the superuser can modify the permissions and ACLs on a file. If this parameter is set, then Samba overrides this
restriction, and also allows the primary group owner of a file or directory to modify the permissions and ACLs on that file.
On a Windows server, groups may be the owner of a file or directory - thus allowing anyone in that group to modify the permissions on it. This allows the delegation of security
controls on a point in the filesystem to the group owner of a directory and anything below it also owned by that group. This means there are multiple people with permissions to
modify ACLs on a file or directory, easing managability.
This parameter allows Samba to also permit delegation of the control over a point in the exported directory hierarchy in much the same way as Windows. This allows all members of a
UNIX group to control the permissions on a file or directory they have group ownership on.
This parameter is best used with the inherit owner option and also on on a share containing directories with the UNIX setgid bit set on them, which causes new files and directories
created within it to inherit the group ownership from the containing directory.
This is parameter has been was deprecated in Samba 3.0.23, but re-activated in Samba 3.0.31 and above, as it now only controls permission changes if the user is in the owning
primary group. It is now no longer equivalent to the dos filemode option.
Default: acl group control = no
Солнце садилось в море, а люди с неоконченным высшим образованием выбегали оттуда, думая, что море закипит.
-
uffi
- Сообщения: 4
Re: как включить наследование группы от вышестоящего каталога?
ОК, попробовать надо,
пока решил средствами
chmod g+s каталог
тоже включает наследование от родительской директории