[moin-user] moinmoin 1.9.x: how to create a user

Paul Boddie paul at boddie.org.uk
Thu Dec 5 06:56:01 EST 2019


On Tuesday 3. December 2019 12.43.25 Renato Pontefice wrote:
> Still nothing,
> I've tried also another password, but with the sane result.

What about if you specify an e-mail address as well...?

moin --config-dir=`/home/rp4/mywiki` account create \
     --name=RenatoP --password=RenatoP --email=renatop at localhost

The moin tool isn't always very helpful when it doesn't get the right options. 
By the way, it isn't checking the password here, it just writes the new user 
details directly.

In case the above doesn't work, also try quoting the values:

moin --config-dir=`/home/rp4/mywiki` account create \
     --name='RenatoP' --password='RenatoP' --email='renatop at localhost'

This might be needed if the shell does some magic with the @ character.

Paul

> Renato
> 
> 
> 11:39 ~ $ moin --config-dir=/home/rp4/mywiki account create --name=RenatoP
> --password=RenatoP 2019-12-03 11:40:04,531 INFO MoinMoin.log:151 using
> logging configuration read from built-in fallback in MoinMoin.log
> module2019-12-03
> 11:40:04,531 INFO MoinMoin.log:157 Running MoinMoin 1.9.10 release code
> from /home/rp4/.local/lib/python2.7/site-packages/MoinMoinUsage: moin
> [command] [general options] command subcommand [specific options]Options:
> --version show program's version number and exit -q, --quiet Be quiet (no
> informational messages) --show-timing Show timing values [default: False]
> --config-dir=DIR Path to the directory containing the wiki configuration
> files. [default: current directory] --wiki-url=WIKIURL URL of a single wiki
> to migrate e.g. http://localhost/mywiki/ [default: CLI] --page=PAGE wiki
> page name [default: all pages] --name=NAME Set the wiki user name to NAME.
> --alias=ALIAS Set the wiki user alias name to ALIAS (e.g. the real name if
> NAME is cryptic). --email=EMAIL Set the user's email address to EMAIL.
> --password=PASSWORD Set the user's password to PASSWORD.11:40 ~ $
> 
> Il giorno mar 3 dic 2019 alle ore 12:32 Paul Boddie <paul at boddie.org.uk> ha
> 
> scritto:
> > Renato,
> > 
> > > it seem it doesn't work
> > > 
> > > 08:33 ~/mywiki $ moin --config-dir=`/home/rp4/mywiki` account create --
> > 
> > name=RenatoP --password=RenatoP
> > 
> > When using the directory name you do not need to use the `...` quotes
> > because
> > this means something to the shell. So try this instead:
> > 
> > moin --config-dir=/home/rp4/mywiki account create --name=RenatoP \
> > 
> >      --password=RenatoP
> > 
> > The `pwd` I mentioned in my last message calls the pwd command and inserts
> > the
> > result into the quotes: that is what they do. You may wish to find some
> > documentation about Unix/Linux/POSIX shells and the syntax to become more
> > comfortable using them.
> > 
> > Regards,
> > 
> > Paul
> > 
> > P.S. Please send replies to the list, not to me personally. I am not in a
> > position to offer personalised support for Moin.



More information about the moin-user mailing list