LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 02-01-2012, 11:52 AM   #1
neoserdes
Member
 
Registered: Feb 2012
Posts: 35

Rep: Reputation: Disabled
Question To access SMB on linux, I always need to start linux first, then XP, why?


I came up with a problem with accessing the SMB drive on my rhel 5.6 from my XP machine.

If I boot the XP first, then XP will complain that I have no access right.

If I boot the linux first, or reboot XP after linux is up, there is no such problem.

How can I remove this boot sequence dependency?
 
Old 02-01-2012, 12:24 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 9,920

Rep: Reputation: 338Reputation: 338Reputation: 338Reputation: 338
Welcome to LinuxQuestions.
Would you post the exact error as well as the /etc/samba/smb.conf file.

This is how network browsing works for a workgroup.
http://www.samba.org/samba/docs/man/...html#id2581357
 
Old 02-01-2012, 11:53 PM   #3
neoserdes
Member
 
Registered: Feb 2012
Posts: 35

Original Poster
Rep: Reputation: Disabled
The message from XP:

\\LOCALHOST\XP is not accessible. You might not have permission to use this network resource.

Contact the administrator of this server to find out if you have access permissions.

The network path was not found.
Attached Files
File Type: txt smb.conf.txt (9.5 KB, 2 views)

Last edited by neoserdes; 02-02-2012 at 12:28 AM. Reason: add attachment
 
Old 02-02-2012, 08:41 AM   #4
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,041
Blog Entries: 4

Rep: Reputation: 191Reputation: 191
Quote:
Originally Posted by neoserdes View Post
The message from XP:

\\LOCALHOST\XP is not accessible. You might not have permission to use this network resource.

Contact the administrator of this server to find out if you have access permissions.

The network path was not found.
I am not sure if I get you completely

check whether you smb service is running after restart

Code:
#service smb status  <--after you reboot the linux machine
if the service is stopped then use this

Code:
#chkconfig --level 345 smb on
this will make sure that smb is up and running properly next time you boot

and restart your smb services
Code:
#service smb restart
check the firewall of your linux box if it is blocking samba

and next time be specific with results like whether smb was running when you restarted your windows machine or when you restarted linux box
 
1 members found this post helpful.
Old 02-02-2012, 09:41 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 9,920

Rep: Reputation: 338Reputation: 338Reputation: 338Reputation: 338
\\localhost\xp in this context is the XP not the Redhat computer. If you do not have a share on the XP computer named XP then this is expected.

What is the hostname of your Redhat computer?

Are you using network neighborhood?
 
Old 02-02-2012, 12:01 PM   #6
neoserdes
Member
 
Registered: Feb 2012
Posts: 35

Original Poster
Rep: Reputation: Disabled
The redhat hostname is localhost. I have not changed its name from default.

I'm using network neighborhood. Any thing wrong with that?
 
Old 02-02-2012, 12:34 PM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 9,920

Rep: Reputation: 338Reputation: 338Reputation: 338Reputation: 338
Yes, due to the fact that XP is trying to connect to itself and not the Redhat computer. I would also expect this problem to occur not matter what order the computers were booted.

By default samba uses the hostname as the netbios name. The easiest fix is to enable netbios name in the smb.conf file. Uncommnent it by deleting the ; and change the name from myserver as desired but the character limit is 15. Be sure to restart samba for the changes to take effect.

Last edited by michaelk; 02-02-2012 at 12:36 PM.
 
1 members found this post helpful.
Old 02-02-2012, 12:55 PM   #8
neoserdes
Member
 
Registered: Feb 2012
Posts: 35

Original Poster
Rep: Reputation: Disabled
I see and will give it a try. Thank you.

Do you think that if I change the linux hostname to be some other name can solve the problem?

Regards,
Neo

Quote:
Originally Posted by michaelk View Post
Yes, due to the fact that XP is trying to connect to itself and not the Redhat computer. I would also expect this problem to occur not matter what order the computers were booted.

By default samba uses the hostname as the netbios name. The easiest fix is to enable netbios name in the smb.conf file. Uncommnent it by deleting the ; and change the name from myserver as desired but the character limit is 15. Be sure to restart samba for the changes to take effect.
 
Old 02-02-2012, 01:01 PM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 9,920

Rep: Reputation: 338Reputation: 338Reputation: 338Reputation: 338
Yes that would fix things too.
 
1 members found this post helpful.
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
stuck on not able to access simple smb share I created from linux to windows umcpgrad Linux - Newbie 6 02-08-2012 08:29 PM
[SOLVED] [SAMBA] How to track windows user access , create files /modify files on linux SMB efciem Linux - Server 2 05-16-2010 08:45 AM
access anonymous smb share from Linux bobnw Linux - Newbie 1 06-06-2009 05:19 AM
when i try to start samba pdc's smb service nmbd failed to start . sandeepchau123 Linux - Newbie 2 10-20-2007 01:59 PM
access Samba server: control violation /etc/rc.d/init.d/smb start failed Paul.Hermans Mandriva 1 07-25-2005 04:46 PM


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

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration