Gossamer Forum
Home : Products : DBMan : Installation :

DBMAN Install - Default User.

Quote Reply
DBMAN Install - Default User.
I would like to make it so that when people hit a link to get to the db.cgi (default db) they are logged in and have Author rights.

I made a link that was "www.myserv/dbman/db.cgi?uid=author&pw=author"

It gave me a login error and sent me to the login box created by the script. Any ideas why?

Thanks
Quote Reply
Re: DBMAN Install - Default User. In reply to
What do you mean by "author" rights? I don't think you want just anybody being able to go in and modify or delete all the records. If you want them to be able to modify and delete their own records, you will have to require an individual login.

If you want a default user to be able to view and add records, in the .cfg file, set

$auth_no_authentication = 0;
$auth_allow_default = 1;
@auth_default_permissions = (1,1,0,0,0);
$auth_modify_own = 0;
$auth_view_own = 0;
$auth_user_field = -1;

The link you would use for a default user to go to the database homepage would be

www.myserv/dbman/db.cgi?uid=default

When you want to login as admin, you would use just

www.myserv/dbman/db.cgi

Hope this helps.


------------------
JPD
Quote Reply
Re: DBMAN Install - Default User. In reply to
Hello,

That was what I needed. Thanks for the help and fast reply JPD!

Rob