Discussion Locked

Can't Access Samba from Windows

0 helpful
10 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

OK after many hours of trying many things I still can not access my Samba server from any Windows machine. I'm sure I have missed some simple configuration.

Server is running Red Hat 7.2
Samba version 2.2.1a
SMBD and NMBD are running as daemons

I can ping the server from a Windows machine using both the name and IP address.

I am using encrypted passwords

I have tried both user and domain security

All tests in the diagnosis.txt file run EXCEPT when I try to access the server from Windows. From a command prompt I get System Error 53
The network path was not found. Using Network Nieghborhood I get the same error, network path not found.

I can see the server and the comment in both network neighborhood and Server manager. I have added the server to the domain and joined the domain from the server.

What am I missing

10 replies

by ivin

Hi,

This is my working samba :
[global]
printing = lprng
dns proxy = no
security = user
null passwords = yes
encrypt passwords = yes
workgroup = LCS
server string = LINUX FILE SERVER
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
netbios name = Linux
log file = /var/log/samba/%m.log
load printers = yes
printcap name = /etc/printcap
wins support = true
maxlog size = 1
preferred master = no
invalid users = root,bin,daemon,adm,sync, shutdown \
halt,mail,news,uucp,operator,gopher
unix password sync = yes
smb passwd file = /etc/samba/smbpasswd
[DATASTORE]
path = /datastore
writable = yes
public = no
comment = Drivers
admin users = ivor
revalidate = yes
valid users = ivor,annie,lj,emmie

Make sure that you set the samba password for the user(s) that want to access the samba share(s)

you can do this when logged in with root and typing smbpasswd "username" (no " ")

when you login with your windows machine make sure you type that username and password and make sure your windows is not set to windows logon but rather file and print sharing for ms networks.

That should do it :)

The clients im using is windows 98 that do the password decryption. Older versions of window 95 didnt do the decryption.

by briantruitt

Double check to make sure you have NetBEUI or NetBIOS over TCP/IP running. Also make sure that the clients you want to access the SAMBA server have been added as users on the Linux machine. It'll be easier that way.

by jehu

I know this may sound too simple,but I did this twice when I installed redhat7.2. Remember that 7.2 comes with a built in firewall. If this was enabled it will not allow windows to connect. You will need to reconfigure it. Just a thought it happened to me.

by mcarrara

I had never thoought about that. So I checked it and the settings are correct to let someone in, I think. If nothing else works I will revisit this issue.

by alece

The most likely vcause of this error is that you are using Winmdows 9x and you are not logged in as a user that has the same name and password as the user on the Linux based system. If you are using Windows 2000 or NT, you can do a "connect as" and then supply the name and password of the user in the Linux system. Use the SMBCLIENT -L - U "user nane" at the # prompt on the Linux system to test the username and password. If that command is successful and you see the list of shares that you defined in SMB.CONF, then you should be all set to try it from the other Windows clients. To administer Samba the easiest way is to use the Webmin module. Download Webmin from www.webmin.com.

by mcarrara

The SMBCLIENT -L -U username command works from Linux. I am logged in to my Win 2k box as the same user. I have also tried using connect as and still no luck

by mcarrara

After more trial and error I got it to work. It seems that default smb.conf file did not specify a guest user (it was commented out) I uncommented the line and was able to connect. Thanks to everyone for the answers.

This discussion is closed to new replies.