473,466 Members | 1,613 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Help ! Dangerous user with SA permissions

Hi guys,

I have been told that only users with SA priviledges could check the
status of a job. For this reason, I had to give SA priviledges to this
user so he could check the results of a job (succesful or not) and do
his work. Now, he makes changes on the database without telling me and
last time we nearly lost one day of work as he changed the db option
to truncate on checkpoint. I don't want to be the one to log on and
verify the results of the job everyday so is there any way that I can
give him limited permissions so he could only check the job and leave
the database alone ? I am pregnant so I am afraid that next time he
does something like that I may hit him on the head with the keyboard
(hormones... :-)Any suggestions would help,
Thanks !!!
Jul 20 '05 #1
4 3364
1) Change the sa password immeditaely.

2) Change the job so that it emails you and the target user every time it
completes and/or fails.
Jul 20 '05 #2
And give him a written warning if you can't sack him immediately.

dc****@aol.comSPNOAM (DCM Fan) wrote in message news:<20***************************@mb-m06.aol.com>...
1) Change the sa password immeditaely.

2) Change the job so that it emails you and the target user every time it
completes and/or fails.

Jul 20 '05 #3

2) Or grant him permissions only to execute sp_help_jobhistory.
"DCM Fan" <dc****@aol.comSPNOAM> wrote in message
news:20***************************@mb-m06.aol.com...
1) Change the sa password immeditaely.

2) Change the job so that it emails you and the target user every time it
completes and/or fails.

Jul 20 '05 #4
pr******@bellsouth.net (Patricia) wrote in message news:<b5**************************@posting.google. com>...
Hi guys,

I have been told that only users with SA priviledges could check the
status of a job. For this reason, I had to give SA priviledges to this
user so he could check the results of a job (succesful or not) and do
his work. Now, he makes changes on the database without telling me and
last time we nearly lost one day of work as he changed the db option
to truncate on checkpoint. I don't want to be the one to log on and
verify the results of the job everyday so is there any way that I can
give him limited permissions so he could only check the job and leave
the database alone ? I am pregnant so I am afraid that next time he
does something like that I may hit him on the head with the keyboard
(hormones... :-)Any suggestions would help,
Thanks !!!


Create a view that points to the job tables in msdb and give the user
SELECT permissions to this view. If the view is create with DBO the
user should be able to access the information without having SA
priviledges.

Something like:

IF OBJECT_ID('vcheckjobstatus') IS NOT NULL
DROP VIEW vcheckjobstatus
GO

CREATE VIEW vcheckjobstatus
AS
SELECT sj.name, sh.run_status, MAX(run_date) as MAXDATE, MAX(run_time)
as MAXTIME
FROM MSDB.DBO.sysjobs sj
INNER JOIN MSDB.DBO.sysjobhistory sh
ON sj.job_id = sh.job_id
GROUP BY sj.name, sh.run_status
GO

GRANT SELECT ON vcheckjobstatus TO user

Randy
www.Database-Security.Info
Jul 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: strict9 | last post by:
I've been searching for hours for a CMS which has a lot of options for user permissions. It has to be free and while mySQL is fine, it can't require root permission to install. Specifically, I...
1
by: Jon Ley | last post by:
I posted a message regarding a problem I'm having with SQL server 7 not taking any notice of the permissions that I'm setting up on my database tables (see thread "SQL Server 7 ignores user...
5
by: karinski | last post by:
I have a form that allows users to select criteria for a report. One of the controls on the form is a multi-select list box. Using the MS Knowledge Base, I wrote my code to pull the items from the...
2
by: ruca | last post by:
hi, How can I setup the user permissions over some pages of my web application? I want to deny that some users access some of my web pages. How can I do this in code? At this moment I have a...
1
by: Amol Shambharker | last post by:
Hello Everyone, I have been working on setting up a windows 2003 machine with IIS 6.0.The web server has the web directory on a UNC share on a windows 2003 server.I want to migrate websites from a...
1
by: James | last post by:
What folders should the ASPNET user have permissions for, & what should they be? I keep getting 'Access Denied' or 'Server Access Denied' errors. I have given the ASPNET user Read & Execute...
1
by: x | last post by:
hi i have made a small database for pilots to log their flying time. i want to set either some user permissions or startup options so that the user might not see the database window nor he/she...
0
by: tony | last post by:
hi. the web server company block all the write permission for the IUSER . they told me to change the settings in my side, to upload and write files throught FTP user permissions. I add the <...
0
by: anil | last post by:
Hi all I am working on the database bit like of auditing. The database is simple only thing is the permissions to various users.In the database the audit report(memo field) is issued to each...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.