Re: Default user permissions

From: Stephane Faroult <sfaroult_at_roughsea.com>
Date: Tue, 08 Nov 2011 17:09:17 +0100
Message-ID: <4EB9542D.2020403_at_roughsea.com>



It comes from role CONNECT, and the reason is compatibility with Oracle 5, when CONNECT was a privilege and not a role (roles and privileges were introduced with Oracle 6).
Actually, it comes from the combination of CONNECT (which grants CREATE TABLE) with the unlimited quota (which gives the "physical possibility" of using the system privilege).
Grant CREATE SESSION instead of CONNECT. No need for quotas. Oh, and RESOURCE is even worse ....

HTH

-- 
Stephane Faroult
RoughSea Ltd <http://www.roughsea.com>
Konagora <http://www.konagora.com>
RoughSea Channel on Youtube <http://www.youtube.com/user/roughsealtd>


On 11/08/2011 04:44 PM, Leo Drobnis wrote:

> I am a bit puzzled, maybe I am getting rusty.
>
>
> I need to create a user with bare minimum permissions:
>
>
>
> CREATE USER bb_stage
>
> IDENTIFIED BY "password"
>
> DEFAULT TABLESPACE users
>
> TEMPORARY TABLESPACE TEMP;
>
> GRANT CONNECT TO bb_stage;
>
> ALTER USER bb_stage QUOTA UNLIMITED ON "USERS";
>
>
>
> Connect role only has create session.
>
> Public has no privileges.
>
>
>
> However the newly created user can create and drop tables.
>
>
>
> I am trying to find where it's coming from.
>
>
>
> Any idea???
>
>
> --
> http://www.freelists.org/webpage/oracle-l
>
>
>
-- http://www.freelists.org/webpage/oracle-l
Received on Tue Nov 08 2011 - 10:09:17 CST

Original text of this message