From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/60763 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: Mon, 15 Aug 2005 16:58:30 +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 1124123945 12290 80.91.229.2 (15 Aug 2005 16:39:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 15 Aug 2005 16:39:05 +0000 (UTC) Cc: "ding" Original-X-From: ding-owner+M9295=ding+2Daccount=gmane.org@lists.math.uh.edu Mon Aug 15 18:39:03 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E4hwi-0000ht-Pr for ding-account@gmane.org; Mon, 15 Aug 2005 18:36:21 +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 1E4hwh-0000Nh-01 for ding-account@gmane.org; Mon, 15 Aug 2005 11:36:20 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1E4gSF-0008Nc-00 for ding@lists.math.uh.edu; Mon, 15 Aug 2005 10:00:47 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by util2.math.uh.edu with esmtp (Exim 4.30) id 1E4gSC-0007tl-Ll for ding@lists.math.uh.edu; Mon, 15 Aug 2005 10:00:44 -0500 Original-Received: from smtp3.libero.it ([193.70.192.127]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1E4fW7-0002Wo-00 for ; Mon, 15 Aug 2005 16:00:43 +0200 Original-Received: from localhost (172.16.1.80) by smtp3.libero.it (7.0.027-DD01) id 42C445C5007DE801; Mon, 15 Aug 2005 17:00:40 +0200 Original-Received: from libero.it (172.16.1.90) by smtp0.libero.it (7.0.027-DD01) id 42E0A09D00280911; Mon, 15 Aug 2005 16:58:30 +0200 X-Sensitivity: 3 Original-To: "asjo" X-XaM3-API-Version: 4.1 (B27pl2) X-type: 0 X-SenderIP: 151.26.66.236 X-Virus-Scanned: by amavisd-new at libero.it serv2 X-Spam-Score: -4.9 (----) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:60763 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:60763 Rodolfo Medina wrote: > I want gnus to store my received mail in a certain directory, > let's call it `/path/to/mydir'. To do so, I just put in my .gnus.el > the following: > > (setq gnus-select-method '(nnml "received-mail" > (nnml-directory "/path/to/mydir") > )) > > , and it works fine. > Now, the problem is that the desired directory is /mnt/windows, > and gnus refuses to store mail there, maybe because of a matter of > permissions. But the command `$ ls -l /mnt' shows that the > dir /mnt/windows is writable by all users. > How can I work the problem out? Henrik Enberg wrote: > What OS are you trying this from, and what OS is /mnt/windows? For > example, The Linux kernel can't write to NTFS file systems. Dave Goldberg wrote: > [...] Yes, unless > one is very brave and enables NTFS writing by hand (I'm not aware of > any Linux distro that will provide you with it) an NTFS file system > locally mounted will be read-only. Rodolfo: > Yes, it is a linux-windows dual boot system. > The MS Windows partition is under the /mnt/windows directory. Adam Sj=F8gren wrote: > You haven't disclosed what filesystem you are using on /mnt/windows > yet. Sorry, I was giving for certain it was an ntfs one. Rodolfo: > But there's something I don't understand: > > 1) I regularly write files and directories from linux into /mnt/windows, > without problems. Why does the problem with the NTFS file system > only arise when I want gnus to do what I usually do? Adam Sj=F8gren: > If you do this - write new files - you are probably using a > vfat-filesystem and not ntfs? > > You can check this with the 'mount' command (just run it without any > arguments). Yes, the 'mount' command run without arguments shows that on /mnt/windows there is a vfat filesystem: [rodolfo@localhost rodolfo]$ mount=0D /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=3D/dev/fd0,fs=3Dext2:vfat,= --,umask=3D0,iocharset=3Diso8859-15,codepage=3D850) /dev/hda1 on /mnt/windows type vfat (rw,umask=3D0,iocharset=3Diso8859-15,co= depage=3D850) Rodolfo:=0D > 2) If I start emacs as root, and then open gnus from within > emacs, then I manage to do what I want. Adam Sj=F8gren: > That sounds like you've got a problem with permissions. > > You should double-check that the normal user has permissions to do > what is needed on /mnt/windows. The output of: 'ls -l /mnt' shows that any normal user has write permissions onto the /mnt/windows directory (is that right?):=0D [root@localhost rodolfo]# ls -l /mnt total 48 drwxr-xr-x 2 root root 4096 gen 22 2005 cdrom/ drwxr-xr-x 2 root root 4096 gen 22 2005 cdrom2/ drwxr-xr-x 2 root root 4096 ago 10 15:26 cdrom3/ drwxrwxrwx 0 root root 0 ago 15 10:18 floppy/ drwxr-xr-x 2 root root 4096 gen 22 2005 linux1/ drwxr-xr-x 2 root root 4096 feb 6 2005 linux2/ drwxr-xr-x 2 root root 4096 apr 16 19:45 linux4/ drwxr-xr-x 19 rodolfo rodolfo 4096 ago 15 00:00 linux5/ drwxrwxrwx 3 root root 4096 ago 14 17:41 newdir/ drwxrwxrwx 30 root root 16384 gen 1 1970 windows/ Adam Sj=F8gren: > Do provide details, otherwise helping you will be tedious and > longwinded. I'm sorry, I'm newbie with linux, I'm doing all my best to provide all information about the matter. Adam Sj=F8gren: > Look at the mount-options uid, gid, umask, dmask and fmask for fat > (see 'man mount' and /etc/fstab). That is a bit hard for me. Anyway, in /etc/fstab there's the following: /dev/hda1 /mnt/windows vfat umask=3D0,iocharset=3Diso8859-15,codepage=3D850= 0 0 none /proc proc defaults 0 0=0D . The mount manual does not seem to be very helpful to me: the uid and gid options for fat say: uid=3Dvalue and gid=3Dvalue Set the owner and group of all files. (Default: the uid and gid of the current process.) . Now, the output of 'ls -l /mnt' shows that /mnt/windows belongs to the owner root and to the group root, but normal users do have the write permissions.=0D Any other hint? Thanks indeed, Rodolfo P.S.: I tried to send the message to the gmane.emacs.gnus newsgroup, but didn't manage to. I'll try again. ____________________________________________________________ Libero Flat, sempre a 4 Mega a 19,95 euro al mese!=20 Abbonati subito su http://www.libero.it