This section of the document by Hans, <lermen@fgan.de>. Last updated on June 16, 1997.
loginname [ c_strict ] [ classes ...] [ c_dexeonly ] [ other ]
For details see
Configuring DOSEmu. For a first
time easy installation you may set it as follows (but don't
forget to enhance it later !!!):
root c_all
all c_all
lermen:x:500:100:Hans Lermen:/home/lermen:/bin/bash
^^^-- note: this is NOT the group id of 'dosemu'
users:x:100:
dosemu:x:200:dosemu,lermen
^^^
/dev/hda1 /dosc msdos defaults,gid=200,umask=002 0 0
^^^
( drwxrwxr-x 22 root dosemu 16384 Jan 1 1970 /dosc )
You can do the same with an explicit mount command:
mount -t msdos -o gid=200,umask=002 /dev/hda1 /dosc
Of course normal lredir'ed unix directories should have the same
permissions.
Starting with dosemu-0.66.1.4 there should be no reason against running dosemu as a normal user. The privilege stuff has been extensively reworked, and there was no program that I tested under root, that didn't also run as user. However, if you suspect problems resulting from the fact that you run as user, you should first try configuring dosemu with the 'runasroot' option (see setup-dosemu tool). This lets dosemu permanently run as (suid) root and only use user privileges when accessing secure relevant resources. Normally dosemu will permanently run as user and only temporarily use root privilege when needed.