Non-SysAdmins have been denied permission to run CmdExec job steps

  • Hi Folks

    I am trying to run job from sql Agent and my first step is containg cmdExec Command but getting failed and in error log shwoing me messaege "Non-SysAdmins have been denied permission to run CmdExec job steps" .

    Though the account under the job running as has sysadmin rights and db_owner for particular DB.

    Any ideas?

    Thanks

  • sysadmin & db_owner have limited scope till database (or database server). You are blocked by IT dept. and the account you are using for running the jobs doesn't belong to Domain Admin (or Local Admin) group.

  • Thanks Dev i was thinking same . let me work out on what you said .

  • Under properties of SQL Server Agent there's a setting under the job system

    tab:"Non-sysadmin job step proxy account" and create proxy account.

    java[/url]

  • There are ways to allow for the system to execute xp_CmdShell and for users to execute stored procedures that contain xp_CmdShell without the users being able to execute xp_CmdShell and without users having anything more than PUBLIC privs. Google for Erland Sommarskog's articles on the subject.

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

  • Create a proxy and execute the job with the proxy account.

    Jason...AKA CirqueDeSQLeil
    _______________________________________________
    I have given a name to my pain...MCM SQL Server, MVP
    SQL RNNR
    Posting Performance Based Questions - Gail Shaw[/url]
    Learn Extended Events

  • SQLRNNR (12/15/2011)


    Create a proxy and execute the job with the proxy account.

    Basically, yes. You just need to do it in a way where the low-priv user doesn't even need IMPERSONATE privs.

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

  • If the service account used by the Agent is already SA in the SQL Server then check the owner of the job. This login should be an SA account within SQL server as well.

    Amar

Viewing 8 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic. Login to reply