home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Spezial
/
SPEZIAL2_97.zip
/
SPEZIAL2_97.iso
/
ANWEND
/
ONLINE
/
FTPSER03
/
DOC
/
USERS.DOC
< prev
next >
Wrap
Text File
|
1997-09-16
|
3KB
|
84 lines
HOW TO SET UP USER PERMISSION FILES
===================================
Remark: I'm aware that the setup described here is a little awkward,
and I'm planning to change it in a future version.
Each username requires a separate "username.PRM" file, in the
same directory as ftpd.exe. The file name has to match the
user name. (I'm planning to switch to a different system in
some future release, but that's the way it works for now.)
For a reasonably complicated example, see the supplied file
called "example.PRM".
The file is free-format, i.e. the exact formatting is not
important; but, for the sake of readability, I suggest that
you use indentation etc. to make its structure clearer.
All file names have to be delimited by double quote marks (").
This is to allow for things like file names that contain spaces.
The first three things in a permission file are:
1. The user category code. The possible values are
G guest user, who has to provide an e-mail address
as a password.
U normal user, who has to supply a password
N user who does not need a password.
2. The password. For a guest user, put "@" as the password.
For an 'N' user, just supply a dummy entry here.
3. The user's home directory. This must be a full path name ending
with the '/' character, and must be surrounded by quote marks.
After that, you have the <directory descriptor>. This has the form
<code> <subdirectory info>
Both of these are optional. The <code> can be any combination of
R+ allow read
R- deny read
W+ allow write
W- deny write
D+ allow delete
D- deny delete
The <subdirectory info> is defined recursively. It has the form
( <item> , <item> , ... , <item> )
i.e. it is a comma-separated list of items, surrounded by
parentheses. Each <item> has the form
"<directory name>" <directory descriptor>
where the <directory descriptor> follows exactly the same rules
as the <directory descriptor> for the home directory. That is,
it can also contain things like comma-separated lists of
subdirectory information.
If this sounds complicated, take a look at the supplied *.PRM
files, and you'll soon pick up the pattern.
The permission codes are always to be interpreted relative to
the parent directory's permission code. That is, a directory has
the same permissions as its parent, unless explicitly changed
by adding and/or deleting permissions.
(For the home directory, the default permissions are: read,
no write, no delete.)
Note that a R- permission code makes a directory invisible.
Such a directory won't show up on directory listings, and the
user can't do a "change directory" to that directory.
If you want a user to have access to more than one disk, just
repeat the list with a new home directory. But there can't
be more than one home directory per drive letter.
Warning: a user with access to multiple disks gets told which
drive he's on. I suggest that you give this facility only to
people in the "system manager" category.