The following topics may already have been dealt with, but I lost my
list archives in a HD crash (didn't backup in time).


     This advice is courtesy of Professor Trial-and-Error.


-------------------------------------------------------------------
How to directly access an MSDOS partition from dosemu without using
lredir. 
-------------------------------------------------------------------

1) /etc/dosemu.users should read:

root c_all
all c_all

This lets ordinary users run dosemu, which is fine for a single-user system.
If you run dosemu on a network, you might consider restricting user privileges
for security reasons.



2) Edit the '$_hdimage' line in /etc/dosemu.conf (or ~/.dosemurc) to read:

$_hdimage = "/dev/hda4"

Note that this assumes the DOS partition is on /dev/hda4. If otherwise,
change accordingly. Be aware also that the DOS partion will also need
to be 'umounted' before it can be accessed by dosemu.



3) In /usr/bin, the file permissions for 'dos' and its progeny are as follows.

-rwxr-xr-x   1 root      1013425 Apr 29 22:21 dos*
lrwxrwxrwx   1 root            3 Apr 25 14:59 dosexec -> dos*
-rwxr-xr-x   1 root          105 Feb 23 20:01 rundos*
lrwxrwxrwx   1 root            3 Apr 25 15:16 xdos -> dos*
-rwsr-xr-x   1 root         2806 Apr 29 22:21 xtermdos*

Note that 'dos' itself is *not* suid, but that xtermdos is. This permits dos,
xdos, and xtermdos to be run by ordinary users.



4) Finally, in /dev, change the file permissions for both the hard drive and
for the DOS partition itself to allow ordinary users access.

brw-rw-rw-   1 root       3,   0 May  5  1998 hda
brw-rw-rw-   1 root       3,   4 May  5  1998 hda4

Again, this assumes your hard drive is /dev/hda and the DOS partition is at
/dev/hda4. If different change accordingly.

To change the permissions, as root, 'chmod 666 hda hda4'.

-------------------------------------------------------------------


Step #4 above was the most difficult to figure out. If you do not do this, you
might get the following strange error messages:

Xlib: connection to ":0.0" refused by server
Xlib: Client is not authorized to connect to Server
ERROR: X: Can't open display ":0.0"


I hope this will help some people.



             They said, "You have a blue guitar,
             You do not play things as they are."
             The man replied, "Things as they are
             Are changed upon the blue guitar."
                  ---Wallace Stevens
        ===============================================
        + http://personal.riverusers.com/~thegrendel/ +
        ===============================================

Reply via email to