As you discovered, you can't use mailutil this way. The arguments are interpreted in the context of the calling user (root in your case), thus the commend you give tries to create root's mbx-format INBOX and then copy from root's current INBOX to the newly created root's mbx-format INBOX. All while actually running as vanilla2.

This isn't particularly useful, but that's how mailutil works.

Fortunately, there is a way around this.  The command that you want is:

        mailutil copy -d -u vanilla2 INBOX "#driver.mbx/~vanilla2/INBOX"

Make sure that vanilla2 can access root's INBOX! Probably, what you really want is something like:

        mailutil copy -d -u vanilla2 initial "#driver.mbx/~vanilla2/INBOX"

where initial is a publicly-readable initial INBOX file.

Unless you want to create messages or define keywords, a much easier command is
        mailutil create -u vanilla2 "#driver.mbx/~vanilla2/INBOX"

On Mon, 17 Nov 2008, James H. McCullars wrote:
Hi, I'm trying to use mailutil to convert UNIX mailboxes to mbx and am running into a permissions problem. I'm testing using some vanilla accounts before converting live users. When I run this command as root:

mailutil copy -d -u vanilla2 INBOX "#driver.mbx/INBOX"

I get this error:

Can't create mailbox node //INBOX: Permission denied

It seems to switch to the vanilla2 user, but it doesn't want to create the file in his home directory. Any way I can get around that? I know that I can create a proto INBOX to copy in the user's home directory and have the mail snarfed from /var/mail/<user> next time they check but I will need to get mailutil to work so that I can convert their folders. This is imap-2007d running on Solaris 10 (SPARC). Thanks...

Jim McCullars
University of Alabama in Huntsville

_______________________________________________
Imap-uw mailing list
[email protected]
http://mailman2.u.washington.edu/mailman/listinfo/imap-uw


-- Mark --

http://panda.com/mrc
Democracy is two wolves and a sheep deciding what to eat for lunch.
Liberty is a well-armed sheep contesting the vote.
_______________________________________________
Imap-uw mailing list
[email protected]
http://mailman2.u.washington.edu/mailman/listinfo/imap-uw

Reply via email to