[greenstone-users] Adding new users in greenstone DL

From Anupama of Greenstone Team
DateMon Mar 15 13:51:52 2010
Subject [greenstone-users] Adding new users in greenstone DL
In-Reply-To (7181b771003110856i354dee1avc82da5701f6ec3be-mail-gmail-com)
Hi Ravi,

The admin user is created during install time, and if you chose to have
the demo user, so is demo.

I'm not sure why the Admin page is not adding new users for you.

1. To work out whether it's a runtime issue or whether you just can't
edit the file, can you try the following. Use a terminal to go into your
Greenstone 2 installation folder and type:

> source setup.bash
> ./gsicontrol.sh configure-admin
This let's you change the password for your admin account. Try entering
a new password (it will ask you to enter the new one twice).

Now run your Greenstone server page, go to your Greenstone home page,
click on the Administration button and see if you can login to your
admin account using the new password.

Is this bit still working?


2. If not, can you check whether you have write access to your etc/
folder and the etc/users.gdb file?

Open a terminal, go into your greenstone installation folder and type:
> ls -la etc

And see whether the folder and the file are writable. If not, you'll
have to give them write access.

3. Can you also look through the error logs
- etc/error.txt
- apache-httpd/linux/logs/error_log
to see whether they contain any helpful error messages?
If so, can you mail them to us.


4. If none of the above offers any pointers, the only alternative I can
think of is to
- first copy your Greenstone2/collect folder onto a different location
in your Linux hard drive
- then remove the Greenstone installation and try to re-install
- then move the collect folder back into the new Greenstone 2 installation
- finally, try to recreate a new user account using the Greenstone
Administration pages.

And see if it works this time.

Regards,
Anupama


ravi bhushan wrote:
> Hi,
> Whatever you have told that doesn't work and output of users.gdb seems as:
>
> [demo]
> <comment>Dummy 'demo' user with password 'demo' for authen-e collection
> <enabled>true
> <groups>demo
> <password>Tpp90HTz/jz9w
> <username>demo
> ----------------------------------------------------------------------
> [admin]
> <comment>created at install time
> <enabled>true
> <groups>administrator,colbuilder,all-collections-editor
> <password>TpmcBqiTOazgU
> <username>admin
>
> Here user 'admin' was added during installation and after that no other
> users are getting added from greenstone administration page. I don't
> know from where user 'demo' has been added. I think it is by default.
> Please provide me a solution for "adding new user from administration
> page" in LINUX (Fedora 9) Platform.
>
> Thanks.
>
> On Thu, Mar 11, 2010 at 10:21 AM, Anupama of Greenstone Team
> <greenstone_team@cs.waikato.ac.nz
> <mailto:greenstone_team@cs.waikato.ac.nz>> wrote:
>
> ravi bhushan wrote:
>
> It is working on windows server but, there is problem occuring
> on linux server . When i am clicking "add a new user", it is
> asking for username and password for "admin" ,after that i am
> filling a form for "username" , "password" , "status=enabled"
> and "group=all-collections-editor" . When i am submitting this
> form , it isn't giving any message and again, login page is
> being redirected .
>
>
> I'm not sure what's going on. I'm unable to reproduce the problem here.
>
> After you've sumbitted this form, it *ought* to be redirecting you
> to a page called "List of current users" where you should be able to
> see the Admin user as well as the new user you added. If that is not
> happening, then let's first see whether it actually added this new
> user in:
>
> 1. Open an x-term and go to your Greenstone 2 installation directory
> E.g.
> > cd /usr/ravi/greenstone2
>
>
> 2. Type the following to setup the Greenstone environment:
> > source setup.bash
>
>
> 3. Usernames and passwords are stored in the etc/users.gdb file, but
> since it's a database file, its contents first need to be converted
> into a textual format for us to be able to read it. Its contents
> become legible by typing the following in the same x-term where you
> just sourced the Greenstone setup script:
>
> > db2txt etc/users.gdb
>
> Doing so should display the database file's contents in the x-term,
> where each entry is separated from the next by a ------- line. (The
> password for each user are encrypted.)
>
> For example, in my test Greenstone installation here, my users.gdb
> file contains the following two users (admin, plus a user called "me"):
>
> >db2txt etc/users.gdb
>
> [admin]
> <enabled>true
> <groups>administrator,colbuilder,all-collections-editor
> <password>Tpyf9QOjnoQm.
> <username>admin
> ----------------------------------------------------------------------
> [me]
> <comment>
> <enabled>true
> <groups>personal-collections-editor
> <password>Tp6FXawtOdhlY
> <username>me
>
> ----------------------------------------------------------------------
>
>
> 4. Do you see the "admin" user as an entry in your users.gdb file?
> And are there no other entries in it (such as for the new user you
> just created via the Greenstone Administration web page)?
>
> If the contents of your users.gdb seem wrong to you, what does it
> look like? You could copy the output and send it to me.
>
> Regards,
> Anupama
>
>
> On Wed, Mar 10, 2010 at 6:21 AM, Anupama of Greenstone Team
> <greenstone_team@cs.waikato.ac.nz
> <mailto:greenstone_team@cs.waikato.ac.nz>
> <mailto:greenstone_team@cs.waikato.ac.nz
> <mailto:greenstone_team@cs.waikato.ac.nz>>> wrote:
>
> Hi,
> On the Add A New User page of the Greenstone Administration
> pages,
> you need to add the new user to a group. Try typing one of
> "personal-collections-editor",
> "<enter-the-collection-name>-collection-editor" or
> "all-collections-editor" in the Group field. And ensure that the
> Account Status field is set to "enabled".
>
> Before letting the user test it remotely, test this locally:
> 1. Create a new user yourself for testing purposes. Set their
> group
> status to one of the groups above, try
> "all-collections-editor" for
> example.
>
> 2. Leave the Greenstone Admin pages and return again,
> choosing the
> "Change Password" option instead of "Add a New User". When it
> asks
> the user's username and password, try entering the new user's
> username and password. See if that works.
>
> 3. If it works, the next step is to use the client-GLI
> installed in
> the same Greenstone as your Greenstone server to connect. So run
> client-gli from your Greenstone server installation and try to
> connect to the same server. Enter the new username and
> password and
> see whether your test user has the right to create new
> collections
> and edit those.
>
> 4. If that worked, then go into a new machine, install GLI on
> there
> and run client-gli to connect to the Greenstone server on
> your first
> machine. Once again try logging in using the test user's username
> and password and see whether that user's collection can be edited
> and whether they can create new ones.
>
> Does any of the above not work? If so, could you tell us at which
> step things fail for you?
>
> Regards,
> Anupama
>
>
> ravi bhushan wrote:
>
> Sir,
> I want to add new user in Greenstone DL so that
> he/she
> can add collection remotely with his/her own username and
> password. I am adding users from "Administration page"
> link on
> the of Greenstone home page .It is giving no error on adding
> but, when i am listing users, that user is not present
> and also,
> that user is not able to add a collection remotely with his
> username and password. How can i proceed further.Give a
> solution for this.
>
>
>
>
> Thanks.
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> greenstone-users mailing list
> greenstone-users@list.scms.waikato.ac.nz
> <mailto:greenstone-users@list.scms.waikato.ac.nz>
> <mailto:greenstone-users@list.scms.waikato.ac.nz
> <mailto:greenstone-users@list.scms.waikato.ac.nz>>
>
>
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
>
>
>
>
>