There is confusion afoot...I've already done all that. The problem is that the user login doesn't have permissions to run Xcacl or Rmtshare - that's why I use the SUService to do the work and it works fine.
The users logging onto win95 have no SUService and thus do not have permissions to use Xcacl or Rmtshare.
I'm not going for a one-time once-over. The idea is to have the login script automagically create and share the home drive for new or relocated users after.
Like I said, I know how to dfo all this stuff successfully from NT. It's the 95 side that escapes me. I looked into the suggestion to map to the global share and "net share" the sub directory but there are two problems. First, you can't net share to a network drive, and second Win9x doesn't even have "Net Share".
I was then resolve to run a subst command but you can't subst to a network drive.
This Sucks. From the looks of things I'm SOL.
Here's my code anyways:
$filesvr="cfricke-nt"
$homedrive="\\" + $filesvr + "\" + @userid + "$$"
$users="\users"
$basedrive="\\" + $filesvr + $users
$lserver=@lserver + "\netlogon"
use H: "$homedrive"
if @ERROR <> "0"
select
case @inwin = "1"
use H: "$basedrive"
$userdir=Exist("H:\@userid")
if $userdir = "0"
MD "H:\@userid"
endif
SETL "FILESVR=\\$filesvr"
SETL "USERID=@userid"
SETL "LDRIVE=@ldrive"
SETL "LSERVER=$lserver"
shell '%comspec% /c su.exe suservice < \\Tbird\shared$\SU-daily.txt "%LSERVER%\rmtshare.exe %FILESVR%\%USERID%$=d:\users\%USERID% /grant %USERID%:c /remove everyone"'
shell '%comspec% /c su.exe suservice < \\Tbird\shared$\SU-daily.txt "%LSERVER%\xcacls.exe H:\%USERID% /T /C /G %USERID%:C /Y"'
use H: /d
use H: "$homedrive"
case @inwin = "2"
if exist ("H:")
use H: /d
endif
use H: "\\TBird\shared$$"
$sharedrive = "H:\needshare"
$sharefile = @userid + "_" + $filesvr + ".txt"
$sharepath = $sharedrive + "\" + $sharefile
$sharequery = Exist("$sharepath")
if $sharequery <> "1"
OPEN (1,"$sharepath",5)
endif
use H: /d
MESSAGEBOX("Attention @userid! Your homedrive to \\$filesvr has not been mapped! Please call the HelpDesk at x8346.","Attention",04804096,15)
case 1
; unknown operating system
endselect
endif
cls
------------------
Chris Fricke
Clackamas County
[This message has been edited by Manimal (edited 24 May 2000).]
[This message has been edited by Manimal (edited 24 May 2000).]