Problems with Samba
Hi to all,
I'm having this problem with Samba. I can see in Linux: Windows' and Linux RED HAT 7.3's shared files, typing smb://linuxcomputer/ and smb://windowscomputer/ Going on Win98 machine I can find "linuxcomputer" near the other Network Resources, but if I double-click on its icon it says something like this: "It's impossible to access to \\linuxcomputer It's impossible to find the computer or the shared files. Verify to have correctly typed the name, then retry." Going on Windows XP, instead, it says that it hasn't the authorizations to enter Linux Computer, but in smb.conf I typed: security = share an I shared the folder /tmp in this way: [tmp] comment = Temporary file space browseable = yes path = /tmp read only = no public = yes The Network where I put Linux is made of a lot of Windows machines (except my Linux one) and in all them there are two DNS addresses; the gateway is a router. I've tried to make Linux a WINS server but it doesn't work. It seem that for all the tutorials on Internet the connection is simple, but not for me. Does anybody know how to help me? (I'm sorry if something is not clear, I'm not english.) Bye to all!!! I'm a :newbie: |
Try adding
guest ok = Yes to the share section [tmp] (and of course restart) Regards, Peter |
Hi Peter,
I've tried it too, but it doesn't work the same. I've configured two accounts in Linux: 'root', obviously, and 'user'. Does the guest user need an own user account? |
In the smb.conf file, do you have "netbios name = " set to anything?
The users are set by the "guest ok = " directive. There is a default guest user that smb uses to Linux. "Security = share" allows non-linux users to access. Regards, Peter |
Yes. This is my smb.conf:
workgroup = mygroup netbios name = netname server string = Samba hosts allow = 192.168.1 127. guest account = nobody guest ok = yes log file = /var/log/samba/%m.log max log size = 0 security = share encrypt passwords = yes smb passwd file = /etc/samba/smbpasswd unix password sync = yes [homes] comment = Home Directories browseable = no writable = yes valid users = %S directory mode = 0775 [tmp] comment = Temporary file space path = /tmp read only = no public = yes [public] comment = public files path = /home/share browsable = yes public = yes only guest = yes writable = yes printable = no Do you find any mistakes? |
I'm just a newbie, but aren't you supposed to have a . (period) after the 192.168.1 in the Hosts allow field? Probably nothing, but ...
|
:) A good suggestion, but I'm afraid it's a typing mistake in this forum :)
Do you think my problem may be the firewall settings? You have had this kind of problem with your network, thordog, haven't u? If yes, how did you solve it? I've reduced my network to 2 computers, but the problem is still alive. :confused: |
You probably can't access the homes share because the browseable directive is set to 'no'. Do you have a user on your windows machine that corresponds to the linux guest user name? I have found that sometimes it won't connect unless you do.
Also, under your public share, you may want to change the 'only guest' to 'guest ok'. |
It turned out that I had 3 IP addresses bound to my NIC card because I was running some virtual OSes. I doubt you have a similar situation.
I also went to User vs share security, but I don't know if that really made a difference. Good luck. |
i have a question. my win2k box sees my linux box as localhost but as a samba server. is all i need to do change the name of my linux box? and if so, how? i'm running redhat 7.3. both boxes ping sucessfully. thanks in advance.
|
Try typing:
netbios name = choose a name Your Linux machine will be seen in Windows with the name you'll choose. In the meanwhile my WinXP machine continues to say that it hasn't the permission to access to Linux Machine. I'm going mad!!! |
i would love that but, i tells me that it doesn't recognize the command "netbios"... i'm ready for the next suggestion if any. i wish i could remember what i did the first time, cause it sure worked... but i do thank you for for the reply. if i can get mine running again, maybe i can help with yours...
|
maxdraw,
I have had the same situation. I am running windows 98 and windows 2000. If I am not mistaken XP is similar to 2000 in that it wants a password to access your linux box. First off, I will check back on my forum questions and see if I can locate how I fixed it. In the meantime, did you give your user "user" a password? Did you then give "user" same password for samba? I know you have security = share but try it anyway. Do you log into your xp box with a user and password? |
maxdraw,
the only real difference that i can see with what you have and my smb.conf file is that mine has: guest account = actualaccountname1 guest account = actualaccountname2 but i think it can be written as: guest account = name1 name2 i have both of my users specified and can log in with both. other than that, my hosts allow = 192.168.1. (and no, that is not a typo, i want any computer on my network with part of that address to be able to log in. do let me know if that works. |
I too have a problem browsing samba.
From win95/98 machines, no problem. From win2k/winXP machines I can browse to the server and connect share from the command line/map... dialog but can't browse shares. It's something to do with the way the NT networking handles passwords for RPC and therefore access to the samba $IPC share. Any pointers would be great Ta! |
All times are GMT -5. The time now is 06:20 AM. |