Welcome Guest Search | Active Topics | Members | Log In | Register

NAS permissions for backup Options · View
Jay
Posted: Tuesday, October 16, 2007 8:15:04 AM


Rank: Guest
Groups: Guest

Joined: 9/17/2007
Posts: 11,670
Points: -1,200
Date parsed: 16/10/2007 08:15:04
Date: Tue, 16 Oct 2007 15:15:04 -0700

SQL Server 2000 (and a couple 2005's)

We're setting up backups to a NAS server (early stages) and have hit a snag
with permissions. For security reasons, not all servers are in the domain
and the UNC to the SAN is not wide open.

I'm currently executing backups from the SQL Server 'sa' account, but can't
figure out what its ID is in Windows. I think that is what I would need to
grant permissions to the SAN.

The only way I can think of to do this is to create an admin account local
to each machine (and in the local sql server) with sysadmin permissions and
then grant that domain\user permissions on the SAN, one-by-one. Seems kinda
kludgie and I would rather continue to use sa for backups.

Thanks,
Jay


Geoff N. Hiten
Posted: Tuesday, October 16, 2007 5:00:23 PM


Rank: Guest
Groups: Guest

Joined: 9/17/2007
Posts: 11,670
Points: -1,200
Date parsed: 16/10/2007 17:00:23
Date: Tue, 16 Oct 2007 21:00:23 -0400

HowTo: Backup to UNC name using Database Maintenance Wizard
http://support.microsoft.com/kb/555128

Resolution section details permissions required.

--
Geoff N. Hiten
Senior SQL Infrastructure Consultant
Microsoft SQL Server MVP



"Jay" <nospan@nospam.org> wrote in message
news:ejniBIEEIHA.5980@TK2MSFTNGP04.phx.gbl...
> SQL Server 2000 (and a couple 2005's)
>
> We're setting up backups to a NAS server (early stages) and have hit a
> snag with permissions. For security reasons, not all servers are in the
> domain and the UNC to the SAN is not wide open.
>
> I'm currently executing backups from the SQL Server 'sa' account, but
> can't figure out what its ID is in Windows. I think that is what I would
> need to grant permissions to the SAN.
>
> The only way I can think of to do this is to create an admin account local
> to each machine (and in the local sql server) with sysadmin permissions
> and then grant that domain\user permissions on the SAN, one-by-one. Seems
> kinda kludgie and I would rather continue to use sa for backups.
>
> Thanks,
> Jay
>

Jay
Posted: Thursday, October 18, 2007 12:12:30 AM


Rank: Guest
Groups: Guest

Joined: 9/17/2007
Posts: 11,670
Points: -1,200
Date parsed: 18/10/2007 00:12:30
Date: Thu, 18 Oct 2007 07:12:30 -0700

Thanks Geoff.

One curosity, the server I wen't for the initial test on was not part of the
domain, hence I couldn't use a domain account. The windows admin handed me a
DOS "net use" command to embed in the procedure, which allowed access to the
UNC.

Now it does have the login/password embeded in the command, which I don't
like, but I am still working on it.

When I went to test some error conditions, I commented out the "net use" and
to my surprise, it still worked. So, I closed the QA session and relaunched
it (EM was still running). It still worked.

I'm wondering if I can put that net use in a seperate proc and run it at
system startup, or maybe do something else to hide it and call it from the
backup program.

Jay

"Geoff N. Hiten" <SQLCraftsman@gmail.com> wrote in message
news:uVk$ZkFEIHA.5752@TK2MSFTNGP02.phx.gbl...
> HowTo: Backup to UNC name using Database Maintenance Wizard
> http://support.microsoft.com/kb/555128
>
> Resolution section details permissions required.
>
> --
> Geoff N. Hiten
> Senior SQL Infrastructure Consultant
> Microsoft SQL Server MVP
>
>
>
> "Jay" <nospan@nospam.org> wrote in message
> news:ejniBIEEIHA.5980@TK2MSFTNGP04.phx.gbl...
>> SQL Server 2000 (and a couple 2005's)
>>
>> We're setting up backups to a NAS server (early stages) and have hit a
>> snag with permissions. For security reasons, not all servers are in the
>> domain and the UNC to the SAN is not wide open.
>>
>> I'm currently executing backups from the SQL Server 'sa' account, but
>> can't figure out what its ID is in Windows. I think that is what I would
>> need to grant permissions to the SAN.
>>
>> The only way I can think of to do this is to create an admin account
>> local to each machine (and in the local sql server) with sysadmin
>> permissions and then grant that domain\user permissions on the SAN,
>> one-by-one. Seems kinda kludgie and I would rather continue to use sa for
>> backups.
>>
>> Thanks,
>> Jay
>>
>


Jay
Posted: Thursday, October 18, 2007 4:45:23 AM


Rank: Guest
Groups: Guest

Joined: 9/17/2007
Posts: 11,670
Points: -1,200
Date parsed: 18/10/2007 04:45:23
Date: Thu, 18 Oct 2007 11:45:23 -0700

The only problem is: what you suggested won't work at all. The number one
requirment was that the account must be a domain account. Kinda hard to do
when the machine isn't on the domain.

And before you respond, the machine was taken off the domain because of
security issues.

.... unless it's possible to create a second domain where both have access to
the NAS?


"Geoff N. Hiten" <SQLCraftsman@gmail.com> wrote in message
news:%23S$yjHbEIHA.4880@TK2MSFTNGP03.phx.gbl...
> This is probably credential caching. I wouldn't bet on it always working,
> but feel free to experiment. I wrote what works every time. Mapped
> drives work some of the time and don't work some of the time so I avoid
> using them.
>
> --
> Geoff N. Hiten
> Senior SQL Infrastructure Consultant
> Microsoft SQL Server MVP
>
>
> "Jay" <spam@nospam.org> wrote in message
> news:eDPxqDZEIHA.5044@TK2MSFTNGP03.phx.gbl...
>> Thanks Geoff.
>>
>> One curosity, the server I wen't for the initial test on was not part of
>> the domain, hence I couldn't use a domain account. The windows admin
>> handed me a DOS "net use" command to embed in the procedure, which
>> allowed access to the UNC.
>>
>> Now it does have the login/password embeded in the command, which I don't
>> like, but I am still working on it.
>>
>> When I went to test some error conditions, I commented out the "net use"
>> and to my surprise, it still worked. So, I closed the QA session and
>> relaunched it (EM was still running). It still worked.
>>
>> I'm wondering if I can put that net use in a seperate proc and run it at
>> system startup, or maybe do something else to hide it and call it from
>> the backup program.
>>
>> Jay
>>
>> "Geoff N. Hiten" <SQLCraftsman@gmail.com> wrote in message
>> news:uVk$ZkFEIHA.5752@TK2MSFTNGP02.phx.gbl...
>>> HowTo: Backup to UNC name using Database Maintenance Wizard
>>> http://support.microsoft.com/kb/555128
>>>
>>> Resolution section details permissions required.
>>>
>>> --
>>> Geoff N. Hiten
>>> Senior SQL Infrastructure Consultant
>>> Microsoft SQL Server MVP
>>>
>>>
>>>
>>> "Jay" <nospan@nospam.org> wrote in message
>>> news:ejniBIEEIHA.5980@TK2MSFTNGP04.phx.gbl...
>>>> SQL Server 2000 (and a couple 2005's)
>>>>
>>>> We're setting up backups to a NAS server (early stages) and have hit a
>>>> snag with permissions. For security reasons, not all servers are in the
>>>> domain and the UNC to the SAN is not wide open.
>>>>
>>>> I'm currently executing backups from the SQL Server 'sa' account, but
>>>> can't figure out what its ID is in Windows. I think that is what I
>>>> would need to grant permissions to the SAN.
>>>>
>>>> The only way I can think of to do this is to create an admin account
>>>> local to each machine (and in the local sql server) with sysadmin
>>>> permissions and then grant that domain\user permissions on the SAN,
>>>> one-by-one. Seems kinda kludgie and I would rather continue to use sa
>>>> for backups.
>>>>
>>>> Thanks,
>>>> Jay
>>>>
>>>
>>
>>
>


Geoff N. Hiten
Posted: Thursday, October 18, 2007 10:08:30 AM


Rank: Guest
Groups: Guest

Joined: 9/17/2007
Posts: 11,670
Points: -1,200
Date parsed: 18/10/2007 10:08:30
Date: Thu, 18 Oct 2007 14:08:30 -0400

This is probably credential caching. I wouldn't bet on it always working,
but feel free to experiment. I wrote what works every time. Mapped drives
work some of the time and don't work some of the time so I avoid using them.

--
Geoff N. Hiten
Senior SQL Infrastructure Consultant
Microsoft SQL Server MVP


"Jay" <spam@nospam.org> wrote in message
news:eDPxqDZEIHA.5044@TK2MSFTNGP03.phx.gbl...
> Thanks Geoff.
>
> One curosity, the server I wen't for the initial test on was not part of
> the domain, hence I couldn't use a domain account. The windows admin
> handed me a DOS "net use" command to embed in the procedure, which allowed
> access to the UNC.
>
> Now it does have the login/password embeded in the command, which I don't
> like, but I am still working on it.
>
> When I went to test some error conditions, I commented out the "net use"
> and to my surprise, it still worked. So, I closed the QA session and
> relaunched it (EM was still running). It still worked.
>
> I'm wondering if I can put that net use in a seperate proc and run it at
> system startup, or maybe do something else to hide it and call it from the
> backup program.
>
> Jay
>
> "Geoff N. Hiten" <SQLCraftsman@gmail.com> wrote in message
> news:uVk$ZkFEIHA.5752@TK2MSFTNGP02.phx.gbl...
>> HowTo: Backup to UNC name using Database Maintenance Wizard
>> http://support.microsoft.com/kb/555128
>>
>> Resolution section details permissions required.
>>
>> --
>> Geoff N. Hiten
>> Senior SQL Infrastructure Consultant
>> Microsoft SQL Server MVP
>>
>>
>>
>> "Jay" <nospan@nospam.org> wrote in message
>> news:ejniBIEEIHA.5980@TK2MSFTNGP04.phx.gbl...
>>> SQL Server 2000 (and a couple 2005's)
>>>
>>> We're setting up backups to a NAS server (early stages) and have hit a
>>> snag with permissions. For security reasons, not all servers are in the
>>> domain and the UNC to the SAN is not wide open.
>>>
>>> I'm currently executing backups from the SQL Server 'sa' account, but
>>> can't figure out what its ID is in Windows. I think that is what I would
>>> need to grant permissions to the SAN.
>>>
>>> The only way I can think of to do this is to create an admin account
>>> local to each machine (and in the local sql server) with sysadmin
>>> permissions and then grant that domain\user permissions on the SAN,
>>> one-by-one. Seems kinda kludgie and I would rather continue to use sa
>>> for backups.
>>>
>>> Thanks,
>>> Jay
>>>
>>
>
>

Geoff N. Hiten
Posted: Thursday, October 18, 2007 11:59:06 AM


Rank: Guest
Groups: Guest

Joined: 9/17/2007
Posts: 11,670
Points: -1,200
Date parsed: 18/10/2007 11:59:06
Date: Thu, 18 Oct 2007 15:59:06 -0400

This setup can work across domain boundaries if there is a trust
relationship in place. The NAs box must be in a resource domain relative to
the SQL server.

--
Geoff N. Hiten
Senior SQL Infrastructure Consultant
Microsoft SQL Server MVP


"Jay" <spam@nospam.org> wrote in message
news:eLtFJcbEIHA.1208@TK2MSFTNGP03.phx.gbl...
> The only problem is: what you suggested won't work at all. The number one
> requirment was that the account must be a domain account. Kinda hard to do
> when the machine isn't on the domain.
>
> And before you respond, the machine was taken off the domain because of
> security issues.
>
> ... unless it's possible to create a second domain where both have access
> to the NAS?
>
>
> "Geoff N. Hiten" <SQLCraftsman@gmail.com> wrote in message
> news:%23S$yjHbEIHA.4880@TK2MSFTNGP03.phx.gbl...
>> This is probably credential caching. I wouldn't bet on it always
>> working, but feel free to experiment. I wrote what works every time.
>> Mapped drives work some of the time and don't work some of the time so I
>> avoid using them.
>>
>> --
>> Geoff N. Hiten
>> Senior SQL Infrastructure Consultant
>> Microsoft SQL Server MVP
>>
>>
>> "Jay" <spam@nospam.org> wrote in message
>> news:eDPxqDZEIHA.5044@TK2MSFTNGP03.phx.gbl...
>>> Thanks Geoff.
>>>
>>> One curosity, the server I wen't for the initial test on was not part of
>>> the domain, hence I couldn't use a domain account. The windows admin
>>> handed me a DOS "net use" command to embed in the procedure, which
>>> allowed access to the UNC.
>>>
>>> Now it does have the login/password embeded in the command, which I
>>> don't like, but I am still working on it.
>>>
>>> When I went to test some error conditions, I commented out the "net use"
>>> and to my surprise, it still worked. So, I closed the QA session and
>>> relaunched it (EM was still running). It still worked.
>>>
>>> I'm wondering if I can put that net use in a seperate proc and run it at
>>> system startup, or maybe do something else to hide it and call it from
>>> the backup program.
>>>
>>> Jay
>>>
>>> "Geoff N. Hiten" <SQLCraftsman@gmail.com> wrote in message
>>> news:uVk$ZkFEIHA.5752@TK2MSFTNGP02.phx.gbl...
>>>> HowTo: Backup to UNC name using Database Maintenance Wizard
>>>> http://support.microsoft.com/kb/555128
>>>>
>>>> Resolution section details permissions required.
>>>>
>>>> --
>>>> Geoff N. Hiten
>>>> Senior SQL Infrastructure Consultant
>>>> Microsoft SQL Server MVP
>>>>
>>>>
>>>>
>>>> "Jay" <nospan@nospam.org> wrote in message
>>>> news:ejniBIEEIHA.5980@TK2MSFTNGP04.phx.gbl...
>>>>> SQL Server 2000 (and a couple 2005's)
>>>>>
>>>>> We're setting up backups to a NAS server (early stages) and have hit a
>>>>> snag with permissions. For security reasons, not all servers are in
>>>>> the domain and the UNC to the SAN is not wide open.
>>>>>
>>>>> I'm currently executing backups from the SQL Server 'sa' account, but
>>>>> can't figure out what its ID is in Windows. I think that is what I
>>>>> would need to grant permissions to the SAN.
>>>>>
>>>>> The only way I can think of to do this is to create an admin account
>>>>> local to each machine (and in the local sql server) with sysadmin
>>>>> permissions and then grant that domain\user permissions on the SAN,
>>>>> one-by-one. Seems kinda kludgie and I would rather continue to use sa
>>>>> for backups.
>>>>>
>>>>> Thanks,
>>>>> Jay
>>>>>
>>>>
>>>
>>>
>>
>
>

Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

YAFPro Theme Created by Jaben Cargman (Tiny Gecko)
Powered by Yet Another Forum.net version 1.9.1.1 (NET v2.0) - 9/10/2007
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.
This page was generated in 0.121 seconds.