dbTalk Databases Forums  

revoking all the privileges from public

microsoft.public.sqlserver.clients microsoft.public.sqlserver.clients


Discuss revoking all the privileges from public in the microsoft.public.sqlserver.clients forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Rogers
 
Posts: n/a

Default revoking all the privileges from public - 08-16-2007 , 10:32 AM






I am revoking all the privileges from public role from master and tempdb
database, will that be any thing wrong after that? just want expert idea
because I ran one tool and it gave me suggession to remove public rights
from system objects on master database.

LIke following are some of the commands

USE MASTER
REVOKE EXEC ON dt_droppropertiesbyid FROM PUBLIC
GO

REVOKE EXEC ON dt_checkinobject FROM PUBLIC
GO

REVOKE SELECT ON dtproperties FROM PUBLIC
GO

REVOKE EXEC ON dt_checkoutobject FROM PUBLIC
GO

REVOKE EXEC ON dt_checkoutobject_u FROM PUBLIC
GO


Please give any suggession,



Reply With Quote
  #2  
Old   
Russell Fields
 
Posts: n/a

Default Re: revoking all the privileges from public - 08-16-2007 , 01:09 PM






Rogers,

Do not revoke all rights from public for these databases. That will break
many things.

RLF
"Rogers" <naissani (AT) hotmail (DOT) com> wrote

Quote:
I am revoking all the privileges from public role from master and tempdb
database, will that be any thing wrong after that? just want expert idea
because I ran one tool and it gave me suggession to remove public rights
from system objects on master database.

LIke following are some of the commands

USE MASTER
REVOKE EXEC ON dt_droppropertiesbyid FROM PUBLIC
GO

REVOKE EXEC ON dt_checkinobject FROM PUBLIC
GO

REVOKE SELECT ON dtproperties FROM PUBLIC
GO

REVOKE EXEC ON dt_checkoutobject FROM PUBLIC
GO

REVOKE EXEC ON dt_checkoutobject_u FROM PUBLIC
GO


Please give any suggession,




Reply With Quote
  #3  
Old   
Rogers
 
Posts: n/a

Default Re: revoking all the privileges from public - 08-16-2007 , 01:15 PM



Thanks alot for your reply,

Is there any Microsoft article on that so I can present this to our Manager
and also refer that Microsoft doesn't recommend that.

Thanks

"Russell Fields" <russellfields (AT) nomail (DOT) com> wrote

Quote:
Rogers,

Do not revoke all rights from public for these databases. That will break
many things.

RLF
"Rogers" <naissani (AT) hotmail (DOT) com> wrote in message
news:eLXU7qB4HHA.5804 (AT) TK2MSFTNGP05 (DOT) phx.gbl...
I am revoking all the privileges from public role from master and tempdb
database, will that be any thing wrong after that? just want expert idea
because I ran one tool and it gave me suggession to remove public rights
from system objects on master database.

LIke following are some of the commands

USE MASTER
REVOKE EXEC ON dt_droppropertiesbyid FROM PUBLIC
GO

REVOKE EXEC ON dt_checkinobject FROM PUBLIC
GO

REVOKE SELECT ON dtproperties FROM PUBLIC
GO

REVOKE EXEC ON dt_checkoutobject FROM PUBLIC
GO

REVOKE EXEC ON dt_checkoutobject_u FROM PUBLIC
GO


Please give any suggession,






Reply With Quote
  #4  
Old   
Russell Fields
 
Posts: n/a

Default Re: revoking all the privileges from public - 08-16-2007 , 02:49 PM



Rogers,

You don't say which version of SQL Server you are running, which may make
some difference.

First of all, you can revoke some rights in master and msdb and still have
the necessary things work, but revoking everything would be a disaster.
Basic system stored procedures that everyone needs would also be revoked.

You need to be more measured in your revoking of rights, which means you
need to understand what is still needed and what can be safely revoke. (If
you are using SQL Server 2005, note that some rights that were exposed in
SQL Server 2000 are now more tightly guarded.)

Here is a PowerPoint SQL Server 2000 oriented from about 3 years ago, which
does suggest some areas for rights to be removed:
http://download.microsoft.com/downlo...pt#302,43,URLs
Tools such as AuditPro also make suggestions.

So, I do not have a specific list for you, review the things in the BOL (or
do "exec sp_helprotect @username='public'" in both master and msdb) to see
what is granted, then think about whether you want that or not. (It is
pointless to manipulate rights in tempdb, since it is rebuilt everytime the
SQL Server restarts and it has its own mechanism for privacy.)

I tried finding a real solid article on this, but (alas) could not.

RLF

Note: The following article offers no guidance on what to revoke and what
not to revoke, it merely tells you what you can do, not what it is wise to
do: http://support.microsoft.com/kb/75291


"Rogers" <naissani (AT) hotmail (DOT) com> wrote

Quote:
Thanks alot for your reply,

Is there any Microsoft article on that so I can present this to our
Manager and also refer that Microsoft doesn't recommend that.

Thanks

"Russell Fields" <russellfields (AT) nomail (DOT) com> wrote in message
news:eMITWCD4HHA.5776 (AT) TK2MSFTNGP04 (DOT) phx.gbl...
Rogers,

Do not revoke all rights from public for these databases. That will
break many things.

RLF
"Rogers" <naissani (AT) hotmail (DOT) com> wrote in message
news:eLXU7qB4HHA.5804 (AT) TK2MSFTNGP05 (DOT) phx.gbl...
I am revoking all the privileges from public role from master and tempdb
database, will that be any thing wrong after that? just want expert idea
because I ran one tool and it gave me suggession to remove public rights
from system objects on master database.

LIke following are some of the commands

USE MASTER
REVOKE EXEC ON dt_droppropertiesbyid FROM PUBLIC
GO

REVOKE EXEC ON dt_checkinobject FROM PUBLIC
GO

REVOKE SELECT ON dtproperties FROM PUBLIC
GO

REVOKE EXEC ON dt_checkoutobject FROM PUBLIC
GO

REVOKE EXEC ON dt_checkoutobject_u FROM PUBLIC
GO


Please give any suggession,








Reply With Quote
  #5  
Old   
Rogers
 
Posts: n/a

Default Re: revoking all the privileges from public - 08-16-2007 , 03:43 PM



Thanks alot, I am using SQL Server 2000.

Thanks

"Russell Fields" <russellfields (AT) nomail (DOT) com> wrote

Quote:
Rogers,

You don't say which version of SQL Server you are running, which may make
some difference.

First of all, you can revoke some rights in master and msdb and still have
the necessary things work, but revoking everything would be a disaster.
Basic system stored procedures that everyone needs would also be revoked.

You need to be more measured in your revoking of rights, which means you
need to understand what is still needed and what can be safely revoke.
(If you are using SQL Server 2005, note that some rights that were exposed
in SQL Server 2000 are now more tightly guarded.)

Here is a PowerPoint SQL Server 2000 oriented from about 3 years ago,
which does suggest some areas for rights to be removed:
http://download.microsoft.com/downlo...pt#302,43,URLs
Tools such as AuditPro also make suggestions.

So, I do not have a specific list for you, review the things in the BOL
(or do "exec sp_helprotect @username='public'" in both master and msdb) to
see what is granted, then think about whether you want that or not. (It
is pointless to manipulate rights in tempdb, since it is rebuilt everytime
the SQL Server restarts and it has its own mechanism for privacy.)

I tried finding a real solid article on this, but (alas) could not.

RLF

Note: The following article offers no guidance on what to revoke and what
not to revoke, it merely tells you what you can do, not what it is wise to
do: http://support.microsoft.com/kb/75291


"Rogers" <naissani (AT) hotmail (DOT) com> wrote in message
news:Oqsq$FD4HHA.3900 (AT) TK2MSFTNGP02 (DOT) phx.gbl...
Thanks alot for your reply,

Is there any Microsoft article on that so I can present this to our
Manager and also refer that Microsoft doesn't recommend that.

Thanks

"Russell Fields" <russellfields (AT) nomail (DOT) com> wrote in message
news:eMITWCD4HHA.5776 (AT) TK2MSFTNGP04 (DOT) phx.gbl...
Rogers,

Do not revoke all rights from public for these databases. That will
break many things.

RLF
"Rogers" <naissani (AT) hotmail (DOT) com> wrote in message
news:eLXU7qB4HHA.5804 (AT) TK2MSFTNGP05 (DOT) phx.gbl...
I am revoking all the privileges from public role from master and tempdb
database, will that be any thing wrong after that? just want expert idea
because I ran one tool and it gave me suggession to remove public rights
from system objects on master database.

LIke following are some of the commands

USE MASTER
REVOKE EXEC ON dt_droppropertiesbyid FROM PUBLIC
GO

REVOKE EXEC ON dt_checkinobject FROM PUBLIC
GO

REVOKE SELECT ON dtproperties FROM PUBLIC
GO

REVOKE EXEC ON dt_checkoutobject FROM PUBLIC
GO

REVOKE EXEC ON dt_checkoutobject_u FROM PUBLIC
GO


Please give any suggession,










Reply With Quote
  #6  
Old   
Rogers
 
Posts: n/a

Default Re: revoking all the privileges from public - 08-16-2007 , 03:47 PM



Please send me the list If you find any like which system objects in Master
and MSDB can be revoked from Public Role, and no impact on sql server.

Thanks alot for your help.

"Russell Fields" <russellfields (AT) nomail (DOT) com> wrote

Quote:
Rogers,

You don't say which version of SQL Server you are running, which may make
some difference.

First of all, you can revoke some rights in master and msdb and still have
the necessary things work, but revoking everything would be a disaster.
Basic system stored procedures that everyone needs would also be revoked.

You need to be more measured in your revoking of rights, which means you
need to understand what is still needed and what can be safely revoke.
(If you are using SQL Server 2005, note that some rights that were exposed
in SQL Server 2000 are now more tightly guarded.)

Here is a PowerPoint SQL Server 2000 oriented from about 3 years ago,
which does suggest some areas for rights to be removed:
http://download.microsoft.com/downlo...pt#302,43,URLs
Tools such as AuditPro also make suggestions.

So, I do not have a specific list for you, review the things in the BOL
(or do "exec sp_helprotect @username='public'" in both master and msdb) to
see what is granted, then think about whether you want that or not. (It
is pointless to manipulate rights in tempdb, since it is rebuilt everytime
the SQL Server restarts and it has its own mechanism for privacy.)

I tried finding a real solid article on this, but (alas) could not.

RLF

Note: The following article offers no guidance on what to revoke and what
not to revoke, it merely tells you what you can do, not what it is wise to
do: http://support.microsoft.com/kb/75291


"Rogers" <naissani (AT) hotmail (DOT) com> wrote in message
news:Oqsq$FD4HHA.3900 (AT) TK2MSFTNGP02 (DOT) phx.gbl...
Thanks alot for your reply,

Is there any Microsoft article on that so I can present this to our
Manager and also refer that Microsoft doesn't recommend that.

Thanks

"Russell Fields" <russellfields (AT) nomail (DOT) com> wrote in message
news:eMITWCD4HHA.5776 (AT) TK2MSFTNGP04 (DOT) phx.gbl...
Rogers,

Do not revoke all rights from public for these databases. That will
break many things.

RLF
"Rogers" <naissani (AT) hotmail (DOT) com> wrote in message
news:eLXU7qB4HHA.5804 (AT) TK2MSFTNGP05 (DOT) phx.gbl...
I am revoking all the privileges from public role from master and tempdb
database, will that be any thing wrong after that? just want expert idea
because I ran one tool and it gave me suggession to remove public rights
from system objects on master database.

LIke following are some of the commands

USE MASTER
REVOKE EXEC ON dt_droppropertiesbyid FROM PUBLIC
GO

REVOKE EXEC ON dt_checkinobject FROM PUBLIC
GO

REVOKE SELECT ON dtproperties FROM PUBLIC
GO

REVOKE EXEC ON dt_checkoutobject FROM PUBLIC
GO

REVOKE EXEC ON dt_checkoutobject_u FROM PUBLIC
GO


Please give any suggession,










Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.