[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] How do I clear a users e-mail out?



Your mistake, I believe, Don...

Please see below...

At 11:29 AM 3/16/00 +0000, you wrote:

> cwickham@xxxxxxxxxxxxxxxx wrote:
>
> Simple command =)
>
> shell# > /var/spool/mail/user
>
> This takes an input value of nothing and over writes the file with it. Very
> quick and simple way of getting rid of mail.

Yup, that'll deal with that user's email, that's for sure.
This is what happens (listing of part of mailspool):

-rw-rw----   1 johndoe  mail       492065 Nov 16 10:44 johndoe
-rw-r--r--   1 root     root            0 Mar 16 11:36 user

Slight ownership / permissions problem.

When you did this you didn't already have a mailbox for user.

If you did, doing the "# > /var/spool/mail/user would inherent all the permissions and ownership already in place. It works fine.

Of course whenever one messes with a file, one should check permissions and ownership before exiting; too easy to "remember" incorrectly and create a problem <smile>.

Jeff

--
Jeff Lasman <jblists@xxxxxxxxxxxxx>