Ever wondered how to change someone's password in Sakana?
Sakana is a wiki system we really like, but its documentation is on the lacking side (and it's no longer being developed. Sad.)
Anyway, there's a lot of things missing from this system - including password management. Sometimes users want their passwords changed, sometimes they forget. Here are instructions on how an administrator can change a password for a user:
#0: cd into the sakana directory
#1: Grep for the username
$ grep -r username *
Sakana keeps a separate file for each user, so you have to grep for the username.
Remember that file name, for it will be important later.
#2: Generate a new password for the user using some Python
python -c "import md5; print md5.new("newpass").hexdigest()"
The new password must be at least 6 characters!
#3: Open up the file name you found in step 1, and edit the password
If you're familiar with Python, you should understand this file. If your not, this file is basically a representation of a python dictionary, what perl calls an associative hash. Basically: a bunch of keys and their values.
edit this part of the file:
'passwd': '......',
put the password that you generated in step 2 where I put the dots here.
That's how to do it.