LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 12-30-2006, 04:56 AM   #1
Steve50
Member
 
Registered: Nov 2004
Location: Coventry, UK
Distribution: Debian Lenny, Ubuntu Feisty
Posts: 121

Rep: Reputation: 15
Can't see windows shares in Nautilus


Up until now I've sucessfully used NFS for filesharing on my Linux PCs, but my son's a gamer and he insists on using windows. So I decided to install samba on my PC and set up up file sharing on his windows box. The problem is the shares on the windows box aren't visible from the network icon in nautilus (computer). I can see my computer in the workgroup from the windows box, but the only way I can access the windows box from Linux is by typing smb://<windowsboxIPaddress> Substituting the windows computer name instead of the IP address doesn't work. Any advice appreciated, as I have no experience of using samba.
 
Old 12-30-2006, 06:22 AM   #2
Steve50
Member
 
Registered: Nov 2004
Location: Coventry, UK
Distribution: Debian Lenny, Ubuntu Feisty
Posts: 121

Original Poster
Rep: Reputation: 15
OK, making progress. I needed to allow the windows box access through my firewall. I changed the settings and initially I could actually see the windows shares. However, I then came across another problem. I opened swat to make to check the settings, which semed fine, but when I came to restart the services smbd and nmbd refused to start, only winbindd is running. Manually starting and stopping samba doesn't seem to make a difference. This is the output I get when attempting to restart:

debian:/home/steve# /etc/init.d/samba restart
Stopping Samba daemons: nmbd smbdstart-stop-daemon: warning: failed to kill 4665: No such process
.
Starting Samba daemons: nmbd smbd.


Despite the fact it says the daemons are running swat says they're stopped

Last edited by Steve50; 12-30-2006 at 06:36 AM.
 
Old 12-30-2006, 09:13 AM   #3
Steve50
Member
 
Registered: Nov 2004
Location: Coventry, UK
Distribution: Debian Lenny, Ubuntu Feisty
Posts: 121

Original Poster
Rep: Reputation: 15
Well uninstalling and reinstalling samba solved the last problem. This time I just made some minor changes to the default smb.conf file rather than creating a new file with swat. The outcome: sometimes the workgroup shows up in the nautilus window when I click on the network icon, but most of the time it doesn't. I'm guessing that because I connect to the network through a router (Belkin) I'm having problems with netbios names - because I can connect to the windows shares if I use the IP address rather than the computer name.

Until I solve this one I've created a link on my desktop to the windows share using its IP address, but if anyone knows a way round the netbios issue any advice would be appreciated.
 
Old 12-30-2006, 11:19 AM   #4
titetanium
Member
 
Registered: Mar 2004
Distribution: debian testing/unstable, devuan, raspberrypi OS
Posts: 68

Rep: Reputation: 16
Try editing /etc/hosts and match the computer name with the ip address. You should be able to ping by name once this is done. However, I see you have winbind running which is supposed to solve that problem, but I'm not familiar enough with that tool to give advice on that.

As for the samba daemon getting stuck when trying to restart, it's obvious. One of the smbd daemons is stuck and didn't shutdown properly which gives the error you get. Simple fix: open a terminal window as root and type:
Code:
ps ax | grep smbd
kill -9 `pidof smbd`
/etc/init.d/samba restart
That should solve the stuck samba process and restart it normally without having to reinstall it.

Last edited by titetanium; 12-30-2006 at 11:20 AM.
 
Old 12-30-2006, 11:41 AM   #5
Steve50
Member
 
Registered: Nov 2004
Location: Coventry, UK
Distribution: Debian Lenny, Ubuntu Feisty
Posts: 121

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by titetanium
Try editing /etc/hosts and match the computer name with the ip address. You should be able to ping by name once this is done. However, I see you have winbind running which is supposed to solve that problem, but I'm not familiar enough with that tool to give advice on that.

As for the samba daemon getting stuck when trying to restart, it's obvious. One of the smbd daemons is stuck and didn't shutdown properly which gives the error you get. Simple fix: open a terminal window as root and type:
Code:
ps ax | grep smbd
kill -9 `pidof smbd`
/etc/init.d/samba restart
That should solve the stuck samba process and restart it normally without having to reinstall it.
Thanks for the advice. I added an entry to the /etc/hosts file and initially this seemed to solve the problem. However, it still only works intermittently - sometimes I can see the workgroup, and sometimes not. That said, I can always connect if I use the IP address so I suppose it's not a huge problem. Stops me getting me bored anyway, and gives me something else to learn about
 
  


Reply



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
FC6 x86_64 cannot browse XP shares via Nautilus n411303 Fedora - Installation 0 12-10-2006 03:46 PM
smb4k opening shares in nautilus jai_joy Linux - Newbie 1 12-07-2004 08:57 PM
nautilus 2.6.0 and accessing smb shares brandor Linux - Software 0 04-19-2004 10:13 AM
Linux can mount samba shares but not windows shares bindsocket Linux - Software 1 12-01-2003 05:28 PM
Browsing Windows Shares from Nautilus harperonline Linux - Networking 3 08-28-2003 11:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 01:28 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
Open Source Consulting | Domain Registration