Project

General

Profile

Manage core users » History » Version 10

fuzzy76, 04/19/2010 12:09 PM

1 1 seezer
h1. Manage core users
2 1 seezer
3 7 seezer
h2. Versions >= 0.5:
4 1 seezer
5 7 seezer
quasselcore provides two command-line options:
6 7 seezer
* --add-user
7 7 seezer
>Starts an interactive session to add a new core user
8 7 seezer
* --change-userpass=[USERNAME]
9 7 seezer
>Starts an interactive session to change the password of the user identified by username
10 7 seezer
11 9 fuzzy76
*Note for Ubuntu and Debian users*
12 9 fuzzy76
If you install quasselcore via the default Ubuntu (or Debian) package then your config dir is in '/var/cache/quassel'.  
13 10 fuzzy76
This means that you need to run quasselcore --add-user with --configdir=/var/cache/quassel and with permissions such that it can access that directory.  Usually this means running it with sudo for Ubuntu or as root for Debian.  So for adding a user the example would be
14 8 smithbone
15 8 smithbone
> <pre> sudo quasselcore --configdir=/var/cache/quassel --add-user </pre>   
16 8 smithbone
 
17 7 seezer
h2. Versions prior to 0.5:
18 7 seezer
19 1 seezer
+What you need:+
20 2 EgS
* http://git.quassel-irc.org/?p=quassel.git;a=blob_plain;f=scripts/manageusers.py
21 1 seezer
* python 2.5 with sqlite support
22 1 seezer
* shell access on you core's host as the core's user
23 1 seezer
24 1 seezer
+Steps:+
25 1 seezer
* Download the script
26 5 verschdl
@wget -O manageusers.py "http://git.quassel-irc.org/?p=quassel.git;a=blob_plain;f=scripts/manageusers.py"@
27 1 seezer
28 1 seezer
* Run the script
29 1 seezer
@python manageusers.py@
30 1 seezer
31 1 seezer
32 6 seezer
+The above command will only show you the parameters:+
33 6 seezer
34 6 seezer
@python manageusers.py add foo bar@
35 6 seezer
36 6 seezer
>This will add a user 'foo' with password 'bar' to your core.
37 6 seezer
38 6 seezer
@python manageusers.py changepass foo bar@
39 6 seezer
40 6 seezer
>This will change the password of existing user 'foo' to 'bar'