diff options
author | Georg Brandl <georg@python.org> | 2008-05-26 17:55:52 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-05-26 17:55:52 (GMT) |
commit | f4a41231b2ddcd4bd6131e69c854249d8eb75899 (patch) | |
tree | 7aaf7a5a2f3d8de08495602fea4d20edcaa479fd /Doc/library/cgi.rst | |
parent | 95f5686e4d956edff0b3bb4aaae4fe12b81f6521 (diff) | |
download | cpython-f4a41231b2ddcd4bd6131e69c854249d8eb75899.zip cpython-f4a41231b2ddcd4bd6131e69c854249d8eb75899.tar.gz cpython-f4a41231b2ddcd4bd6131e69c854249d8eb75899.tar.bz2 |
Fix old-style octal literals in the docs.
Diffstat (limited to 'Doc/library/cgi.rst')
-rw-r--r-- | Doc/library/cgi.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/cgi.rst b/Doc/library/cgi.rst index 0a9ccd3..a69e98d 100644 --- a/Doc/library/cgi.rst +++ b/Doc/library/cgi.rst @@ -385,7 +385,7 @@ administrator to find the directory where CGI scripts should be installed; usually this is in a directory :file:`cgi-bin` in the server tree. Make sure that your script is readable and executable by "others"; the Unix file -mode should be ``0755`` octal (use ``chmod 0755 filename``). Make sure that the +mode should be ``0o755`` octal (use ``chmod 0755 filename``). Make sure that the first line of the script contains ``#!`` starting in column 1 followed by the pathname of the Python interpreter, for instance:: @@ -394,8 +394,8 @@ pathname of the Python interpreter, for instance:: Make sure the Python interpreter exists and is executable by "others". Make sure that any files your script needs to read or write are readable or -writable, respectively, by "others" --- their mode should be ``0644`` for -readable and ``0666`` for writable. This is because, for security reasons, the +writable, respectively, by "others" --- their mode should be ``0o644`` for +readable and ``0o666`` for writable. This is because, for security reasons, the HTTP server executes your script as user "nobody", without any special privileges. It can only read (write, execute) files that everybody can read (write, execute). The current directory at execution time is also different (it |