[Samba] "No such file" error when reading Win98 profiles

Ed Lally elally at jersey.net
Tue Oct 15 00:28:00 GMT 2002


Hi all,

I'm having an odd error with Samba 2.2.5 and I'm wondering if anyone can
give me a hand with it.

About a month ago, I upgraded from Samba 2.2.1 to 2.2.5 on RedHat 7.2 and,
since then, my Win98 users have been receiving "No such file or directory"
errors during login.  The upgrade was installed using John Terpstra's RH 7.2
RPM package.

Users are set up with roaming profiles which, because they use Win98, are
stored in a directory ".ntprofile" off their home directories.  The problem
is that, when their profiles are restored on login, they get an error that a
file -- usually a shortcut to "3-1/2 Floppy (A)" -- can't be found.  The
transcript from the Samba log appears below:

================================================================

[2002/09/18 14:54:45, 10] smbd/mangle_hash.c:is_mangled(317)
  is_mangled: 3_ FLOPPY (A).LNK : False
[2002/09/18 14:54:45, 5] smbd/filename.c:unix_convert(314)
  New file 3_ FLOPPY (A).LNK
[2002/09/18 14:54:45, 8] lib/util.c:is_in_path(1143)
  is_in_path: .ntprofile/Application Data/Microsoft/Office/Recent/3_ FLOPPY
(A).LNK
[2002/09/18 14:54:45, 8] lib/util.c:is_in_path(1148)
  is_in_path: no name list.
[2002/09/18 14:54:45, 3] lib/util.c:unix_clean_name(387)
  unix_clean_name [.ntprofile/Application Data/Microsoft/Office/Recent/3_
FLOPPY (A).LNK]
[2002/09/18 14:54:45, 3] smbd/reply.c:reply_getatr(1209)
  stat of .ntprofile/Application Data/Microsoft/Office/Recent/3_ FLOPPY
(A).LNK failed (No such file or directory)
[2002/09/18 14:54:45, 3] smbd/error.c:error_packet(91)
  error string = No such file or directory
[2002/09/18 14:54:45, 3] smbd/error.c:error_packet(121)
  error packet at smbd/reply.c(1217) cmd=8 (SMBgetatr) eclass=1 ecode=2

================================================================

It looks like a problem with the name mangling for files in MS Office's
"Recent" directory.  What's interesting is that there are LOTS of files
stored in there, so it appears the directory is never getting rid of its old
files.  Clearing the directory fixes the problem for a few days but it
reappears quickly.  I haven't yet monitored the logs to see if Office ever
tries to clean out the files, though.

I've checked permissions for the users and everything looks fine.  Users are
able to read and write everything else in their profiles without trouble --
it looks like it's just this one shortcut to their floppy drive that's
causing the problem.

Finally, here are some entries from my smb.conf that might be related:

================================================================

[global]
        preserve case = Yes
        short preserve case = Yes
        case sensitive = No
        logon path = \\cerberus\profiles\%U
        logon drive = H:
        logon home = \\%N\%U\.ntprofile
        create mask = 0664
        directory mask = 0775
        map system = Yes
        map hidden = Yes
        dos filemode = Yes
        dos filetimes = Yes

================================================================

 
Thanks,

Ed Lally





More information about the samba mailing list