delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
X-Recipient: | djgpp AT delorie DOT com |
DKIM-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; |
d=gmail.com; s=gamma; | |
h=domainkey-signature:mime-version:received:date:message-id:subject | |
:from:to:content-type; | |
bh=tAJ7nP5TuZQMe1o1B1VvqMhEevL9cd1RcG25jXXmwig=; | |
b=mBzITL02PbVPUK3p064iMUEuw9CBFVwJqtEwZqRYlKHUAmEYh/ApVHf7EOULrV+4yY | |
kfzoCxV5A2krYqwYdDC9Ajishm4mECBDSXStRzNx8wAxOOTg0p89P1Z1yY2Rtjh3tInE | |
q/ulBMRhL8NVS10OeCce2T3M+EuP2pMQFZkHo= | |
DomainKey-Signature: | a=rsa-sha1; c=nofws; |
d=gmail.com; s=gamma; | |
h=mime-version:date:message-id:subject:from:to:content-type; | |
b=v4+nGS++rMYhfuIPcZH4/bZnmh3E4W+yH7SGX7vmTNb9Zy0xAVoY1eUmQxnMT/DxU6 | |
ZFQomgBDBTQOrv3Q9htIE+pFVNMu7ce6LEaJz7aqIMHSuTXqhrbYrfVAk6U3ZbD7fYG2 | |
cXIQrkPX2BqtiqypziDf4Tr5cglhXxG+Ldo5Q= | |
MIME-Version: | 1.0 |
Date: | Wed, 28 Oct 2009 13:33:05 -0400 |
Message-ID: | <f8a051a90910281033y3627c3d0tf2696529de635ec7@mail.gmail.com> |
Subject: | Setting permissions in DJGPP.ENV |
From: | Ersin Akinci <ersin DOT akinci AT gmail DOT com> |
To: | djgpp AT delorie DOT com |
Reply-To: | djgpp AT delorie DOT com |
Hi all, I was wondering if it's possible to set UNIX-like permissions for arbitrary files through DJGPP.ENV. I'm trying to use a DOS port of Mutt (the e-mail client) to check my mail on an SSL-encrypted IMAP server, but OpenSSL requires /dev/random to generate entropy for encryption. Since DOS has no such file, you can pass it a "randfile" manually that contains hand-edited random data or you can use the "noise" driver (available at http://www.rahul.net/dkaufman/) to generate a random file at C:\.rnd. The problem is that Mutt checks the permissions on this file, which in a *nix environment would be a device node at /dev/random, and requires them to be set to 600. Now, although DOS doesn't support permissions, when I check the permissions of my custom randfile or the .rnd file generated by the noise driver using ls.exe provided by DJGPP it returns 644 (r/w owner, r group, r everyone). I tried fiddling around with attrib and chmod, but there's no way to disable access to "non-dosuser" users through those programs. My alternatives at this point are to either find some other way to fake the permissions or hack Mutt/OpenSSL not to check for permissions and recompile. Obviously the first would be preferable! Another alternative would be to use another DOS e-mail client that supports SSL, but I haven't been able to find one. I also tried using HX DOS Extender to maybe get a simple Win32 SSL-capable mail client to work, but I've been unsuccessful so far... Any ideas? Thanks, Ersin
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |