[Zope] still having permissions problems

Daniel M. Drucker dmd@3e.org
Wed, 16 Jun 1999 15:24:54 -0400 (EDT)


I'm still unable to get this running on port 80. When I start z2.py as
root, here's what happens (followed by what I think is proof that
'nobody' should indeed have no problem writing to a file in var) 

This is using the latest version of select_trigger.py from CVS.



Script started on Wed Jun 16 15:20:14 1999
eco:/usr/local/zope2# python z2.py
zinit: Wed Jun 16 15:20:20 1999: Houston, we have forked
zinit: Wed Jun 16 15:20:20 1999: Houston, we have forked
zinit: Wed Jun 16 15:20:20 1999: Hi, I just forked off a kid: 18180
log: adding channel <select-trigger (pipe) at 83f0448>
log: adding channel <zhttp_server  at 8431dd0>
Warning: computing default hostname
Medusa (V1.7) started at Wed Jun 16 15:20:23 1999
	Hostname: eco.3e.org
	Port:80
log: adding channel <FTPServer  at 8430890>
FTP server started at Wed Jun 16 15:20:23 1999
	Authorizer:None
	Hostname: eco
	Port: 9221
log: adding channel <PCGIServer  at 83c9188>
log: adding channel <secure_monitor_server  at 8436840>
Monitor Server (V1.2) started on port 9999
Traceback (innermost last):
  File "z2.py", line 415, in ?
    pf = open(PID_FILE, 'w')
IOError: [Errno 13] Permission denied: '/usr/local/zope2/var/Z2.pid'
zinit: Wed Jun 16 15:20:23 1999: Aiieee! 18180 exited with error code: 256
eco:/usr/local/zope2# ls -ld .
drwxrwxr-x  11 zope     zope         1024 Jun 16 15:20 .
eco:/usr/local/zope2# ls -ld var
drwxrwxr-x   3 zope     zope         1024 Jun 16 15:20 var
eco:/usr/local/zope2# cd var
eco:/usr/local/zope2/var# ls -l
total 1001
-rw-rw-r--   1 nobody   nobody     398180 Jun 16 15:09 Data.bbb
-rw-rw-r--   1 zope     zope        75058 May  3 19:10 Data.bbb.in
-rw-rw-r--   1 nobody   nobody        719 Jun 16 15:14 Data.bbb.index
-rw-rw-r--   1 zope     zope       515175 Jun 16 14:51 Data.bbb.old
-rw-rw-r--   1 zope     zope            9 Jun 16 11:22 Data.bbb.trans
-rw-rw-r--   1 nobody   nobody         92 Jun 16 15:14 Data.bbb.trans.index
-rw-rw-r--   1 root     root        18073 Jun 16 15:15 Data.fs
-rw-rw-r--   1 root     root            5 Jun 16 15:20 Data.fs.lock
-rw-rw-r--   1 root     root            0 Jun 16 15:20 Data.fs.tmp
-rw-rw-r--   1 root     root            0 Jun 16 15:15 Z2.log
drwxrwxr-x   3 zope     zope         1024 Jun 16 11:22 gadfly
-rw-rw-r--   1 zope     zope          313 Jun 16 15:15 pcgi.log
-rw-rw-r--   1 root     root            5 Jun 16 15:20 pcgi.pid
srwxrwxrwx   1 root     root            0 Jun 16 15:20 pcgi.soc
-rw-rw-r--   1 root     root            5 Jun 16 15:20 zProcessManager.pid
eco:/usr/local/zope2/var# id
uid=0(root) gid=0(root) groups=0(root)
eco:/usr/local/zope2/var# su - nobody
$ id
uid=65534(nobody) gid=65534(nogroup) groups=65534(nogroup),1006(zope)
$ pwd
/home
$ cd /usr/local/zope2/var
$ cat > somefile
foo
$ cat somefile
foo
$ rm somefile
$ pwd
/usr/local/zope2/var
$ logout
eco:/usr/local/zope2/var# exit

Script done on Wed Jun 16 15:21:39 1999