[pmwiki-users] How to Read Wiki File from Shell . . .

Patrick R. Michaud pmichaud at pobox.com
Mon Jun 27 06:38:42 CDT 2005


On Mon, Jun 27, 2005 at 11:44:19AM +0200, Joachim Durchholz wrote:
> It may be useful to set up a "command-line mode" for PmWiki, to be 
> activated when PmWiki finds it's not running in a CGI environment. In 
> that case, it could take its parameters from the command line instead 
> from the GET variables, and permission checking based on the name of the 
> Unix user it's running as.
> That would take the permission checking pains out, and also make it 
> easier to test some things from the command line :-)

I'm not sure what you mean by "permission checking" here -- do you
mean page authorization or file permissions?

If you mean page authorization, then I'd suggest that we have
authorization come from the command line or environment variables.
Checking based on the name of the unix user presumes (1) pages are
protected by username, not passwords, (2) and that the PmWiki 
username(s) match those of the unix host, and (3) that we're running
under Unix.  :-)

If you meant file permissions, then that's already equally painful.  :-)

Pm



More information about the pmwiki-users mailing list