Stefán István wrote:
> Is there any way to tell 
> the Linux to automatically set the rights to 664 or 775 in this common 
> directory (and only in this)?

This is normally done by setting the umask to 002 instead of 022 for all
users (in /etc/profile), and creating a separate primary group for every
user with the same name as the user. Then all files and directories
created by users will have 664 resp. 775 permissions. When creating
files in "normal" directories, the files will have the "private" primary
group of the user, and will therefore only be writable by the user. When
creating files in directories with the SGID bit set, the group will be
the same as the directory, and the file will be writable by all members
of the group.

This is the default strategy in RedHat distributions (or at least it was
when I switched to Gentoo, around 9.0 or so).

You might be able to get the same effect locally (i.e. only in your
shared directory) by using POSIX ACLs. See 'man acl' for more info.

-- Remy


Remove underscore and suffix in reply address for a timely response.

-- 
gentoo-user@gentoo.org mailing list

Reply via email to