Richard Broersma Jr wrote: > I know that I can execute a umask every > time the users log in to insure that all new created files will have > the correct premissions, but is this really the correct what to > handle this problem?
That's one way of doing it, which I have seen used on RedHat distributions (and that I have implemented on my machines). Instead of having a default umask of 022 and setting the primary group of new users to "user", you set the umask to 002 and have a separate primary group for every user (usually with the same name as the user). This way, shared directories can be set up as you described, and files and directories are created with 0664 resp. 0775 permissions. But if you haven't set up your environment for that, the easiest solution is to use POSIX ACLs (see "man acl"). Set a default ACL of: default:user::rwx default:group::rwx default:other::--- on the (empty) shared directory, then copy over your files. You might have to enable ACLs in your kernel and /etc/fstab, and to enable the "acl" USE flag (and re-emerge affected packages) for this to work. -- Remy Remove underscore and suffix in reply address for a timely response. -- gentoo-user@gentoo.org mailing list