Manage core users » History » Version 19
« Previous -
Version 19/25
(diff) -
Next » -
Current version
kitterma, 04/09/2014 10:04 PM
Add Ubuntu/Debian info about change-userpass
Manage core users¶
Versions >= 0.5:¶
quasselcore provides two command-line options:- --add-user
Starts an interactive session to add a new core user
- --change-userpass=[USERNAME]
Starts an interactive session to change the password of the user identified by username
Note for Ubuntu (10.10 and lower) and Debian users
If you install quasselcore via the default Ubuntu (or Debian) package then your config dir is in '/var/cache/quassel'.
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
sudo quasselcore --configdir=/var/cache/quassel --add-user
Note for Ubuntu 11.04 (and later) Users
If you install quasselcore via the default Ubuntu 11.04 package the config directory is now in '/var/lib/quassel'.
This means that you need to run quasselcore --add-user with --configdir=/var/lib/quassel and with permissions such that it can access that directory. Usually this means running it with sudo. So for adding a user the example would be
sudo quasselcore --configdir=/var/lib/quassel --add-user
In case this still gives permission issues (recognized by the 'Core is currently not configured!' message), try:
sudo -u quasselcore -s
followed by
quasselcore -c /var/lib/quassel --add-user
Similarly, it's necessary to be running as the correct user for password changes. For Ubuntu (and Debian with the correct path) this works, although you will have to stop a running core first:
sudo start-stop-daemon --start --chuid 'quasselcore' --exec 'quasse/usr/bin/quasselcore' --configdir='var/lib/quassel' --change-userpass=$USER_TO_BE_CHANGED
Note for openSUSE Users
If you install quasselcore via the openSUSE package (at least from the KDE:Extra repositories), the config directory is in '/var/lib/quasselcore'.
This means that you need to run quasselcore --add-user with --configdir=/var/lib/quasselcore and with permissions such that it can access that directory. Usually this means running it as root or with sudo. So for adding a user the example would be
sudo quasselcore --configdir=/var/lib/quasselcore --add-user
and for changing an user's password:
quasselcore --change-userpass=someusername --configdir=/var/lib/quasselcore
(run as root)