Least privilege required for taking and restoring db backups

  • Hi,

    What is the least privilege required to take and restore database backups on user databases..?

  • anyone in the db_owner role of an individual database has the ability to backup, restore or drop their own database, without additional server-wide permissions.

    will that work for you?

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • Thanks Lowell.

    Actually, this is what I have granted to the user..I tried to use the db_backupoperator_role. It did not help.

    I was just wondering is there any other way.. by not giving db_owner privileges..

    Thanks!

    Siva.

  • You can grant backup database permission on user. without giving db_owner rights.

    GRANT BACKUP DATABASE TO [test1]

    GO

    GRANT BACKUP LOG TO [test1]

  • Thanks Poojari. Is there any specific privilege to grant load privileges as well..?

  • Siva Ramasamy (1/27/2012)


    Thanks Lowell.

    Actually, this is what I have granted to the user..I tried to use the db_backupoperator_role. It did not help.

    I was just wondering is there any other way.. by not giving db_owner privileges..

    Thanks!

    Siva.

    Create a job and give them privs to run the job. No need to give them dbo 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)

Viewing 6 posts - 1 through 5 (of 5 total)

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