home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
back2roots/padua
/
padua.7z
/
padua
/
amix
/
dosread.zoo
/
README
< prev
Wrap
Text File
|
1991-10-28
|
5KB
|
86 lines
Subject: New DOSLS and DOSREAD for Amix 1.1+ users
From: crash@ckctpa.uucp (Frank "Crash" Edwards)
Well, as many of you Amix users already know, I've written a program
that will read an AmigaDOS filesystem on a hard drive to perform both
an ls-like listing and a file copying ability.
DOSREAD is at Version 1.4; and DOSLS is Version 1.2; below is a description
of how I've configured these programs to work on my machine.
Each of these mechanisms is rather primitive and the "freeware" version
is not likely to expand much beyond what's provided here. My plans are
to integrate this code into the kernel as a virtual filesystem allowing
the system administrator to "mount" an AmigaDOS partition and use it as
though it were a Unix partition.
I've included both DOSLS and DOSREAD in this package, although DOSLS
has only changed in its' error message output since the last time that
I posted it in comp.unix.amiga; DOSREAD has changed more substantially:
it wouldn't read more than the first file header block so only files up
to 36K in length could be copied! This was found and fixed quickly. :-)
The files are simple uuencoded binaries (source will not be distributed).
Please feel free to send any bug reports; enhancements are not likely since
anything major will be left for the filesystem implementation. This code
carries around a lot of baggage because it runs in user-space and I'm
looking forward to a kernel-mode version.
########################################################################
# #
# README for the AmigaDOS filesystem "dos*" implementation for use #
# on Amiga Unix 1.1 and later. #
# #
# Copyright (c) 1991 by Frank J. Edwards #
# #
########################################################################
As an example of how to configure the devices:
brw-r----- 1 root amiga 18, 2 Jan 1 1991 /dev/dsk/c2d0s0
brw-r----- 1 root amiga 18, 18 Jan 1 1991 /dev/dsk/c2d0s1
brw------- 1 root amiga 18, 34 Oct 5 09:35 /dev/dsk/c2d0s2
brw------- 1 root amiga 18, 50 Oct 13 12:15 /dev/dsk/c2d0s3
brw------- 1 root amiga 18, 66 Oct 5 10:41 /dev/dsk/c2d0s4
brw------- 1 root amiga 18, 82 Jan 1 1991 /dev/dsk/c2d0s5
brw------- 1 root amiga 18, 98 Jan 1 1991 /dev/dsk/c2d0s6
brw------- 1 root amiga 18,114 Oct 5 13:26 /dev/dsk/c2d0s7
brw-r----- 1 root amiga 18, 6 Jan 1 1991 /dev/dsk/c6d0s0
brw------- 1 root amiga 18, 22 Jan 1 1991 /dev/dsk/c6d0s1
brw-r----- 1 root amiga 18, 38 Jan 1 1991 /dev/dsk/c6d0s2
brw-r----- 1 root amiga 18, 54 Jan 1 1991 /dev/dsk/c6d0s3
brw------- 1 root amiga 18, 70 Jan 1 1991 /dev/dsk/c6d0s4
brw------- 1 root amiga 18, 86 Jan 1 1991 /dev/dsk/c6d0s5
brw------- 1 root amiga 18,102 Jan 1 1991 /dev/dsk/c6d0s6
brw------- 1 root amiga 18,118 Jan 1 1991 /dev/dsk/c6d0s7
Notice the devices are owned by the group amiga. You could leave that
field as is and change the group on the programs, but since the programs
need to run set-gid to access the devices there is a security hole there.
The example above allows read permission on c2d0s0 (the RDB area),
c2d0s1 (my only ADOS partition on drive ID 2), and then c6d0s0, c6d0s2
(my WB_2.x partition), and c6d0s3 (my Work2: partition). Here's the
procedure I use for determining the permissions:
1. Add group read permission to c?d0s0 for each physical drive in the
system. If you add it to device names for drives that don't exist
you'll see an error message when the DOS* programs timeout trying
to access the device. Eliminating read permission avoids this
problem. It also avoids the 2 second timeout. :-)
2. Add group read permission for each ADOS partition that you want
to be able to access. In the example above I enabled all three
of my ADOS partitions, but by removing group read permission I
could disable access to any particular partition from the DOS*
programs.
3. Set the group of the device and the DOS* programs to be the same.
Then execute "chmod g+s" on each of the DOS* programs as root.
--or--
1&2. Or substitute "others" for "group" in the above steps, in which case
everyone will always be able to read the ADOS partitions, and the
set-gid bit is unused.