From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/60769 Path: news.gmane.org!not-for-mail From: Derrell.Lipman@UnwiredUniverse.com Newsgroups: gmane.emacs.gnus.general Subject: Re: How to make gnus store received mail in the directory /mnt/windows? Date: Mon, 15 Aug 2005 15:57:17 -0400 Message-ID: <7jenm0rm.fsf@random.internal> References: Reply-To: Derrell.Lipman@UnwiredUniverse.com NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1124135977 15837 80.91.229.2 (15 Aug 2005 19:59:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 15 Aug 2005 19:59:37 +0000 (UTC) Cc: asjo , ding Original-X-From: ding-owner+M9301=ding+2Daccount=gmane.org@lists.math.uh.edu Mon Aug 15 21:59:36 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E4l5Z-0008RK-42 for ding-account@gmane.org; Mon, 15 Aug 2005 21:57:41 +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 1E4l5Y-0001BA-00 for ding-account@gmane.org; Mon, 15 Aug 2005 14:57:40 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1E4l5S-0001Ax-00 for ding@lists.math.uh.edu; Mon, 15 Aug 2005 14:57:34 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by util2.math.uh.edu with esmtp (Exim 4.30) id 1E4l5R-0004OX-C2 for ding@lists.math.uh.edu; Mon, 15 Aug 2005 14:57:33 -0500 Original-Received: from dsl092-075-243.bos1.dsl.speakeasy.net ([66.92.75.243] helo=amber.vis-av.com) by quimby.gnus.org with smtp (Exim 3.35 #1 (Debian)) id 1E4k9J-0005vx-00 for ; Mon, 15 Aug 2005 20:57:29 +0200 Original-Received: (qmail 15066 invoked from network); 15 Aug 2005 19:57:17 -0000 Original-Received: from unknown (HELO random.internal) (192.168.1.9) by amber.internal with SMTP; 15 Aug 2005 19:57:17 -0000 Original-Received: (nullmailer pid 12067 invoked by uid 0); Mon, 15 Aug 2005 19:57:17 -0000 Original-To: "romeomedina\@libero\.it" Mail-Followup-To: "romeomedina\@libero\.it" , "asjo" , "ding" In-Reply-To: (romeomedina@libero.it's message of "Mon, 15 Aug 2005 21:40:38 +0200") User-Agent: Gnus/5.110003 (No Gnus v0.3) XEmacs/21.4.17 (linux) X-Spam-Score: -4.7 (----) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:60769 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:60769 > Rodolfo: > >> in my /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 0 0,uid=501,gid=501 > >> . Is that what you meant? > > > Adam: > >> Read the manual-page for fstab. (Hint: you put the options in the >> wrong place). Besides that: yes. > > > What's it, a guessing game? > I read all through the fstab manual, and also the mount options for fat, > and neither there nor there it is said what the right place should be > for the uid and gid options. 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. This is likely the line you're looking for: /dev/hda1 /mnt/windows vfat umask=0,iocharset=iso8859-15,codepage=850,uid=501,gid=501 0 0 That will mount /dev/hda1 on the mountpoint /mnt/windows and all files and folders will be "simulated" owned by user 501, group 501 (since there are no users/groups in reality, on a FAT file system). This may or may not solve your problem. Without setting uid and gid, it appeared that /mnt/windows was writable. 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. 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. (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.) 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. Derrell