Gnus development mailing list
 help / color / mirror / Atom feed
From: Derrell.Lipman@UnwiredUniverse.com
Cc: asjo <asjo@koldfront.dk>, ding <ding@gnus.org>
Subject: Re: How to make gnus store received mail in the directory /mnt/windows?
Date: Mon, 15 Aug 2005 15:57:17 -0400	[thread overview]
Message-ID: <7jenm0rm.fsf@random.internal> (raw)
In-Reply-To: <ILA3ZQ$246B66A748A438EBD2EDCF097C0BF499@libero.it> (romeomedina@libero.it's message of "Mon, 15 Aug 2005 21:40:38 +0200")

> 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



  reply	other threads:[~2005-08-15 19:57 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-15 19:40 romeomedina
2005-08-15 19:57 ` Derrell.Lipman [this message]
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
  -- 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 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 14:58 romeomedina
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=7jenm0rm.fsf@random.internal \
    --to=derrell.lipman@unwireduniverse.com \
    --cc=asjo@koldfront.dk \
    --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).