 |
|
 |
|
Next: Primary Key using Select Into
|
| Author |
Message |
External

Since: Oct 23, 2007 Posts: 6
|
(Msg. 1) Posted: Fri Nov 09, 2007 1:41 pm
Post subject: HELP audit a specific user in a database Archived from groups: comp>databases>sybase (more info?)
|
|
|
Hello
I need to set audit in Sybase for some users only. How can I setup
audit for a database and a user on delete, truncate etc
The following commands do it for the database entire users which I
don't want to do
Use mydb
Go
sp_audit "delete" , "all" , "default table" , "on"
go
This audits all users in mydb, but I want to audit only test_dbo is
this possible? If so how?
If I set up under the sybsecurity the following does not capture
everything
sp-audit "all", "test_dbo", "all", "on"
go
I have tried around with different commands but no luck
Thanks
Maria >> Stay informed about: HELP audit a specific user in a database |
|
| Back to top |
|
 |  |
External

Since: Oct 23, 2007 Posts: 6
|
(Msg. 2) Posted: Sat Nov 10, 2007 6:13 am
Post subject: Re: HELP audit a specific user in a database [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Carl Kayser wrote:
> wrote in message
>
> > Hello
> >
> > I need to set audit in Sybase for some users only. How can I setup
> > audit for a database and a user on delete, truncate etc
> >
> > The following commands do it for the database entire users which I
> > don't want to do
> >
> > Use mydb
> > Go
> >
> > sp_audit "delete" , "all" , "default table" , "on"
> > go
> > This audits all users in mydb, but I want to audit only test_dbo is
> > this possible? If so how?
> > If I set up under the sybsecurity the following does not capture
> > everything
> > sp-audit "all", "test_dbo", "all", "on"
> > go
> >
> >
> > I have tried around with different commands but no luck
> >
> >
> > Thanks
> > Maria
> >
>
> Let's get clear on what you want. You want to audit login test_dbo but only
> in database mydb. Assuming this you could make a login that has access only
> to mydb (e.g., test_dbo_mydb) and audit the login. However I suspect that
> activites as a guest user in sybsystemprocs, master, etc would also be
> audited.
>
> 'the following does not capture everything sp_audit "all", "test_dbo",
> "all", "on"'
> What isn't captured? What ASE version are you running?
I'm running ASE 12.5.3 on solaris 5.8
what im doing is the following
use mydb
go
sp_audit "delete", "all" "default table", "on" (this works but
audits evey user on mydb and not a specific user
what I want is
1> sp_audit "delete", "test_dbo", "default table", "on"
2> go
Msg 18225, Level 16, State 1:
Procedure 'sp_audit', Line 332:
Login name must be 'all'.
(return status = 1) >> Stay informed about: HELP audit a specific user in a database |
|
| Back to top |
|
 |  |
External

Since: Oct 23, 2007 Posts: 6
|
(Msg. 3) Posted: Sat Nov 10, 2007 6:57 am
Post subject: Re: HELP audit a specific user in a database [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Carl Kayser wrote:
> wrote in message
>
> > Hello
> >
> > I need to set audit in Sybase for some users only. How can I setup
> > audit for a database and a user on delete, truncate etc
> >
> > The following commands do it for the database entire users which I
> > don't want to do
> >
> > Use mydb
> > Go
> >
> > sp_audit "delete" , "all" , "default table" , "on"
> > go
> > This audits all users in mydb, but I want to audit only test_dbo is
> > this possible? If so how?
> > If I set up under the sybsecurity the following does not capture
> > everything
> > sp-audit "all", "test_dbo", "all", "on"
> > go
> >
> >
> > I have tried around with different commands but no luck
> >
> >
> > Thanks
> > Maria
> >
>
> Let's get clear on what you want. You want to audit login test_dbo but only
> in database mydb. Assuming this you could make a login that has access only
> to mydb (e.g., test_dbo_mydb) and audit the login. However I suspect that
> activites as a guest user in sybsystemprocs, master, etc would also be
> audited.
>
> 'the following does not capture everything sp_audit "all", "test_dbo",
> "all", "on"'
> What isn't captured? What ASE version are you running?
I'm running ASE 12.5.3 on solaris 5.8
what im doing is the following
use mydb
go
sp_audit "delete", "all" "default table", "on" (this works but
audits evey user on mydb and not a specific user
what I want is
1> sp_audit "delete", "test_dbo", "default table", "on"
2> go
Msg 18225, Level 16, State 1:
Procedure 'sp_audit', Line 332:
Login name must be 'all'.
(return status = 1) >> Stay informed about: HELP audit a specific user in a database |
|
| Back to top |
|
 |  |
External

Since: Apr 16, 2004 Posts: 93
|
(Msg. 4) Posted: Sat Nov 10, 2007 8:26 am
Post subject: Re: HELP audit a specific user in a database [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
wrote in message
> Hello
>
> I need to set audit in Sybase for some users only. How can I setup
> audit for a database and a user on delete, truncate etc
>
> The following commands do it for the database entire users which I
> don't want to do
>
> Use mydb
> Go
>
> sp_audit "delete" , "all" , "default table" , "on"
> go
> This audits all users in mydb, but I want to audit only test_dbo is
> this possible? If so how?
> If I set up under the sybsecurity the following does not capture
> everything
> sp-audit "all", "test_dbo", "all", "on"
> go
>
>
> I have tried around with different commands but no luck
>
>
> Thanks
> Maria
>
Let's get clear on what you want. You want to audit login test_dbo but only
in database mydb. Assuming this you could make a login that has access only
to mydb (e.g., test_dbo_mydb) and audit the login. However I suspect that
activites as a guest user in sybsystemprocs, master, etc would also be
audited.
'the following does not capture everything sp_audit "all", "test_dbo",
"all", "on"'
What isn't captured? What ASE version are you running? >> Stay informed about: HELP audit a specific user in a database |
|
| Back to top |
|
 |  |
| Related Topics: | Lookup specific string in all-tables - Hi I am new to sybase, May I know how I can find a specific string (filename in one of the column in one of the table) in a database in which the table's name is unknown? I've read a simular article, saying that the only way to do this is to open a..
user's tables - Hi everyone, I use Sybase Adaptive Server Anywhere Database Engine Version 8.0.2.3601. I've connected to database (isql) but I don't know database structure. Can anyone tell me which sql query should I use to see database structure (I mean tables defined...
Password and user - I don't speack and write english very well, but I try to explane my problem. I have a program that cn has been built SQL Sybase Central, this program is managed with a based application on Visual Basic. When I try to access in my program, its ask me ...
Revoke user from using tempdb 12.5.3 how to - Hello I have created a multiple tempdb in ASE 12.5.3. solaris 5.8 but I would like to revoke from "normal" tempdb usage from a user. Lets say I have created a new tempdb called tempdbtest and JohnDoe user should be only able to use the tempdb...
Transaction on single user system - Hei, Can someone explain why transactions are important even on a single user system? |
|
You can post new topics in this forum You can reply to topics in this forum You can edit your posts in this forum You can delete your posts in this forum You can vote in polls in this forum
|
|
|
|
 |
|
|