LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-06-2010, 05:42 AM   #1
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 610

Rep: Reputation: 31
samba problem


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

and windows machine 192.168.1.20

the workgroup name in windows is workgroup.

In Linux side I do the following configurations.
Code:
# vim /etc/samba/smb.conf
        [global]
	Workgroup=WORKGROUP
	Server string = samba server
        
        Host allow = 192.168.1. 192.168.2.127.

        wins support = yes

        [Shares]
         [temp]
		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.
garden

Last edited by gardenair; 04-06-2010 at 05:50 AM.
 
Old 04-06-2010, 05:55 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
I fail to see a setting for "security" in your smb.conf ...
 
Old 04-06-2010, 06:08 AM   #3
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 610

Original Poster
Rep: Reputation: 31
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 ....?
 
Old 04-06-2010, 06:12 AM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
That'll be global; have a look at
man smb.conf


Cheers,
Tink
 
Old 04-06-2010, 06:21 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,936

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
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 \ / : * ? " ; | )
 
Old 04-06-2010, 06:55 AM   #6
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 610

Original Poster
Rep: Reputation: 31
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 resources.contact 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.
 
Old 04-06-2010, 07:14 AM   #7
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Did you run smbpasswd?
 
Old 04-06-2010, 07:31 AM   #8
rehan21
Member
 
Registered: May 2009
Location: Karachi, Pakistan
Distribution: Centos 5.1/Fedora 10/ubuntu
Posts: 41

Rep: Reputation: 15
Hello,

Stop your firewall or add samba port in firewall rules.

Regards,
Rehan
 
Old 04-06-2010, 07:32 AM   #9
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 610

Original Poster
Rep: Reputation: 31
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.
 
Old 04-06-2010, 07:32 AM   #10
rehan21
Member
 
Registered: May 2009
Location: Karachi, Pakistan
Distribution: Centos 5.1/Fedora 10/ubuntu
Posts: 41

Rep: Reputation: 15
Stop the firewall of your samba server.
 
Old 04-06-2010, 07:35 AM   #11
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 610

Original Poster
Rep: Reputation: 31
Code:
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.
 
Old 04-06-2010, 07:37 AM   #12
rehan21
Member
 
Registered: May 2009
Location: Karachi, Pakistan
Distribution: Centos 5.1/Fedora 10/ubuntu
Posts: 41

Rep: Reputation: 15
Run the following command

/etc/init.d/iptables stop
 
Old 04-06-2010, 07:45 AM   #13
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 610

Original Poster
Rep: Reputation: 31
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"
 
Old 04-06-2010, 07:48 AM   #14
rehan21
Member
 
Registered: May 2009
Location: Karachi, Pakistan
Distribution: Centos 5.1/Fedora 10/ubuntu
Posts: 41

Rep: Reputation: 15
Please access your samba server from windows machine as follows

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

Regards,
Rehan
 
Old 04-06-2010, 07:50 AM   #15
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 610

Original Poster
Rep: Reputation: 31
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.

Last edited by gardenair; 04-06-2010 at 07:52 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba - Windows XP Problem (//Samba is not accessible) Covenent Linux - Networking 20 08-11-2011 05:07 PM
How to edit files with xemacs over Samba share? Samba problem? rylan76 Linux - Software 1 11-13-2008 02:00 AM
Samba sharing problem (user permission problem) beikokutn Linux - Software 4 03-11-2008 06:55 AM
samba 3 problem - samba PDC can not join to the domain ananthak Linux - Networking 1 05-21-2006 11:39 AM
when i restart SAMBA,it says:stop samba failed,start SAMBA OK! whepin Linux - Networking 3 12-26-2001 06:54 AM


All times are GMT -5. The time now is 11:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration