More info on the new problem

Andrew Perrin - Demography aperrin at demog.Berkeley.EDU
Thu Jun 11 17:36:44 GMT 1998


The issue I posted this morning re: %U and %H not resolving correctly is
somewhat more nuanced than I thought.

1.) I changed smb.conf so the share is now defined as:
[ntprofile]
        guest ok = no
        read only = no
        browseable = yes
        wide links = yes
        printable = no
;       path = /home/davis/hdir1/%U/ntprofile
        path = %H/ntprofile
        locking = no
        Comment = Profile Directory (%U)
 
	... but it still doesn't work (same behavior).

2.) Here's an interesting log from a login session in which the domain
server validates the login using the correct name and password (ntadmin)
but then tries to connect to the wrong profile directory
(~aperrin/ntprofile) and fails.

chdir to /etc/init.d
1998/06/11 09:04:55 Transaction 182 of length 165
switch message SMBsesssetupX (pid 17396)
Domain=[DEMOGRAPHY]  NativeOS=[Windows NT 1381] NativeLanMan=[]
sesssetupX:name=[ntadmin]
resolve_name: Attempting lmhosts lookup for name BOSERUP
startlmhosts: Can't open lmhosts file /usr/LOCAL/samba/lib/lmhosts. Error
was No such file or directory
resolve_name: Attempting host lookup for name BOSERUP
Connecting to 128.32.163.119 at port 139
adding home directory ntadmin at /home/davis/hdir1/ntadmin
ntadmin is in 1 groups
726 
uid 9335 registered to name ntadmin
Clearing default real name
1998/06/11 09:04:56 Transaction 183 of length 96
switch message SMBtrans2 (pid 17396)
chdir to /home/davis/hdir1/aperrin/ntprofile
chdir to /home/davis/hdir1/aperrin/ntprofile
1998/06/11 09:04:57 chdir (/home/davis/hdir1/aperrin/ntprofile) failed
cnum=52
1998/06/11 09:04:57 error packet at line 4642 cmd=50 (SMBtrans2) eclass=2
ecode=4
error string = Permission denied
1998/06/11 09:04:57 Transaction 184 of length 90
switch message SMBtrans2 (pid 17396)
chdir to /home/davis/hdir1/aperrin/ntprofile
chdir to /home/davis/hdir1/aperrin/ntprofile
1998/06/11 09:04:57 chdir (/home/davis/hdir1/aperrin/ntprofile) failed
cnum=52
1998/06/11 09:04:57 error packet at line 4642 cmd=50 (SMBtrans2) eclass=2
ecode=4
error string = Permission denied

3.) This behavior is relatively short-lived -- I tested it by logging off
the PC as one user, waiting approximately 3 minutes, and logging back in
as a different user -- the problem goes away and the login works fine.
Seems like somebody's holding some information just a tad too long?
 
---------------------------------------------------------------------
Andrew J. Perrin - aperrin at demog.berkeley.edu - NT/Unix Admin/Support
Department of Demography    -    University of California at Berkeley
2232 Piedmont Avenue #2120  -    Berkeley, California, 94720-2120 USA
http://demog.berkeley.edu/~aperrin --------------------------SEIU1199



More information about the samba-ntdom mailing list