Gnus development mailing list
 help / color / mirror / Atom feed
* Re: How to make gnus store received mail in the directory
@ 2005-08-16 17:17 romeomedina
  0 siblings, 0 replies; only message in thread
From: romeomedina @ 2005-08-16 17:17 UTC (permalink / raw)
  Cc: romeomedina

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.




____________________________________________________________
6X velocizzare la tua navigazione a 56k? 6X Web Accelerator di Libero!
Scaricalo su INTERNET GRATIS 6X http://www.libero.it





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-08-16 17:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-16 17:17 How to make gnus store received mail in the directory romeomedina

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).