From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/60773 Path: news.gmane.org!not-for-mail From: "romeomedina\@libero\.it" Newsgroups: gmane.emacs.gnus.general Subject: Re: How to make gnus store received mail in the directory /mnt/windows? Date: Tue, 16 Aug 2005 00:06:22 +0200 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1124143702 4781 80.91.229.2 (15 Aug 2005 22:08:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 15 Aug 2005 22:08:22 +0000 (UTC) Cc: "ding" Original-X-From: ding-owner+M9305=ding+2Daccount=gmane.org@lists.math.uh.edu Tue Aug 16 00:08:20 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E4n6K-0005hK-A4 for ding-account@gmane.org; Tue, 16 Aug 2005 00:06:37 +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 1E4n6G-0001gO-04 for ding-account@gmane.org; Mon, 15 Aug 2005 17:06:32 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1E4n6A-0001gG-00 for ding@lists.math.uh.edu; Mon, 15 Aug 2005 17:06:26 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by util2.math.uh.edu with esmtp (Exim 4.30) id 1E4n69-0006LQ-D6 for ding@lists.math.uh.edu; Mon, 15 Aug 2005 17:06:25 -0500 Original-Received: from smtp3.libero.it ([193.70.192.127]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1E4mA4-0007U1-00 for ; Mon, 15 Aug 2005 23:06:24 +0200 Original-Received: from localhost (172.16.1.47) by smtp3.libero.it (7.0.027-DD01) id 42C445C5007E8481; Tue, 16 Aug 2005 00:06:22 +0200 Original-Received: from libero.it (172.16.1.101) by smtp3.libero.it (7.0.027-DD01) id 42C445A500591CE8; Tue, 16 Aug 2005 00:06:22 +0200 X-Sensitivity: 3 Original-To: "Derrell\.Lipman" , "romeomedina" ,"asjo" X-XaM3-API-Version: 4.1 (B27pl2) X-type: 0 X-SenderIP: 151.26.65.63 X-Virus-Scanned: by amavisd-new at libero.it serv7 X-Spam-Score: -4.9 (----) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:60773 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:60773 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 fie= lds > (both zeros in this case) are not part of the options. Yes, the problem seems to be solved editing the file /etc/fstab and replaci= ng the line: /dev/hda1 /mnt/windows vfat umask=3D0,iocharset=3Diso8859-15,codepage=3D850= 0 0 with: /dev/hda1 /mnt/windows vfat umask=3D0,iocharset=3Diso8859-15,codepage=3D850= ,uid=3D501,gid=3D501 0 0 Derrell: > I'm not sure, however, what the vfat > file system returns when the POSIX chmod() call is used to change permiss= ions, > since there is no such concept of permissions on a FAT file system. It m= ay > 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/Linu= x- > 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 a= nyone > 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 sys= tem > for your message repository. > [...] > It could also be that only the simulated owner is allowed to issue the ch= mod() > call on a mounted FAT file system, in which case setting uid and gid may = help. That also seems to be true:=0D in fact, as user `rodolfo' I was able to change permissions over /mnt/windo= ws 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.=0D Is that possible? Thanks to all who've been providing help, Rodolfo=0D ____________________________________________________________ Libero Flat, sempre a 4 Mega a 19,95 euro al mese!=20 Abbonati subito su http://www.libero.it