Hi -

I'm using courier to host an email system for a small business, and
the business owner wanted "privileged" and "non-privileged" accounts
which are capable and not capable of creating/deleting folders
respectively.

The way I did it was to change the default directory permissions to
750 on all of the Maildirs and add the non-privileged users to the
system with the same group ID as the privileged user who owned the
Maildirs.

I had to patch the mdcreate and domdcreate functions in imap/imapd.c
to call open(2) with different default permissions (because otherwise
newly created folders would be unreadable to the non-privileged
users), and thought it might be better if I added a hook so the
sysadmin could define an environment variable in the config file to
switch between the default 0700 behavior and the 0750 behavior.

-- 
 - Jason                       Currently at: Home (Fremont, CA) (Showers Late)

Any fool can paint a picture, but it takes a wise person to be able to
sell it.


-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility 
Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to