home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Spezial
/
SPEZIAL2_97.zip
/
SPEZIAL2_97.iso
/
ANWEND
/
ONLINE
/
FTPSER03
/
DOC
/
EXAMPLE.PRM
next >
Wrap
Text File
|
1997-09-16
|
3KB
|
66 lines
% Sample permissions file for user "example"
U % Normal user
secret % password is "secret"
"E:/ftp/anon/" W+ % home directory, both read and write allowed
% The remainder of this file describes the permissions for subdirectories
% of the home directory. For the sake of example, I'm assuming that
% we want to set the permissions as follows. (Note: all directory
% names are relative to the home directory.)
%
% / RW
% /Incoming RW
% /Incoming/reserved R
% /Incoming/aaa RWD
% /Incoming/Upload RWD
% /Incoming/extra RW
% /Freeware R
% /Freeware/special R
% /Freeware/special/sub1 RW
% /Freeware/special/sub2 RD
% /private (no permissions)
% /private/semiprivate R
%
% Here are the rules that will achieve that goal:
("Incoming" W+
("reserved" W-, "aaa" D+, "Upload" D+),
"Freeware" W- D-
("special"
("sub1" W+, "sub2" D+)
),
"private" R- W-
( "semiprivate" R+ W-)
)
% NOTE 1: This example is much more complex than you're likely to
% need in practice. I've made it this complicated purely for the
% sake of illustrating everything I could think of.
% NOTE 2: Notice that I didn't explicitly specify read permission
% for the home directory. That's because it's available by
% default. The default for the home directory is read, no write,
% no delete.
% NOTE 3: For every other directory, the default is that this
% directory inherits the permissions of its parent. You only
% have to specify what's different. If you're happy with the
% default, you don't even have to list the directory in this
% file.
% NOTE 4: The directory private/semiprivate illustrates an unusual
% case, because it's readable even though its parent isn't.
% The user can execute a "cd private/semiprivate", but a simple
% "cd private" will be rejected because the private directory
% is invisible.
% To make the example more interesting, let's also give this user a
% home directory on another drive. (A user is allowed to have at
% most one home directory per drive.)
"C:/public/" % home directory, only read allowed
("subdir" W+D+, % but full permissions in subdir.
"private" R-) % and no access to subdirectory "private"