From: Rodolfo Medina <romeomedina@libero.it>
Subject: Re: How to make gnus store received mail in the directory /mnt/windows?
Date: Mon, 15 Aug 2005 21:47:07 +0000 (UTC) [thread overview]
Message-ID: <loom.20050815T234558-603@post.gmane.org> (raw)
In-Reply-To: <7jenm0rm.fsf@random.internal>
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 fields
> (both zeros in this case) are not part of the options.
Yes, the problem seems to be solved editing the file /etc/fstab and replacing
the line:
/dev/hda1 /mnt/windows vfat umask=0,iocharset=iso8859-15,codepage=850 0 0
with:
/dev/hda1 /mnt/windows vfat
umask=0,iocharset=iso8859-15,codepage=850,uid=501,gid=501 0 0
Derrell:
> 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.
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 anyone
> 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 system
> for your message repository.
> [...]
> 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.
That also seems to be true:
in fact, as user `rodolfo' I was able to change permissions over /mnt/windows
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.
Is that possible?
Thanks to all who've been providing help,
Rodolfo
next prev parent reply other threads:[~2005-08-15 21:47 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
2005-08-15 20:02 ` Adam Sjøgren
2005-08-15 21:47 ` Rodolfo Medina [this message]
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=loom.20050815T234558-603@post.gmane.org \
--to=romeomedina@libero.it \
/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).