Thank you for your timely response. I have been out of the dba role for
several years and your short refresher is helpful.
One item I am concerned about is the install in the Admin role. The install
access to the database nor could they start the services. Further as I
db stored procedures would not work. When you refer to install as
In your previous reply your experience shows. You gave a standard enterprise
properly. Again, Thanks!
"Andrea Montanari" wrote:
> hi,
> Randall Loftis wrote:
> > OK, I was able to get the domain group substituted in all of the
> > script but one spot. This was the sp_changegroup stored procedure.
> >
> > Andrea, any suggestions for this other than granting permissions on
> > each object in the database to the group? Guess I'll have to call
> > the software vendor help desk and ask if they used in stored
> > procedures in the code (fat chance they'll know!) ;0)
> >
> usually it's best to install MSDE under administrator permissions... in this
> case no additional task is required ..
> as regard access to specific object, then this is a "required" feature as
> this is the security mechanism directly built in SQL Server it self..
> you added a big security concern, making each user a member of the db_owner
> database role.. no such a permission is actually required.. you should
> always follow the least privilege principle, valid in Windows account
> membership as well as in SQL Server world
> (
http://www.microsoft.com/technet/prodtechnol/winxppro/maintain/luawinxp.mspx)..
> usually a "simple user" only needs access to already created objecs, be
> their base tables (not that good :D), stored procedures, views and the
> like..
> if you want a "very simple" permission path, just make your database users
> members of the db_datareader and db_datawriter builtin database roles.. this
> will grant them access in read write mode to all user tables defined in the
> relative database..
> but the preferred path to go is to create a defined set of other user
> defined database roles..
> you can so define, say, 1 "Managers" database role, another 1 "Accounting
> Employees" role, a "Help desk" role and so on.. each specific database user
> will then be made member of the relative database role(s)...
> going deeper, you'll grant specific permissions to each role (and not to
> users).. so you'll grant read write (AKA SELECT/UPDATE/INSERT/DELETE)
> permissions to the "Managers" role to all tables they require to manage, but
> you won't grant SELECT/UPDATE/INSERT/DELETE permissions to the "Help desk"
> role to accounting related tables... you can this way define the granularity
> of your permission schema(s)...
> but you already pointed out this is not the way to go...
> if you are by yourself in the way to find waht permission is required for
> each specific object than it's very hard.. yes, you are right, the vendor
> should provide a script or a gui tool to manager permissions for you, or you
> can only guess where rights are needed when you get exceptions instead of
> actual results...
> again, db_owner membership is not a panacea and should not be the way to go,
> but obviously works.. :(
>
>
> >USE <Target_Database>
> > exec sp_grantlogin N'<localcomputername>\<user>' <-- this is
> > redundant as already granted before
> > exec sp_grantdbaccess N'<localcomputername>\<user>'
> > exec sp_changegroup 'db_owner', '<localcomputername>\<user>'
> >GO
> and you should use
> EXEC sp_addrolemember 'role', 'user';
> instead of sp_changegroup.. it's not that big issue as your user will only
> be member of the public database role, and can not be eliminated from it...
> but it's more correct :D
>
> another (very sad) way to accomplish a preliminary access (waiting for the
> vendor to provide the path) could be to grant permissions (for each object)
> to the public database role... each user is member of that role so this will
> grant everyone the given permission(s) to all objects.. remember that the
> "guest" database user (if not dropped already, I do it in the model
> database, so that no guest is actually allowed :D) will be granted
> permissions too..
> be very carefull :D
> --
> Andrea Montanari (Microsoft MVP - SQL Server)
>
http://www.asql.biz http://italy.mvps.org > DbaMgr2k ver 0.20.0 - DbaMgr ver 0.64.0 and further SQL Tools
> --------- remove DMO to reply
>
>