-   Linux - Newbie (
-   -   samba problem (

gardenair 04-06-2010 04:42 AM

samba problem
I am using my Red Hat Linux 9 box for samba server.I assigm my linux computer IP

and windows machine

the workgroup name in windows is workgroup.

In Linux side I do the following configurations.

# vim /etc/samba/smb.conf
        Server string = samba server
        Host allow = 192.168.1.

        wins support = yes

                comment=Temporary  file space
                path = /temp
                read only = no
                public = yes
these are the settings which I have done in smb.conf file.

[root@localhost samba]# service smb restart
[root@localhost samba]# chkconfig --level 35 smb on

Now on windows xp computer when I click on " view workgroup computers " I can see my windows xp and linux computer with name "samba server (localhost).

By double clicking on " samba server (localhost)" windows xp shows a message.

"\\localhost is not accessable.You might not have permission to use this network resource.Contact the sdministrator of this server to find out if you have access permission.
You were not connected because a dublicate name exits on the network.Go to system in control panel to change the computer name and try again"

well I have checked in windows .The computer name is winxp and workgroup is workgroup.

If i write Server string name .i.e samba server in windows explorer as following

\\samba server

it show a message "Windows cannot find '\\samba server'.Check the spell and try again.or try searching for the item by clicking the start button and then clicking search"

Please help me that why i can't even see the dialog box for user name and password. If windows is showing linux machine in workgroup then why it is not showing any diallog box ?

thanks for the help in advance.

Tinkster 04-06-2010 04:55 AM

I fail to see a setting for "security" in your smb.conf ...

gardenair 04-06-2010 05:08 AM

thanks for your reply. well i does't do any thing in security under smb.conf file. Kindly let me know or guide me where it is in global or in share ....?

Tinkster 04-06-2010 05:12 AM

That'll be global; have a look at
man smb.conf


michaelk 04-06-2010 05:21 AM

Just adding my 2 cents...
By default RH9 uses localhost as its hostname. localhost is also the virtual loopback adapter on every computer so you are trying to access shares on the client instead of the server. This is also the reason you are seeing the duplicate name error and you need to change the server's name not the client.

Add a line to the smb.conf global section
netbios name = server

(change server to whatever you desire. Must be less <= 15 characters and can not have a any spaces or special characters \ / : * ? " ; | )

gardenair 04-06-2010 05:55 AM

thanks "michaelk" for your prompt reply. Well after chanding name of my linux computer as " pc1 " and adding line in global sectionit works a bit fast but still i see a message from windows xp

"pc1 is not accessable.You might not have permission to use this network the administrator of this server to find out if you have access permission.
The network path was not found."

well i am using windows administrator account but still fail.

catkin 04-06-2010 06:14 AM

Did you run smbpasswd?

rehan21 04-06-2010 06:31 AM


Stop your firewall or add samba port in firewall rules.


gardenair 04-06-2010 06:32 AM

yes i have make a account and assign smbpasswd to that user but this is the second phase will start when in windows will provide diallog box to enter user name and password.
Windows does't show me that diallog box so i may enter user name and password.

rehan21 04-06-2010 06:32 AM

Stop the firewall of your samba server.

gardenair 04-06-2010 06:35 AM


Stop the firewall of your samba server.
well thanks for the point.I does't know from where I may stot the firewall in samba server.I shall be greatefull if u kindly help me in it.

rehan21 04-06-2010 06:37 AM

Run the following command

/etc/init.d/iptables stop

gardenair 04-06-2010 06:45 AM

thanks for the prompt reply. well i apply the command but this time windows does't give any error message.It open the explorer and say "page can not be displayed"

rehan21 04-06-2010 06:48 AM

Please access your samba server from windows machine as follows

Run > cmd > \\ip of your samba server.


gardenair 04-06-2010 06:50 AM

i can ping my linux machine from windows xp ......( [root@pc1 root] pc1 my Linux host name) but when i try to ping with the name of my pc which is pc1 it say "pind could not find host.please check name and try again

this means that it is not resolving the name? does samba need DNS in workgroup enviroment ? IAM SURE NO.

All times are GMT -5. The time now is 01:15 AM.