Gnus development mailing list
 help / color / mirror / Atom feed
From: Rodolfo Medina <romeomedina@libero.it>
Subject: Re: How to make gnus store received mail in the directory /mnt/windows?
Date: Tue, 16 Aug 2005 21:05:45 +0000 (UTC)	[thread overview]
Message-ID: <loom.20050816T230517-537@post.gmane.org> (raw)
In-Reply-To: <ILABG4$E32B1532C4EF6E007ADEEC94005FD7BD@libero.it>

Many thanks to all who contributed to solve
this interesting problem with their replies.
I'm giving a report that might be useful to others
in future.

Rodolfo
	
	
-------------------------------------------------------------------------
To make gnus store received mail in desired directory,
let's call it /path/to/mydir, I put in my .gnus.el
the following:

(setq gnus-select-method  '(nnml "received-mail"
				 (nnml-directory "/path/to/mydir")
))


, and it worked fine unless the desired directory was:
/mnt/windows or one of its subdirs. In that case, when gnus
tried to fetch new mail it failed, and in the echo area 
such a message appeared:

Doing chmod: operation not permitted, /mnt/windows/mail-prova/mail/misc/60

. This happened because, when creating the new files where to put received mail,
gnus tries to do `chmod' in order to change the permissions of those files:
all read and write permissions are denied to other users different from
yourself: gnus is doing chmod as a security precaution, 
to ensure that your messages are not readable by anyone other than yourself.

But, the /mnt/windows partition is a vfat one, as it was shown
giving the mount command:

[rodolfo@localhost rodolfo]$ mount
/dev/hda8 on / type ext3 (rw)
none on /proc type proc (rw)
none on /proc/bus/usb type usbfs (rw)
none on /sys type sysfs (rw)
none on /mnt/floppy type supermount
(rw,sync,dev=/dev/fd0,fs=ext2:vfat,--,umask=0,iocharset=iso8859-15,
codepage=850)
/dev/hda1 on /mnt/windows type vfat 
(rw,umask=0,iocharset=iso8859-15,codepage=850)

, and vfat partitions lack of support for unix-style permissions.
So, the gnus' request of doing 'chmod' could not be satisfied
for /mnt/windows.
That is the meaning of the error message.

To solve the problem, all I had to do was to set `rodolfo'
in /etc/fstab as /mnt/windows's owner.
That way, all files and folders in /mnt/windows will be 
"simulated" owned by user rodolfo, group rodolfo (since there are no
users/groups in reality, on a FAT file system).
But actually, only the simulated owner is allowed to issue the chmod
call on a mounted FAT file system. So, now gnus could do `chmod' 
through the user rodolfo and the problem was solved.

To do so, I did:

[rodolfo@localhost rodolfo]$ id
uid=501(rodolfo) gid=501(rodolfo) groups=501(rodolfo)

, and then in /etc/fstab I changed the line

/dev/hda1 /mnt/windows vfat umask=0,iocharset=iso8859-15,codepage=850 0 0

into

/dev/hda1 /mnt/windows vfat
umask=0,iocharset=iso8859-15,codepage=850,uid=501,gid=501 0 0

, where (see fstab man): 

/dev/hda1 							is the first field;
/mnt/windows 							is the second field;
vfat								is the third field;
umask=0,iocharset=iso8859-15,codepage=850,uid=501,gid=501	is the fourth field;
0								is the fifth field;
0								is the sixth field.



. The only problem left is that other users different from `rodolfo'
will not be able to store their mail into /mnt/windows.





  parent reply	other threads:[~2005-08-16 21:05 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-15 22:21 romeomedina
2005-08-16 14:46 ` How to make gnus store received mail in the directory /mnt/windows? [solved] Rodolfo Medina
2005-08-16 21:05 ` Rodolfo Medina [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-08-15 22:06 How to make gnus store received mail in the directory /mnt/windows? romeomedina
2005-08-15 19:40 romeomedina
2005-08-15 19:57 ` Derrell.Lipman
2005-08-15 20:02   ` Adam Sjøgren
2005-08-15 21:47   ` Rodolfo Medina
2005-08-15 22:18     ` Rodolfo Medina
2005-08-15 20:00 ` Adam Sjøgren
2005-08-15 18:25 romeomedina
2005-08-15 18:40 ` Adam Sjøgren
2005-08-15 19:48   ` Rodolfo Medina
2005-08-15 16:08 romeomedina
2005-08-15 16:35 ` David S. Goldberg
2005-08-15 18:39   ` Rodolfo Medina
2005-08-15 14:58 romeomedina
2005-08-15  8:57 romeomedina
2005-08-14 22:33 Rodolfo Medina
2005-08-15  3:11 ` Henrik Enberg
2005-08-15  3:25   ` Dave Goldberg
2005-08-15  9:00     ` Rodolfo Medina
2005-08-15  9:36       ` Adam Sjøgren
2005-08-15 15:19         ` Rodolfo Medina
2005-08-15  3:18 ` Dave Goldberg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=loom.20050816T230517-537@post.gmane.org \
    --to=romeomedina@libero.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).