14 Feb
2007
14 Feb
'07
7:26 p.m.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Bill Landry wrote:
- save the file to some temporary file in a directory where only deliver has access
- change effective UID to destination user (keep the deliver group effective) and hardlink the file to the user's maildir
- change effective UID back to root
- process next user, goto 2
- Unlink the temporary file
Permissions are stored in the inode (essentially, with the file itself), and not in the directory entry. As such, each hard link to the file would share the exact same permissions, so the above algorithm doesn't work to give each user their own permissions on the same underlying storage file.
If you use symlinks, that would work with the above algorithm. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFF00ZEhk3bo0lNTrURAgg6AJ9dA6fWeOD+n6oh0E1iQ8z2IxNIYwCdHV/S /kT4eIhN4pXKG5blYthaKDs= =q7vb -----END PGP SIGNATURE-----