* gauin_36 <[EMAIL PROTECTED]> [010108 19:09]:
> I want to transfer my (root)mail files to my user account files, if this can be
> done, what do I have to do and how do i do it! don't want to have any mail in
> my root mail account.  The books I'm using but are no help are Running LInux by
> o reilly and linux administration A Beginners Guide. If you know these books
> and the information that I seek is in them, please let me know what page to
> search for..

Someone already mentioned how to make an alias so that new mail for
root will come into your user mailbox.  If you want to move existing
email from root's account to a regular user's account, and there are
not too many of them, you could (as root) email them to the other
user's ID.  If there are many, I would (as root) copy them from their
present location, which might be /root/mail, to /home/user/mail, where
user is the ID you want.  That would be (as root)

cd /root/mail
cp * /home/user/mail

One problem is that now these files will probably still be owned by
root.  So:

cd /home/user/mail
chown user.user *
chmod 600 *

Again, where user is the userid of your user account.

This assumes you are using the mbox (I think that's correct) mail system
where email messages are stored in "folders" that are actually files.
It also assumes that your mail folder (a real directory) is called
mail and not Mail (if it is, just use Mail instead).  Finally, if
there is already a mailbox in your user account with the same name,
this will clobber it.  If that's a problem, you should rename one or
the other.  If there are a lot like that, you might want to append the
files rather than copy, and there are several strategies for that.

Hope this helps, anyway.

-- 
Jan Wilson                   _/*];          [EMAIL PROTECTED]
Corozal Community College    |  |:'  Corozal Junior College
Corozal Town, Belize         |  /'          Central America
Visit our Corozal site       |_/     http://www.corozal.com


Reply via email to