Page 1 of 1 1
Topic Options
#5610 - 2000-12-07 10:34 AM Homedir sharing to @USERID refuses to work
masken Offline
MM club member
*****

Registered: 2000-11-27
Posts: 1222
Loc: Gothenburg, Sweden
Hi!

I've searched and read the forum looking for an answer to why Win9x clients refuse to bind the fileserver homedir+userid to a logical drive (H:\)... I thought I found the answer in the topic "Sharing", but that did not work either... :(

The problem:
Win9x clients bind H:\ to the the fileserver "Users" directory, when I want it to be fileserver+Users+userid (in my case \\xntsrv1\users\@userid).

The WinNT 4 sp5 fileserver has D:\User as the shared dir \\xntsrv1\Users.

How should I configure User manager for domains to get KIX working for binding the correct path to H:\ ? I've tried \\xntsrv1\Users\%username% together with the following KIX scripts:

#1:
$Home = "\\xntsrv1\users\" + @USERID
USE H: /DEL /PERSISTENT
USE H: "$Home"

#2:
$Home1 = "\\xntsrv1\users\"
$Home2 = @USERID
$Home = $Home1 + $Home2
USE H: /DEL /PERSISTENT
USE H: "$Home"

Neither of 'em works... i'm getting gray hairs here... help!

none of the shares on the fileserver is hidden, do I have to hide the perhaps?

_________________________
The tart is out there

Top
#5611 - 2000-12-07 11:22 AM Re: Homedir sharing to @USERID refuses to work
masken Offline
MM club member
*****

Registered: 2000-11-27
Posts: 1222
Loc: Gothenburg, Sweden
Hmm... Is it true that you cannot get this to work on Win9x clients? At least, that's what I found at http://wwwcip.informatik.uni-erlangen.de/~orknorr/winhdr.html

Dammit, there MUST be a solution for this common problem?

_________________________
The tart is out there

Top
#5612 - 2000-12-07 02:25 PM Re: Homedir sharing to @USERID refuses to work
kholm Offline
Korg Regular
*****

Registered: 2000-06-19
Posts: 714
Loc: Randers, Denmark
In the topic user directories

Discussing Deep root mapping, i have resently posted a script to create a hidden share for each user
If you can live with all these shares it it a possible solution for Win9x clients.

Erik

Top
#5613 - 2000-12-07 06:28 PM Re: Homedir sharing to @USERID refuses to work
Anonymous
Unregistered


I map the homedrive differently depending on whether the user is using 9x or NT ($FS is defined earlier in the script as "\\servername\"):

; IF <> NT MAP HOMEDRIVE THIS WAY
IF @INWIN<>1
USE F: $FS+@USERID+"$"
ENDIF

; WinNT
IF @INWIN=1
USE F: @HOMESHR
ENDIF

Top
#5614 - 2000-12-08 09:20 AM Re: Homedir sharing to @USERID refuses to work
masken Offline
MM club member
*****

Registered: 2000-11-27
Posts: 1222
Loc: Gothenburg, Sweden
So... if I get this right; if I hide all the userfolders, i SHOULD be able to use \\server\Users\@USERID?

?

_________________________
The tart is out there

Top
#5615 - 2000-12-08 09:52 AM Re: Homedir sharing to @USERID refuses to work
Paul_Berquam Offline
Hey THIS is FUN

Registered: 2000-08-02
Posts: 310
Loc: Sacramento, CA USA
you can only map root IF it's shared or if the client is 2k.

The common practice is to name the directory @userid$ and share it as the same.

Then map to it with use X: \\server\@userid$

------------------

"He was a good little monkey and always very curious..."

_________________________
He was a good little monkey and always very curious...

Top
#5616 - 2000-12-08 10:21 AM Re: Homedir sharing to @USERID refuses to work
masken Offline
MM club member
*****

Registered: 2000-11-27
Posts: 1222
Loc: Gothenburg, Sweden
Thank you! This worked.. and.. is of course the absolutely easiest way to solve it....

(darn i'm stupid sometimes, but have mercy, i'm a newbie :)

hmmm... what's missing now is an automated way for making the @USERID$ directory if it's missing... (eg, a new user is logging on, and I haven't made his/her share dir on the server).

Erik had some idea's on this...

Thanks every1

_________________________
The tart is out there

Top
#5617 - 2000-12-08 10:42 PM Re: Homedir sharing to @USERID refuses to work
Jack Lothian Offline
MM club member
*****

Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
With Win9x clients you can not do this from a client machine. Even with WinNT machines this is a problem because you need admin privledges to do this plus the right utilities. On NT machines I have seen suggestions for getting around the admin privledges constraint but they were quite messy. I suggest you develop a special script for creating userid & user-directory at the same time. This will always run from an admin controlled NT machine. I did post such a script utilizing the resource kit a few months ago.

PS. This is not uniquely a Win9x problem rather it is an NT problem. NT can not do "map rooting" or "deep mapping" either. Rather, NT has a trick feature built-in so when NT-workstation talks to NT-server it can connect to special pseudo-share created by NT-server. This special user directory is not a true share & thus not hidable. These special shares are useless with any client other than WinNT or Win2000 clients.

[This message has been edited by JackLothian (edited 08 December 2000).]

_________________________
Jack

Top
#5618 - 2000-12-11 11:02 PM Re: Homedir sharing to @USERID refuses to work
Anonymous
Unregistered


Here's a neat little command file to automate creation of user directories, I think remtshare is in the resource kit. The names of the servers/domains have been changed to protect the innocent...

echo Creating a new personal folder for %1 on fileserver %fs%
echo If you don't want to do this, press CTRL-C now!
echo Otherwise, press any other key.
pause

net use x: /delete

net use x: %fs%\SYS1\HOME

REM Create new directory
md x:\%1

REM Allow user access to their own directory (in addition to Domain Admins)
cacls x:\%1 /e /g "domainName\%1":f
rem cacls x:\%1 /g "domainName\'domain admins'":f

REM Deny "Everyone" access
cacls x:\%1 /e /r everyone

net use x: /del

REM Create a share for the new directory
rmtshare %fs%\%1$=D:\SYS1\Home\%1
rmtshare %fs%\%1$ /g everyone
rmtshare %fs%\%1$ /g "domainName\%1":f
rmtshare %fs%\%1$ /g "domainName\Domain Admins":f
rmtshare %fs%\%1$ /remark:"%1's Personal Files"

Top
#5619 - 2000-12-12 06:49 AM Re: Homedir sharing to @USERID refuses to work
Jack Lothian Offline
MM club member
*****

Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
Don't you need "xcalcs" to run silent batch scripts? Both xcalcs & rmtshare can be downloaded from the microsoft FTP sit under the resource kit patches section.

These utilities will not run properly from a Win9x machine so Win9x clients can not automatically create home shares.


Here is a possible template for a bat file creating a new user. Using the FOR command you can adapt it so it reads a text file containing the appropriate user info for any number of accounts. I recommend running it from the server.


NET USER %USERID% %password% /add
NET USER %USERID% /scriptpath:LOGON.BAT /passwordchg:no /passwordreq:yes
NET USER %USERID% /times:M-F,7AM-6PM
NET USER %USERID% /fullname:%fname% /comment:%comment% /expires:%edate%
NET GROUP STUDENT %USERID% /ADD

MD d:\USERS\Z%USERID%
XCACLS.EXE D:\USERS\Z%USERID% /t /c /g administrator:fo;fo webmaster:f;f %USERID%:f;f /y
NET USER %USERID% /homedir :\USERS\Z%USERID%
RMTSHARE \\server\%USERID%$=D:\USERS\Z%USERID% /grant %USERID%:f users:2 /remark:%FNAME%
RMTSHARE \\server\%USERID%$ /grant administrators:f
RMTSHARE \\server\%USERID%$ /grant %USERID%:f

_________________________
Jack

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 2419 anonymous users online.
Newest Members
batdk82, StuTheCoder, M_Moore, BeeEm, min_seow
17885 Registered Users

Generated in 0.12 seconds in which 0.062 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org