dbTalk Databases Forums  

Creating and assigning roles to users

comp.databases.sybase comp.databases.sybase


Discuss Creating and assigning roles to users in the comp.databases.sybase forum.



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

Default Creating and assigning roles to users - 08-04-2004 , 07:46 AM






Hi,

can user-defined role be granted to a group?

i tried the following commands:

----------
create role my_role
exec sp_addgroup my_group
go

sp_role 'grant', my_role, my_group
or:
grant role my_role to my_group
----------
Error: No such user/role 'my_group' exists.
----------

in System Administration Guide i found:

System Security Officer privileges:
"System Security Officers can also create and grant user-defined roles
to users, other roles, or groups."

Granting and revoking roles:
"A role can only be granted to a login account or another role."

so, finally, is it possible and how to grant user-defined role to a
group?

i'm running ASE 11.9.2

thanks

Reply With Quote
  #2  
Old   
Bret Halford
 
Posts: n/a

Default Re: Creating and assigning roles to users - 08-04-2004 , 03:20 PM






lena (AT) tippcom (DOT) co.il (Lena) wrote in message news:<ab84434f.0408040446.3e871919 (AT) posting (DOT) google.com>...
Quote:
Hi,

can user-defined role be granted to a group?

i tried the following commands:

----------
create role my_role
exec sp_addgroup my_group
go

sp_role 'grant', my_role, my_group
or:
grant role my_role to my_group
----------
Error: No such user/role 'my_group' exists.
----------

in System Administration Guide i found:

System Security Officer privileges:
"System Security Officers can also create and grant user-defined roles
to users, other roles, or groups."

Granting and revoking roles:
"A role can only be granted to a login account or another role."

so, finally, is it possible and how to grant user-defined role to a
group?

i'm running ASE 11.9.2

thanks
No, it is not possible. Doc Bug 302903 has corrected this in the
manuals. Note that 11.9.2 has been end-of-lifed and 12.0 soon
will be; I recommend upgrading to 12.5.2.

-bret


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 - 2012, Jelsoft Enterprises Ltd.