Control Panel Login
Tools & Services
·
Domain Names
·
Email
·
FTP
·
Page Creator
·
File Manager
·
Form Processor
·
Hit Counter
·
Glimpse Indexing
·
Password Protection
·
Site Activity Reports
·
WebCommerce
Getting Started
FAQs
Glossary
Contact Support
|
|
 |
Forms Processor Parameters
|
Contents
Index of Parameters
Search the Forms Processor Docs
chmod
The chmod parameter allows you to set the
UNIX
permissions mask (numeric form) which defines the permissions on any data
files created by the forms processor in your WebCom directory. The default is
700, which means that nobody but you may read or modify the file; you only
need to use this parameter if you want to override that default.
- This parameter can be set in
one of 2 ways:
- <INPUT TYPE=HIDDEN NAME=chmod VALUE="nnn">
- $chmod="nnn";
-
- nnn - An Octal number representation of Unix permissions. To
calculate the mask, add 4 for read privilege, 2 for write privilege, and 1 for
execute privilege (NOTE: Although you are not allowed to execute programs on
our systems, this permission is here for completeness of documentation; the
execute permission is optional). Thus if you wanted to allow everyone to
read and write to a file, you would add 4+2 = 6; your permission mask would be
706. The format of the 3 consecutive digits is as follows: The first number
is for the owner (you), the second is for the same people in your group (some
other WebCom users), and the third is for public access (everyone including
anonymous FTP). The first digit must always be 6 or 7, otherwise you may not
be able to read or write to the files affected by this setting.
- NOTE:
-
The chmod parameter only affects the permissions on NEWLY CREATED files, it
will not affect exiting files that you append to.
-
if you change the permissions manually via FTP, or via
the WebCom File Manager, they will remain as you set
them.
-
For files created by a format
statement in your configuration file which uses the insertion point
feature, (when you insert data into a file, vs. appending to it), the file must
be recreated for each insertion, and thus the permissions will be set to the
value defined by chmod for each insertion. If using a format, you can
also set the permissions mask in the format statement.
Example:
# make the file pubicly readable so that they can get the calendar via FTP too
$chmod="702";
# write calendar entry to file
$file="outgoing/calendar.txt";
# you can also be more sophisticated too, the format statement has a chmod value
# that you can use to set the permission of a file to when you use the
# 'overwrite' option
See also:
UNIX permissions WebCom File Manager
format statement
oct() Form
Processor function


phone: 1-800-GETVERIO
© Verio Inc.
1996-2007 ::: Acceptable
Use Policy ::: Privacy
|