Create Super Librarian by command line in koha LMS

Koha Super librarian

Sometimes Librarians forget the login credentials (User ID and Password) in the koha or the koha system has blocked the patrons account because of several unauthorized (wrong password) attempts to log in. In that case, we can create a new user account with the superuser/admin rights by the command lines.

Lets us know how to create a new Super Librarian account.

1. Activate environmental variables

sudo su

export PERL5LIB="/usr/share/koha/lib" 

export KOHA_CONF="/etc/koha/sites/library/koha-conf.xml"

2. Change the super librarian script directory 

cd /usr/share/koha/bin/devel/

3. Executive the following command to create a patron with the super librarian rights

./create_superlibrarian.pl --userid Librarian --password [email protected] --branchcode MAIN --categorycode STA --cardnumber 2000

In the above command following details have been used. you can change the details accordingly 

Patrons User ID- Librarian

Patrons Password- [email protected]

Library branchcode- MAIN

Patron categorycode- STA

Patron cardnumber-2000

NB:- Put the branchcode and patron categorycode carefully, These must be the same as you have created in your koha server.

Information Courtesy:- http://kohageek.blogspot.com/2018/07/create-super-librarian-by-command-line.html

No comments

Powered by Blogger.
https://www.vijenderkumar.com/2022/08/create-super-librarian-by-command-line.html
www.vijenderkumar.com
crawl=CC-MAIN-2022-40
289199
application/http; msgtype=response
sha1:ORHNL4CERARJDVPCMES33AMQXYN6RBM6
<urn:uuid:b6c1fa3a-311d-4e49-ad26-e62dc132e682>
2022-10-03T20:58:14Z
172.67.162.232
application/xhtml+xml
sha1:TTOABIAFSSZEO4PXXKNDMHDUSN2QYVXG
<urn:uuid:7e1b9df4-6eae-48f6-82dc-09986d91c635>
https://www.vijenderkumar.com/2022/08/create-super-librarian-by-command-line.html
response
<urn:uuid:6202ff13-2d7b-4638-9487-bab810522573>
isPartOf: CC-MAIN-2022-40
publisher: Common Crawl
description: Wide crawl of the web for September/October 2022
operator: Common Crawl Admin (info@commoncrawl.org)
hostname: ip-10-67-67-12
software: Apache Nutch 1.19 (modified, https://github.com/commoncrawl/nutch/)
robots: checked via crawler-commons 1.4-SNAPSHOT (https://github.com/crawler-commons/crawler-commons)
format: WARC File Format 1.1
conformsTo: https://iipc.github.io/warc-specifications/specifications/warc-format/warc-1.1/