On Tue, 4 Nov 2003, Fabiano Felix wrote:

> Hi all,
>
> I'm wondering that if is possible (using a type of "sharing" command) to
> sharing the entire mailbox of all users to an admin user (for example,
> to remove some determined messages). I know that it's not legal, but one

        If you're a BOFH, try this:
1.      su - root
2.      rm -rf ~user/Maildir

        :)

        Seriously, I work helpdesk about once a month, as well as my
sysadmin work.  I usually try to educate the user how to deal with e-mails
via webmail, but if that doesn't work, then I just go into the maildir by
hand and use grep, rm, and the like.  Maildir is just having all the
e-mails in separate files.  Once you track down the appropriate file, you
can just delete it (or this works for me, anyway :) ).

        Another alternative would be to develop a passwd substitution
tool.  For example, say you had a program called "passsubst" (run from
sudo, or something).  You could set it so that when you went:

passsubst <useracct> <adminacct>

        ...it would copy the encrypted passwd field from the account
<adminacct> to the same field for <useracct> (after backing up the one
from useracct somewhere first).  Then you could log in using
your normal passwd, and access their e-mails however you wanted.  Then you
could just run passrestore to restore the passwd from the backup version.
Of course, you'd have to write these scripts :).

        :)

--
Tim Nelson
Systems Administrator
Sunet Internet
Tel:�+61 3 5241 1155
Fax: +61 3 5241 6187
Web: http://www.sunet.com.au/
Email: [EMAIL PROTECTED]




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to