Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
e763f3bf
Commit
e763f3bf
authored
Feb 20, 2009
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SETUID reSTified
parent
ab2c716f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
23 deletions
+25
-23
doc/SETUID.txt
doc/SETUID.txt
+24
-23
doc/index.txt
doc/index.txt
+1
-0
No files found.
doc/SETUID.txt
View file @
e763f3bf
Zope effective user support
Zope effective user support
===========================
Zope can bind its network service to low ports such as 21 (FTP) and
Zope can bind its network service to low ports such as 21 (FTP) and
80 (HTTP). In order to bind to low ports, Zope must be started as
80 (HTTP). In order to bind to low ports, Zope must be started as
the root user. However, Zope will only run as root long enough to
the root user. However, Zope will only run as root long enough to
bind to these low ports. It will then attempt to setuid to a less
bind to these low ports. It will then attempt to setuid to a less
privileged user.
privileged user.
You must specify the user to which Zope will attempt to setuid by
You must specify the user to which Zope will attempt to setuid by
changing the 'effective-user' parameter in the zope.conf
changing the 'effective-user' parameter in the zope.conf
configuration file to an existing username or UID. All runtime
configuration file to an existing username or UID. All runtime
files will be written as this user. If you do not specify an
files will be written as this user. If you do not specify an
'effective-user' in the configuration file, and you attempt to start
'effective-user' in the configuration file, and you attempt to start
Zope, it will refuse to start.
Zope, it will refuse to start.
Zope additionally emits a warning if you specify 'nobody' as the
Zope additionally emits a warning if you specify 'nobody' as the
'effective-user'. The rationale for this warning stems from the
'effective-user'. The rationale for this warning stems from the
fact that, historically, many other UNIX services dropped privileges
fact that, historically, many other UNIX services dropped privileges
to the 'nobody' account after starting as root. Any security
to the 'nobody' account after starting as root. Any security
defects in these services could cause someone to gain access as the
defects in these services could cause someone to gain access as the
'nobody' account on your system. If someone was to gain control of
'nobody' account on your system. If someone was to gain control of
your 'nobody' account they could compromise your Zope files.
your 'nobody' account they could compromise your Zope files.
The most important thing to remember about effective user support is
The most important thing to remember about effective user support is
that you don't have to start Zope as root unless you want to listen
that you don't have to start Zope as root unless you want to listen
for requests on low ports (ports beneath 1024). In fact, if you
for requests on low ports (ports beneath 1024). In fact, if you
don't have this need, you are much better off just starting Zope
don't have this need, you are much better off just starting Zope
under a dedicated user account.
under a dedicated user account.
doc/index.txt
View file @
e763f3bf
...
@@ -13,6 +13,7 @@ Contents:
...
@@ -13,6 +13,7 @@ Contents:
CHANGES.txt
CHANGES.txt
INSTALL.txt
INSTALL.txt
ZOPE3.txt
ZOPE3.txt
SETUID.txt
Indices and tables
Indices and tables
==================
==================
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment