pycs-devel archive weblog

A blog for archiving the pycs-devel mailing list

SunMonTueWedThuFriSat
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30

python community server
pycs developers
also available in XML
Copyright (c) 2002 Phillip Pearson
spread the dot

2002-11-22

Phillip Pearson: [PyCS-devel] Heh - fixed it

Right; this line needs to be changed. Will push up to CVS tomorrow.



if (stat[0] & 0777) == 0700:



... to:



if (stat[0] & 0077) == 0:



That way it can cope with config files with 0600 and 0400, which are also

acceptable permissions.



Works fine for me now. Time to make a cron job to rotate the hit counts and

referrers.



Cheers,

Phil :)

Phillip Pearson: [PyCS-devel] pycsadm not working for me

Georg,



I assume I'm screwing up something here ... pycsadm.py isn't working for me.

I've edited the config file and uncommented the serverpassword field (and

added a password), then restarted, but I'm getting auth failures when I try

to call stuff:



[www-pycs@www pycs]$ ./pycsadm.py -v help

== get challenge

== execute help()

Traceback (innermost last):

File "./pycsadm.py", line 70, in ?

res = server.pycsAdmin.execute( token, args[0], args[1:] )

[...]

xmlrpclib.Fault: <Fault 1 """authorization for pycsAdmin call

failed:None""">



I suspect a permission problem with my config file -- will check this out.



Cheers,

Phil :)