On Mon, 20 Jan 2003, John Sowden wrote:
> I have DOSemu up and running. I put the ms-dos components (from win98) in the
> "boot drive. I boots fine, but when I lredir the other dos partitions, I
> cannot write to them. I have installed and am running as a user, not root.
check your /etc/fstab; see "man mount". If you're on a true multiuser
system it's best to create a dosemu group. But if you're the only one on
that computer who uses Linux then you can just as well make the DOS
partition owned by you, ie. something like
/dev/hda1 /dosc msdos defaults,uid=500,umask=022 0 0
in your /etc/fstab. Replace 500 with your real UID.
Use vfat instead of msdos if you want to see long file names in Linux.
Below is the relevant excerpt from README.txt.
Bart
4. The msdos partitions, that you want to be accessable through
Section 5 should be mounted with proper permissions. I recommend
doing this via 'group's, not via user ownership. Given you have a
group 'dosemu' for this and want to give the user 'lermen' access,
then the following should be
+ in /etc/passwd:
lermen:x:500:100:Hans Lermen:/home/lermen:/bin/bash
^^^-- note: this is NOT the group id of 'dosemu'
+ in /etc/group:
users:x:100:
dosemu:x:200:dosemu,lermen
^^^
+ in /etc/fstab:
/dev/hda1 /dosc msdos defaults,gid=200,umask=002 0 0
^^^
Note: the changes to /etc/passwd and /etc/group only take place
the next time you login, so don't forget to re-login.
The fstab entry will mount /dosc such that is has the proper
permissions
( 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.
-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html