Gnus development mailing list
 help / color / mirror / Atom feed
From: "romeomedina\@libero\.it" <romeomedina@libero.it>
Cc: "ding" <ding@gnus.org>
Subject: Re: How to make gnus store received mail in the directory /mnt/windows?
Date: Mon, 15 Aug 2005 16:58:30 +0200	[thread overview]
Message-ID: <IL9QXI$CF9C9DECEBD440C26B3DED2C64E3A01B@libero.it> (raw)

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øgren 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øgren:

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



Rodolfo:

> 2) If I start emacs as root, and then open gnus from within
>    emacs, then I manage to do what I want.



Adam Sjøgren:

> 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?):

[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øgren:

> 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øgren:

> 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=0,iocharset=iso8859-15,codepage=850 0 0
none /proc proc defaults 0 0

. The mount manual does not seem to be very helpful to me:
the uid and gid options for fat say:

       uid=value and gid=value
              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.

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! 
Abbonati subito su http://www.libero.it






             reply	other threads:[~2005-08-15 14:58 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-15 14:58 romeomedina [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-08-15 22:21 romeomedina
2005-08-16 21:05 ` Rodolfo Medina
2005-08-15 22:06 romeomedina
2005-08-15 19:40 romeomedina
2005-08-15 19:57 ` Derrell.Lipman
2005-08-15 20:02   ` Adam Sjøgren
2005-08-15 21:47   ` Rodolfo Medina
2005-08-15 22:18     ` Rodolfo Medina
2005-08-15 20:00 ` Adam Sjøgren
2005-08-15 18:25 romeomedina
2005-08-15 18:40 ` Adam Sjøgren
2005-08-15 19:48   ` Rodolfo Medina
2005-08-15 16:08 romeomedina
2005-08-15 16:35 ` David S. Goldberg
2005-08-15 18:39   ` Rodolfo Medina
2005-08-15  8:57 romeomedina
2005-08-14 22:33 Rodolfo Medina
2005-08-15  3:11 ` Henrik Enberg
2005-08-15  3:25   ` Dave Goldberg
2005-08-15  9:00     ` Rodolfo Medina
2005-08-15  9:36       ` Adam Sjøgren
2005-08-15 15:19         ` Rodolfo Medina
2005-08-15  3:18 ` Dave Goldberg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='IL9QXI$CF9C9DECEBD440C26B3DED2C64E3A01B@libero.it' \
    --to=romeomedina@libero.it \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).