When i access from WinXP, it works fine with the username=user1 and password, but when i access from win98 it prompt a box that automatically fill the username with //pc1/11 and password request me to fill in. When i fill in the password of user1 it didnt work and reprompt. Why does it work on WINXP while win98 seems not working with the same configuration file? any idea ? or is there way i can configure so it will just allow access rather than ask for username and password?

thanks for taking time helping!

Regards
Y

cyberfreaker2k

01-19-2007 01:47 AM

win9x does not suport user security with encryption i beleive
try security=share
and encryption=no

doc.nice

01-19-2007 08:24 AM

NACK, cyberfreaker2k: Win 98 can use encrypted passwords with user mode, this is the default setting in Win98, you must explictily change a registy value to use unencrypted passwords!

You have to use a username that exists on the samba server, so in your case, you could use username "user1". Wehen these credentials will work from winXP, they also should work from Win 98.
To use the user 11 from machine pc1 (//pc1/11) you would have to create it on the linux machine using adduser AND smbpasswd. (as you did with user1 i assume)

excerpts from man smb.conf ([X] you want to read the whole manpage)

Quote:

encrypt passwords (G)
This boolean controls whether encrypted passwords will be negotiated
with the client. Note that Windows NT 4.0 SP3 and above and also
Windows 98 will by default expect encrypted passwords unless a reg-
istry entry is changed. To use encrypted passwords in Samba see the
chapter "User Database" in the Samba HOWTO Collection.

MS Windows clients that expect Microsoft encrypted passwords and
that do not have plain text password support enabled will be able to
connect only to a Samba server that has encypted password support
enabled and for which the user accounts have a valid encrypted pass-
word. Refer to the smbpasswd command man page for information
regarding the creation of encrypted passwords for user accounts.

The use of plain text passwords is NOT advised as support for this
feature is no longer maintained in Microsoft Windows products. If
you want to use plain text passwords you must set this parameter to
no.

In order for encrypted passwords to work correctly smbd(8) must
either have access to a local smbpasswd(5) file (see the smb-
passwd(8) program for information on how to set up and maintain this
file), or set the security = [server|domain|ads] parameter which
causes smbd to authenticate against another server.

Default: encrypt passwords = yes

[...]

security (G)
[...]
The default is security = user, as this is the most common setting
needed when talking to Windows 98 and Windows NT.

Thanks a lot for your replies. Continue on my initial thread, the configuration i did works well with XP, when trying to access the pc1, it authenticates me for username and password. By entering the username=user1 and password, i managed to access the samba server.
However the same configuration didnt work for win98...what happens is, when i try to access the samba server from win98, it prompts me with following:

Enter Network password

You must supply a password to make this connection:
Resource: \\pc1\IPC$ (This is not editable)
Password: (This is editable)

Ok
Cancel

Weird, no matter how i change the configuration, the Resource tag is always there and not editable, contrasting to Win xp, xp enquires username and password, i dont understnad why win98 keep prompting with the Resouce tag and password.
I have tried to simplify the smb.conf very simple....still not working...

thanks a lot for taking time helping,

Regards
Y

doc.nice

01-22-2007 06:24 AM

check this:
in smb.conf, you should set "Map to Guest = Bad User" in Global section

The default is "Never", but Win98 will try to connect to IPC$ (the share list etc.) with the currently logged on user. So you may have two ways to solve your problem:
1) Enable map to guest = bad user to allow your win98-client to get access to ipc$
2) create an linux+smb user with same username as your win 98 user

the first one seems to be the better choice, thats why I recommended it above...

if it doesn't help, could you please post your /var/log/log.smbd?

btw: normally, there is a sample smb.conf file in your doc folder or in /etc/samba, you should use this one and adapt it to your needs, that would give you reasonable defaults for such options like "Map to guest" etc.

HTH,
Flo

Niceman2005

01-22-2007 07:16 PM

Hi doc.nice!

Wow! thanks a lot, it works now hehe. After adding the line Map to Guest = Bad User.
Thanks a lot!

Do you have a user on linux with the same name as in windows or do you try the guest version I mentioned above?

you may try if it helps creating a linux user
(using adduser or useradd) and then enabling it for samba using smbpasswd and/or pdbedit...

if it does not work, posting a smbd.log file may help identifying the problem.

another problem could be that the files or directory are not accessible by the linux nobody user that is used for the samba guest access...
try setting o+rx for the directory /Samba/ (chmod o+rx /Samba/) and at least read access for the files (chmod o+r /Samba/*, see man chmod for more).

simke

08-24-2008 09:49 PM

Quote:

Originally Posted by doc.nice
(Post 3257897)

Do you have a user on linux with the same name as in windows or do you try the guest version I mentioned above?Simke: Yes, both.

you may try if it helps creating a linux user
(using adduser or useradd) and then enabling it for samba using smbpasswd and/or pdbedit...Simke: Yes, did that!

if it does not work, posting a smbd.log file may help identifying the problem.

another problem could be that the files or directory are not accessible by the linux nobody user that is used for the samba guest access...
try setting o+rx for the directory /Samba/ (chmod o+rx /Samba/) and at least read access for the files (chmod o+r /Samba/*, see man chmod for more).

Simke: Yes, did that too.

G'day Doc.Nice! Sorry for not explaining clearly earlier! Here is the actual situation:
From Win98 client, it prompts me with following:

Enter Network password

You must supply a password to make this connection:
Resource: \\suse\IPC$ (This is not editable)
Password: (This is editable)

Even though I logged in Win98 client with the same username & password I did on my Win XP client, it didn't work!

but I think this should not be relevant for you, as I use my samba server as primary domain controller...

so sorry to help you not any more, this is all my wisdom provides... ;)

simke

09-05-2008 12:47 AM

Thank you anyway for your help, Doc.Nice!
At least, now I managed to get the network printer to work with Win98 PCs.
Am still trying out ways to access those folders share on Samba!
Will post an update if there is any break through!

Regards,

doc.nice

09-05-2008 01:13 AM

I wuld be happy to read the final resolution here, thanks. Hope you will succeed...

tonyoh888

09-26-2008 01:36 AM

Quote:

Originally Posted by simke
(Post 3270199)

Thank you anyway for your help, Doc.Nice!
At least, now I managed to get the network printer to work with Win98 PCs.
Am still trying out ways to access those folders share on Samba!
Will post an update if there is any break through!

Regards,

you can try to set below at global settings
username map = /etc/samba/user.map