cancel
Showing results for 
Search instead for 
Did you mean: 

Can I GRANT PUBLISH to a group user account

Former Member
2,402

Ok, I know I can but is there a reason I should not? SA 10.0.1: DBA has been changed to a group account. In Sybase Central if I go to the SQL Remote tab of the database properties to set the publisher the only accounts listed are user accounts. In ISQL I can grant publish authority to DBA without any problem. Is there a valid reason why Sybase Central would not let me do this?

Accepted Solutions (0)

Answers (1)

Answers (1)

Breck_Carter
Participant

This may be a flaw in Sybase Central that extends to Version 12: Sybase Central shows each user id as having a single "Type" value: Group OR Publisher OR User, when in fact the SYSUSERAUTHORITY table shows each user id can have multiple "auth" values:

GRANT GROUP TO DBA;
GRANT PUBLISH TO DBA;

SELECT SYSUSERAUTHORITY.* FROM SYSUSERAUTHORITY INNER JOIN SYSUSERPERM ON SYSUSERPERM.user_id = SYSUSERAUTHORITY.user_id WHERE SYSUSERPERM.user_name = 'DBA';

user_id,auth 1,'DBA' 1,'RESOURCE' 1,'GROUP' 1,'PUBLISH'

In this case, Sybase Central says the type is "Publisher", but if you do right-mouse-Revoke-Publisher, it shows the type as "Group".

To paraphrase Animal Farm, in the mind of Sybase Central some types are more equal than others 🙂

VolkerBarth
Contributor

...and command line/SQL statement freaks are different from GUI guys:)