Samba: Cannot access share files from win98 but winxp ok
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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...
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.
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).
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!
Here, I attached my smbd.log:
[2008/08/23 10:42:39, 0] printing/print_cups.c:cups_connect(68)
Unable to connect to CUPS server localhost:631 - Address family not supported by protocol
[2008/08/23 10:42:39, 0] printing/print_cups.c:cups_connect(68)
Unable to connect to CUPS server localhost:631 - Address family not supported by protocol
[2008/08/23 16:03:07, 1] smbd/service.c:make_connection_snum(1188)
bis-7 (192.168.0.204) connect to service laserjet1000 initially as user simke (uid=1000, gid=100) (pid 3993)
[2008/08/23 16:04:10, 1] smbd/service.c:close_cnum(1399)
bis-7 (192.168.0.204) closed connection to service laserjet1000
[2008/08/23 16:08:21, 1] smbd/service.c:make_connection_snum(1188)
bis-7 (192.168.0.204) connect to service laserjet1000 initially as user simke (uid=1000, gid=100) (pid 9638)
[2008/08/23 16:09:45, 1] smbd/service.c:close_cnum(1399)
bis-7 (192.168.0.204) closed connection to service laserjet1000
[2008/08/23 16:11:44, 1] smbd/service.c:make_connection_snum(1188)
bis-7 (192.168.0.204) connect to service laserjet1000 initially as user simke (uid=1000, gid=100) (pid 9718)
[2008/08/23 16:12:47, 1] smbd/service.c:close_cnum(1399)
bis-7 (192.168.0.204) closed connection to service laserjet1000
[2008/08/25 08:41:19, 0] smbd/server.c:main(1208)
smbd version 3.2.0rc1-22.1-1795-SUSE-SL11.0 started.
Copyright Andrew Tridgell and the Samba Team 1992-2008
Note that on 23rd-Aug successful log-in was from Win XP client. Win98's failed attempts were not recorded at all including today 25th-Aug's attempts!
Thanks.
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!
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
this is contents of user.map
aaa bbb
aaa = user in linux
bbb = user in windows 98
this is to map the windows 98 user name with linux user name
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.