From: Sakovich, Aaron <ASakovich@ncs.com>
Subject: RE: Command Scheduler Owner
Date: Tue, 11 Jun 96 10:12:00 PDT [thread overview]
Message-ID: <1996q2-0522.alphant@archive.invalid> (raw)
owner-alphant wrote:
>
>Good day,
>
>I am having problems with a backup that is being performed by the
command
>scheduler. Backups fail on remote NT workstations disks with an error
saying
>that I don't have permission to access the disk.
>
>However.
>
>The same backup batch file works fine when I run it. (not using the
>scheduler).
>
>How can I check to see who the owner of the scheduler is (I cant find it
in
>the registry).
>
>
>Thanks in Advance
>
>Brian V
Several people have recommended setting the AT service to run as a
separate account in the backup admins group. I personally would prefer
*NOT* to do that. This opens a security hole in that anyone who can
schedule a job on the system now has access to *all* the files on the
system. Not good.
What I do instead is to provide a common account on all the machines in
the backup group (call it BACKUP) with a common password (say PWORD).
Now, I can create a procedure on my machine with the tape device that
does the following:
net use X: \\node\c$ /user:node\BACKUP PWORD
You've got to provide both the username and password on this NET USE
line, otherwise the connection will be made as the system (or would it be
guest access? I've not tried it, so I couldn't say.) Either way, now
I've got access to all the files on that drive and can back it up. No
changing the AT service, either.
Ah, but those of you enlightened in security matters say "WHOA! You
stuck a password in a file!!!" Yup, sure did. Sorry 'bout that. This
obviously needs to be an extremely tightly controlled file, or you've got
another security breach. Any other ideas on how else to provide password
protected access? You definitely don't want to provide the password as a
parameter to the procedure passed from the AT command (just do an AT and
you'd see it). Can it be encrypted somehow? Not that I'm aware of. A
proxy? That's basically what you're doing in a workgroup, which requires
the password.
Below is my procedure to actually do the backups. Note that this is a
modular routine and is called from another procedure with varying
parameters for different workstations and drives. Schedule this other
procedure, not this one (don't forget to change the PASSWORD on line
15).
------------------------ cut here ---------------------------
rem @echo off
rem System_backup.bat
rem by ACSakovich, 12/18/95
rem
rem Parameters: 1 2 3 4+
rem Domain Node Disk Other optional parameters to NTbackup
rem Name Name Share (up to 6)
rem e.g. WGRP NODE C$ /d "Joe's node" /a /t normal
echo ------------------------------------------------
time < nul: | findstr "current"
echo Backing up \\%2\%3 in domain %1
echo.
if %computername% == %2% goto Local
echo *** Connecting to remote machine
set drive=X
if exist %drive%:\. net use %drive%: /d
net use %drive%: \\%2\%3 /user:%1\Backup !!!YourPasswordHere!!!
if errorlevel 1 goto NoConn
echo *** Backing up remote drive
goto Backup
:Local
set drive=%3
echo *** Backing up local drive
:Backup
ntbackup backup %drive%: /v /b /l "d:\users\backup\logfiles\%1%2%3.log"
/e %4 %5 %6 %7 %8 %9
if %computername% == %2% goto Done
echo *** Disconnecting remote machine
net use %drive%: /d
:Done
echo *** Exiting
:NoConn
------------------------ cut here ---------------------------
Hope this helps,
Aaron
--
Aaron Sakovich ---------------------------------------- aaron@garply.com
Alpha NT mail list ------------------------------- Alpha NT file archive
alphant@garply.com http://www.garply.com/tech/comp/sw/pc/nt/alpha.html
-
(The above mail message was from "Sakovich, Aaron" <ASakovich@ncs.com>, to alphant)
To subscribe to this list: To: majordomo@garply.com, Text: SUBSCRIBE ALPHANT
To unsubscribe: To: majordomo@garply.com, Text: UNSUBSCRIBE ALPHANT
Alpha NT FAQ: http://www.garply.com/tech/comp/sw/pc/nt/ant_faq.html
next reply other threads:[~1996-06-11 17:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-06-11 17:12 Sakovich, Aaron [this message]
-- strict thread matches above, loose matches on Subject: below --
1996-06-11 16:16 Command Scheduler Owner Jim Crozier
1996-06-11 10:27 Pedro Mendes
1996-06-10 23:20 Bobby Seder
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox