* Re: How to make gnus store received mail in the directory /mnt/windows?
@ 2005-08-15 22:21 romeomedina
2005-08-16 14:46 ` How to make gnus store received mail in the directory /mnt/windows? [solved] Rodolfo Medina
2005-08-16 21:05 ` How to make gnus store received mail in the directory /mnt/windows? Rodolfo Medina
0 siblings, 2 replies; 3+ messages in thread
From: romeomedina @ 2005-08-15 22:21 UTC (permalink / raw)
Cc: romeomedina
Rodolfo Medina <romeomedina <at> libero.it> writes:
> 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.
Sorry, that's obviously wrong:
gnus wants to prevent other users from reading
the files it creates, so it couldn't be a solution anyway.
Rodolfo
____________________________________________________________
Libero Flat, sempre a 4 Mega a 19,95 euro al mese!
Abbonati subito su http://www.libero.it
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to make gnus store received mail in the directory /mnt/windows? [solved]
2005-08-15 22:21 How to make gnus store received mail in the directory /mnt/windows? romeomedina
@ 2005-08-16 14:46 ` Rodolfo Medina
2005-08-16 21:05 ` How to make gnus store received mail in the directory /mnt/windows? Rodolfo Medina
1 sibling, 0 replies; 3+ messages in thread
From: Rodolfo Medina @ 2005-08-16 14:46 UTC (permalink / raw)
Many thanks to all who contributed to solve
this interesting problem with their replies.
I'm giving a report that might be useful to others
in future.
Rodolfo
-------------------------------------------------------------------------
To make gnus store received mail in desired directory,
let's call it /path/to/mydir, I put in my .gnus.el
the following:
(setq gnus-select-method '(nnml "received-mail"
(nnml-directory "/path/to/mydir")
))
, and it worked fine unless the desired directory was:
/mnt/windows or one of its subdirs. In that case, when gnus
tried to fetch new mail it failed, and in the echo area
such a message appeared:
Doing chmod: operation not permitted, /mnt/windows/mail-prova/mail/misc/60
. This happened because, when creating the new files where to put received mail,
gnus tries to do `chmod' in order to change the permissions of those files:
all read and write permissions are denied to other users different from
yourself: gnus is doing chmod as a security precaution,
to ensure that your messages are not readable by anyone other than yourself.
But, the /mnt/windows partition is a vfat one, as it was shown
giving the mount command:
[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)
, and vfat partitions lack of support for unix-style permissions.
So, the gnus' request of doing 'chmod' could not be satisfied
for /mnt/windows.
That is the meaning of the error message.
To solve the problem, all I had to do was to set `rodolfo'
in /etc/fstab as /mnt/windows's owner.
That way, all files and folders in /mnt/windows will be
"simulated" owned by user rodolfo, group rodolfo (since there are no
users/groups in reality, on a FAT file system).
But actually, only the simulated owner is allowed to issue the chmod
call on a mounted FAT file system. So, now gnus could do `chmod'
through the user rodolfo and the problem was solved.
To do so, I did:
[rodolfo@localhost rodolfo]$ id
uid=501(rodolfo) gid=501(rodolfo) groups=501(rodolfo)
, and then in /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,uid=501,gid=501 0 0
, where (see fstab man):
/dev/hda1 is the first field;
/mnt/windows is the second field;
vfat is the third field;
umask=0,iocharset=iso8859-15,codepage=850,uid=501,gid=501 is the fourth field;
0 is the fifth field;
0 is the sixth field.
. The only problem left is that other users different from `rodolfo'
will not be able to store their mail into /mnt/windows.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to make gnus store received mail in the directory /mnt/windows?
2005-08-15 22:21 How to make gnus store received mail in the directory /mnt/windows? romeomedina
2005-08-16 14:46 ` How to make gnus store received mail in the directory /mnt/windows? [solved] Rodolfo Medina
@ 2005-08-16 21:05 ` Rodolfo Medina
1 sibling, 0 replies; 3+ messages in thread
From: Rodolfo Medina @ 2005-08-16 21:05 UTC (permalink / raw)
Many thanks to all who contributed to solve
this interesting problem with their replies.
I'm giving a report that might be useful to others
in future.
Rodolfo
-------------------------------------------------------------------------
To make gnus store received mail in desired directory,
let's call it /path/to/mydir, I put in my .gnus.el
the following:
(setq gnus-select-method '(nnml "received-mail"
(nnml-directory "/path/to/mydir")
))
, and it worked fine unless the desired directory was:
/mnt/windows or one of its subdirs. In that case, when gnus
tried to fetch new mail it failed, and in the echo area
such a message appeared:
Doing chmod: operation not permitted, /mnt/windows/mail-prova/mail/misc/60
. This happened because, when creating the new files where to put received mail,
gnus tries to do `chmod' in order to change the permissions of those files:
all read and write permissions are denied to other users different from
yourself: gnus is doing chmod as a security precaution,
to ensure that your messages are not readable by anyone other than yourself.
But, the /mnt/windows partition is a vfat one, as it was shown
giving the mount command:
[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)
, and vfat partitions lack of support for unix-style permissions.
So, the gnus' request of doing 'chmod' could not be satisfied
for /mnt/windows.
That is the meaning of the error message.
To solve the problem, all I had to do was to set `rodolfo'
in /etc/fstab as /mnt/windows's owner.
That way, all files and folders in /mnt/windows will be
"simulated" owned by user rodolfo, group rodolfo (since there are no
users/groups in reality, on a FAT file system).
But actually, only the simulated owner is allowed to issue the chmod
call on a mounted FAT file system. So, now gnus could do `chmod'
through the user rodolfo and the problem was solved.
To do so, I did:
[rodolfo@localhost rodolfo]$ id
uid=501(rodolfo) gid=501(rodolfo) groups=501(rodolfo)
, and then in /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,uid=501,gid=501 0 0
, where (see fstab man):
/dev/hda1 is the first field;
/mnt/windows is the second field;
vfat is the third field;
umask=0,iocharset=iso8859-15,codepage=850,uid=501,gid=501 is the fourth field;
0 is the fifth field;
0 is the sixth field.
. The only problem left is that other users different from `rodolfo'
will not be able to store their mail into /mnt/windows.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-08-16 21:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-15 22:21 How to make gnus store received mail in the directory /mnt/windows? romeomedina
2005-08-16 14:46 ` How to make gnus store received mail in the directory /mnt/windows? [solved] Rodolfo Medina
2005-08-16 21:05 ` How to make gnus store received mail in the directory /mnt/windows? Rodolfo Medina
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).