From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/60772 Path: news.gmane.org!not-for-mail From: Rodolfo Medina Newsgroups: gmane.emacs.gnus.general Subject: Re: How to make gnus store received mail in the directory /mnt/windows? Date: Mon, 15 Aug 2005 21:47:07 +0000 (UTC) Message-ID: References: <7jenm0rm.fsf@random.internal> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1124142629 2229 80.91.229.2 (15 Aug 2005 21:50:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 15 Aug 2005 21:50:29 +0000 (UTC) Original-X-From: ding-owner+M9304=ding+2Daccount=gmane.org@lists.math.uh.edu Mon Aug 15 23:50:28 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E4mpC-0002Jb-CH for ding-account@gmane.org; Mon, 15 Aug 2005 23:48:54 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1E4mpB-0001aT-01 for ding-account@gmane.org; Mon, 15 Aug 2005 16:48:53 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1E4mp2-0001aK-00 for ding@lists.math.uh.edu; Mon, 15 Aug 2005 16:48:44 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by util2.math.uh.edu with esmtp (Exim 4.30) id 1E4mp2-00068W-6W for ding@lists.math.uh.edu; Mon, 15 Aug 2005 16:48:44 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1E4lsw-0007Gb-00 for ; Mon, 15 Aug 2005 22:48:42 +0200 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1E4mnX-00020I-TQ for ding@gnus.org; Mon, 15 Aug 2005 23:47:12 +0200 Original-Received: from ppp-114-100.26-151.libero.it ([151.26.100.114]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 15 Aug 2005 23:47:11 +0200 Original-Received: from romeomedina by ppp-114-100.26-151.libero.it with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 15 Aug 2005 23:47:11 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Lines: 79 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 151.26.100.114 (Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040804) X-Spam-Score: -4.7 (----) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:60772 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:60772 Derrell wrote: > The fields on each line are separated by spaces. The fourth field is the > options field, with options separated by commas. The fifth and sixth fields > (both zeros in this case) are not part of the options. Yes, the problem seems to be solved editing the file /etc/fstab and replacing the line: /dev/hda1 /mnt/windows vfat umask=0,iocharset=iso8859-15,codepage=850 0 0 with: /dev/hda1 /mnt/windows vfat umask=0,iocharset=iso8859-15,codepage=850,uid=501,gid=501 0 0 Derrell: > I'm not sure, however, what the vfat > file system returns when the POSIX chmod() call is used to change permissions, > since there is no such concept of permissions on a FAT file system. It may > return an error, in which case any application that requires being able to > change permissions on a file will fail to operate properly on a Unix/Linux- > mounted FAT file system. The attempt of doing chmod by a different user than `rodolfo' generates an error message: [carolina@localhost carolina]$ chmod o+r /mnt/windows chmod: changing permissions of `/mnt/windows': Operation not permitted Derrell: > I highly suspect that gnus is doing chmod() as > a security precaution, to ensure that your messages are not readable by anyone > other than yourself. If so, then it's unlikely that that feature would be > removed. That seems to be true: in fact I did: $ ls -l /mnt/windows/mail-prova/mail/misc , and it is shown that the files gnus just created, when retrieving mail and storing it in that dir, are only readable (and writable, of course) by the user rodolfo: -rw------- 1 rodolfo rodolfo 827 Aug 15 22:20 61 -rw------- 1 rodolfo rodolfo 15007 Aug 15 22:20 62 -rw------- 1 rodolfo rodolfo 1145 Aug 15 22:20 63 Derrell: > Either gnus will have to change to not consider a > chmod() failure to be fatal, or you will have to use a different file system > for your message repository. > [...] > It could also be that only the simulated owner is allowed to issue the chmod() > call on a mounted FAT file system, in which case setting uid and gid may help. That also seems to be true: in fact, as user `rodolfo' I was able to change permissions over /mnt/windows and its subdirs. But then, no other user different than the one set in /etc/fstab will be able to do the same thing, i.e. store mail with gnus in the vfat file system /mnt/windows: unless the command chmod can change permissions also to all the files of a certain directory, even those that don't exist yet. This way, the user uid 501 could make writable *all* the files of /mnt/windows/mail-prova/mail/misc, also the future ones, and then other users could store there their mails with gnus. Is that possible? Thanks to all who've been providing help, Rodolfo