Zen Cart Logo
Forums / Basic Configuration / Database user in configure.php

Database user in configure.php

Views: 1,112

Results 1 to 4 of 4
25 Aug 2014, 7:16 PM
#1
ericras avatar

ericras

New Zenner

Join Date:
Aug 2012
Location:
Brigham City, UT
Posts:
32
Plugin Contributions:
0

Database user in configure.php

Can someone clarify for me what database privileges the user entered in the configure.php file should have?

SELECT, INSERT, UPDATE....anything more than that?

Eric

25 Aug 2014, 8:23 PM
#2
ericras avatar

ericras

New Zenner

Join Date:
Aug 2012
Location:
Brigham City, UT
Posts:
32
Plugin Contributions:
0

Re: Database user in configure.php

I guess I should clarify...

There are two configure.php files, one for the store and one for admin. They could (and maybe should) have two different database users defined in the connection info.

Can the store's configure.php db user be limited to SELECT, INSERT and UPDATE?
And, should the admin configure.php db user have all privileges?

25 Aug 2014, 8:54 PM
#3
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,080
Plugin Contributions:
56

Re: Database user in configure.php

EricRas:

I guess I should clarify...

There are two configure.php files, one for the store and one for admin. They could (and maybe should) have two different database users defined in the connection info.

Can the store's configure.php db user be limited to SELECT, INSERT and UPDATE?
And, should the admin configure.php db user have all privileges?
Certainly, the admin user should have all privileges; is there a reason that you're looking to limit the access on the store-side? At a minimum, without doing an exhaustive search, the store-side needs to be able to "DELETE" rows from tables. I understand the security focus, but I think that you're opening yourself up to a world of hurt in the future when you add plugins that might do "other things".

25 Aug 2014, 10:29 PM
#4
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Database user in configure.php

lat9:

....but I think that you're opening yourself up to a world of hurt in the future when you add plugins that might do "other things".

Nods in agreement :yes: