Re: Creat trusted user

From: Dan Guzman (danguzman_at_nospam-earthlink.net)
Date: 07/31/04

  • Next message: John Bell: "Re: How to secure the database phisycall file."
    Date: Sat, 31 Jul 2004 11:34:03 -0500
    
    

    By 'trusted user' I assume you mean an existing Windows account. You can
    grant a Windows account permissions to connect to SQL Server using
    sp_grantlogin:

        EXEC sp_grantlogin 'MyDomain\MyAccount'

    You can then grant the account access to a particular database using
    sp_grantdbaccess:

        USE MyDatabase
        EXEC sp_grantdbaccess 'MyDomain\MyAccount'

    The user will also need object permissions. This is normally accomplished
    by creating roles, granting object permissions to roles and using role
    membership to control user object access.

        EXEC sp_addrole 'MyRole'
        GRANT SELECT ON MyTable TO MyRole

        EXEC sp_addrolemember 'MyRole', 'MyDomain\MyAccount'

    -- 
    Hope this helps.
    Dan Guzman
    SQL Server MVP
    "F_ps10" <f_ps510@yahoo.uk.co> wrote in message
    news:%2347s2mxdEHA.3732@TK2MSFTNGP11.phx.gbl...
    > hi every one ,
    > I used many different way to creat trusted user in SQL Server2000 runing
    on
    > WinServer2003 but any of them din't work!!!
    > Do u have any suggestion ?!?
    >
    >
    

  • Next message: John Bell: "Re: How to secure the database phisycall file."

    Relevant Pages

    • Re: Detailed User Access Rights
      ... Sysadmin role members have full SQL Server permissions and OS permissions ... > 2) Now that my customers can create their own views etc, ... GRANT SELECT ON MyTableFunction TO CustomerUser ...
      (microsoft.public.sqlserver.security)
    • Re: Permission to Insert records for DB USERS
      ... You could use the GRANT command to grant INSERT permissions to users. ... See SQL Server Books Online for more information. ... > for the permissions on the database. ...
      (microsoft.public.sqlserver.security)
    • Re: permission assigned to the data base
      ... grant the INSERT permission on the authors table to another user. ... How can I retrieve a list of objects and permissions for a specified role? ... In SQL Server 2005, you can use the Has_Perms_By_Namefunction ... Please see Books Online for details. ...
      (microsoft.public.sqlserver.security)
    • Using Network Service Account to remote SQL Server with WSS
      ... seems like a good idea and kb below has some detail on how to grant ... permissions in SQL Server by using Domain\Computername$ ... Saves manaully creating service account and having a password that should be ...
      (microsoft.public.sharepoint.windowsservices)
    • Re: FC5: Sendmail error
      ... Those are correct permissions, ... I made it root. ... You shouldn't normally need a trusted user in sendmail.cf at all. ... I'd be inclined to do chown root /etc/aliases.db and then forget about it unless it somehow gets changed back to being owned by smmsp, in which case I'd be looking to find out how that happened. ...
      (Fedora)