Not logged in. · Lost password · Register
Page:  1  2  3 ... 10  11  12  next 

All posts by MartinR (170)

topic: Bytes added by user  in the forum: General Help and Support Plugins
Avatar
MartinR #1
Member since Jul 2015 · 170 posts · Location: UK
Group memberships: Members
Show profile · Link to this post
The format of the .changes files in meta is a tab separated list of changes to the file:
  1  Time (as an integer)
  2  IP address of source host
  3  Type of change: C=crested, D=deleted, E=edited, e=minor edit, R=old version restored.  There may be others.
  4  File/page name (without the .txt)
  5  User
  6  Section (for a section edit) and edit summary (may be a null string)
  7  Bytes added or subtracted.
Note that types C and D do not have the final field.  Type R uses field 7 for the timestamp of the restored version and adds a field 8 which is the bytes changed.

For a quick solution you could run a grep(1) for E and e over the whole tree and use cut(1) to strip out the username and bytes changed, then it's a simple formatting job (AWK? PERL?).  Probably better to code it properly, depends on the time available!

HTH
topic: Dokuwiki to Github Markup translation  in the forum: General Help and Support Features and Functionality
Avatar
MartinR #2
Member since Jul 2015 · 170 posts · Location: UK
Group memberships: Members
Show profile · Link to this post
In reply to post ID 68207
Please think long and hard before doing this.  I used to run a system behind an airgap and had to copy documentation pages over.  They fitted into DW with only a few hiccups.  If you move them to GitHub they will become inaccessible for systems not on the Internet unless the SM installs a local git.  It's bad enough that there is no simple documentation download, this would make matters far worse.  Just IMHO of course.
topic: what is built-in namespace ''wiki'' for? should i change or add page in it?  in the forum: General Help and Support Syntax and Usage
Avatar
MartinR #3
Member since Jul 2015 · 170 posts · Location: UK
Group memberships: Members
Show profile · Link to this post
In reply to post ID 68140
I run a tiny farm.  The farmer uses the Vector template, the animal the DokuWiki template.  Currently the DW template is just a test area.  The contents of the wiki namespace differ somewhat:

DokuWiki
  • dokuwiki - The basic welcome page installed by default.
  • syntax - The standard syntax definition, as modified by the plugin installer.

Vector
  • ebook - Namespace for ebooks.
  • dokuwiki - As above.
  • ebook - Definition page.
  • navigation - Top of sidebar.
  • site_notice - Header displayed above all pages.
  • syntax - As above.
  • welcome - "Welcome to your new DokuWiki"
  • wrap - Examples for wrap.

The DW template keeps navigation type stuff at the top level.
topic: Nearing my skill ceiling - helping teachers share lessons (I've been building a site for teachers to share their lessons/unit plans. I would really appreciate some help.)  in the forum: General Help and Support General Stuff
Avatar
MartinR #4
Member since Jul 2015 · 170 posts · Location: UK
Group memberships: Members
Show profile · Link to this post
In reply to post ID 68051
Hi,

Nice site.  If it helps, I've attached a brief help note on ACLs.  It's DW formatted, so just load it somewhere and have a read.

It sounds as though you need to develop a layered strategy.  You have total outsiders (@ALL) who should have read-only or no access.  You have yourself and admin staff (if any) who need total access.  In between you have your teachers who need to be categorised.  Do you want subject teachers to be able to modify their own subject?  For instance can all chemistry teachers modify "Carry out a quantitative analysis"?  From your comment about the Spanish teacher I'd guess not.

Tentatively may I suggest the following:

Top level:
  • @ALL - read access
  • @admin - edit access
  • mrwills - full access
Science:
  • @admin - full access
  • @science - create access
Carry out a quantitative analysis:
  • @science - read only
  • <creating user> - edit access
  • @admin - full access

Looking at this the other way:
@ALL can read anything but do nothing.
mrwills is a superman!
@admin (if needed).  Can read anything and can modify top level pages (which includes deleting - beware).  Can do anything within project space.
@science teachers can create and modify pages within their subject areas.
<creating user> can modify the page they created.

Repeated entries
The ACL is evaluated is a series of stages from the actual page outwards to thee global settings.  The most liberal match at any level is taken as the result.  If you are a member of @admin and @science for example, then the page allows read only access to @science but full access to @admin.  If the last line were not present you would only get read access, even though you have full access at the project level.  Be careful of this, if you belong to multiple groups it is easy to lock yourself out of a particular project or file. :blush:

Just a couple more points:
1) You will need to work out a procedure for applying the <creating user> name to the ACL, I'm not aware of an easy fix.
2) Your other option is to disallow edit access to all pages for all users (except admins) and use a talk page so that teachers can request changes.

I hope my ramblings help,
Martin.
The author has attached one file to this post:
wiki_acls.txt 2.6 kBytes
You have no permission to open this file.
topic: Code Text with --  in the forum: General Help and Support Syntax and Usage
Avatar
MartinR #5
Member since Jul 2015 · 170 posts · Location: UK
Group memberships: Members
Show profile · Link to this post
In reply to post ID 68042
@Lars, that would be fine if you never wanted the standard behaviour on any page.  If you just want to disable the substitution for a single instance then  using "%%".  See the section "No Formatting" in the syntax guide.
topic: Code Text with --  in the forum: General Help and Support Syntax and Usage
Avatar
MartinR #6
Member since Jul 2015 · 170 posts · Location: UK
Group memberships: Members
Show profile · Link to this post
In reply to post ID 68040
Marginally better to use %%$ journalctl --since%%.
topic: How to run Dokuwiki on a Shared Network Drive  in the forum: General Help and Support Server Setup
Avatar
MartinR #7
Member since Jul 2015 · 170 posts · Location: UK
Group memberships: Members
Show profile · Link to this post
In reply to post ID 68017
Quite correct, I'm running CentOS.  Sorry if the OP is still on Windows, it's too easy to assume that all servers are Linux.
topic: Spam Alerts  in the forum: Offtopic Forum Help
Avatar
MartinR #8
Member since Jul 2015 · 170 posts · Location: UK
Group memberships: Members
Show profile · Link to this post
In reply to post ID 67457
https://forum.dokuwiki.org/thread/17424

Thanks; done.
This post was edited on 2019-12-17, 13:20 by pop.
topic: Users management (Difficulty to identify "sleeping" accounts)  in the forum: General Help and Support Features and Functionality
Avatar
MartinR #9
Member since Jul 2015 · 170 posts · Location: UK
Group memberships: Members
Show profile · Link to this post
In reply to post ID 67949
For the latter point, have you seen: https://www.dokuwiki.org/plugin%3Alogger?   I have a page a year with the format:
====== User logs for 2020 ======
//Although sort markers do not show, this table is sortable.//

<sortable>
<csv admin:logs:2020.csv delim=; hdr_rows=0></csv>
</sortable>
If you do this you'll also need the csv and sortable plugins.

The users.auth.php file is formatted as: login:passwordhash:Real Name:email:groups,comma,seperated.  The "login" field must be unique, but I can't see anything that ensures the other fields are unique, they are just lookups.  Perhaps Andi or one of the other experts can confirm this.
topic: plugin not showing after the manual install  in the forum: General Help and Support Plugins
Avatar
MartinR #10
Member since Jul 2015 · 170 posts · Location: UK
Group memberships: Members
Show profile · Link to this post
In reply to post ID 67897
Hi Turner, IIS is Microsoft's web server: "Internet Information Services for Windows".  Apache does not provide binaries for Windows, you have to compile from sources.
topic: yum install dokuwiki  in the forum: General Help and Support Installation and Configuration
Avatar
MartinR #11
Member since Jul 2015 · 170 posts · Location: UK
Group memberships: Members
Show profile · Link to this post
In reply to post ID 67791
For Information: It's not just CentOS that seems to be screwed up, I had a host of problems using apt on Mint a couple of days back.
topic: Lighttpd + Dokuwiki - Won't start, include file not found  in the forum: General Help and Support Installation and Configuration
Avatar
MartinR #12
Member since Jul 2015 · 170 posts · Location: UK
Group memberships: Members
Show profile · Link to this post
In reply to post ID 67749
I've just run up a Mint VM and installed lighttpd.  The user that was created on my machine was www-data, so:
$ su -
Password:
# vipw
###Change /sbin/nologin to /bin/bash for www-data
# su - www-data
You are now logged in as the user that runs lighttpd, so go and look for the missing/unreadable files.

It's 23:44 in the UK, so I'm off to bed now.  I'll check back tomorrow.

UPDATE

I need to backtrack from that red herring.  The missing/unreadable file conf-enabled/10-cgi.conf is read before the daemon drops privilege and shells out to the user.  It should be owned by root:
# cd /etc/lighttpd
total 12
drwxr-xr-x 2 root root 4096 Nov 11 22:12 conf-available
drwxr-xr-x 2 root root 4096 Nov 11 09:09 conf-enabled
-rw-r--r-- 1 root root 1080 Nov 11 21:21 lighttpd.conf
ls -l */*
-rw-r--r-- 1 root root 839 Jan 19  2017 conf-available/05-auth.conf
-rw-r--r-- 1 root root  91 Jan 19  2017 conf-available/10-accesslog.conf
-rw-r--r-- 1 root root 343 Jan 19  2017 conf-available/10-cgi.conf
-rw-r--r-- 1 root root  63 Jan 19  2017 conf-available/10-dir-listing.conf
-rw-r--r-- 1 root root  36 Jan 19  2017 conf-available/10-evasive.conf
-rw-r--r-- 1 root root 128 Jan 19  2017 conf-available/10-evhost.conf
-rw-r--r-- 1 root root 104 Jan 19  2017 conf-available/10-expire.conf
-rw-r--r-- 1 root root 444 Nov 11 22:12 conf-available/10-fastcgi.conf
-rw-r--r-- 1 root root  42 Jan 19  2017 conf-available/10-flv-streaming.conf
 ...
-rw-r--r-- 1 root root 843 Jan 19  2017 conf-available/README
lrwxrwxrwx 1 root root  33 Nov 11 09:09 conf-enabled/10-fastcgi.conf -> ../conf-available/10-fastcgi.conf
lrwxrwxrwx 1 root root  42 Nov 11 08:11 conf-enabled/90-javascript-alias.conf -> ../conf-available/90-javascript-alias.conf

At the moment I don't have a 10-cgi.conf link, but I'm still working on things.  Would you please perform the following commands are report them back here:
# cd /etc/lighttpd
# ls -l
# ls -l */*
This post was edited on 2019-11-12, 09:05 by MartinR.
topic: Lighttpd + Dokuwiki - Won't start, include file not found  in the forum: General Help and Support Installation and Configuration
Avatar
MartinR #13
Member since Jul 2015 · 170 posts · Location: UK
Group memberships: Members
Show profile · Link to this post
In reply to post ID 67742
Both files are owned by root, so lighttpd should be able to read both of them.
Eh?  Unless lighttpd is running as root that's a non-sequitur, and if a webserver is running as root be thankful that it doesn't start!  I run Apache, so there's a bit of guesswork here; is there a user called lighttpd or something similar?  If so try # su - lighttpd and look for permission problems.
topic: Generate a "share" link for a closed wiki?  in the forum: General Help and Support Features and Functionality
Avatar
MartinR #14
Member since Jul 2015 · 170 posts · Location: UK
Group memberships: Members
Show profile · Link to this post
In reply to post ID 67727
Try using
$ wget -rk <url>
This generates a directory tree with a copy of the page in.  It's your tree, you can set the permissions how you like, but remember that it will be Apache that is accessing it, not the remote user.

To test I made a copy of start » user » wikipedia_pages_to_work_on.  The URL is visible on the browser as http://localhost/dokuwiki/doku.…?id=user:wikipedia_pages…:
$ wget -rk http://localhost/dokuwiki/doku.php?id=user:wikipedia_pages_to_work_on
$ chmod -R 755 localhost
$ sudo ln -s <user-home-dir>/localhost/dokuwiki/doku.php?id=user:wikipedia_pages_to_work_on /srv/www/html/PageForBill

The URL /srv/www/html/PageForBill will then open in any browser.
topic: Different sidebars (Different sidebars?)  in the forum: General Help and Support Features and Functionality
Avatar
MartinR #15
Member since Jul 2015 · 170 posts · Location: UK
Group memberships: Members
Show profile · Link to this post
In reply to post ID 67617
Hi Alain, thanks for the pointer.

Both, I think the required plugin should be https://www.dokuwiki.org/plugin:ifauthex, not https://www.dokuwiki.org/plugin:ifauthifauthex was last revised in January this year whereas ifauth was last revised in September 2005.  I'd always be very wary of 14 year old code!
Close Smaller – Larger + Reply to this post:
Special characters:
Page:  1  2  3 ... 10  11  12  next 
Special queries
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2020-01-29, 14:58:47 (UTC +01:00)