LinuxQuestions.org
Register a domain and help support LQ
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 02-23-2014, 03:15 PM   #1
Snowman001
LQ Newbie
 
Registered: Feb 2014
Posts: 2

Rep: Reputation: Disabled
Samba With Windows shares


Hi all,

I had Samba seeing all my windows shares in Dolphin but now they have all disappeared. I had my Windows machines disconnected from the router but all settings are still the same. My Windows partition which i donít use shows the shares under network right away so i know the setup there is fine.

Here is my Samba config file;

linux-4vl5:~ # cat /etc/samba/smb.conf
[global]
add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
domain logons = No
domain master = No
security = domain
workgroup = Workgroup
usershare allow guests = No

## Share disabled by YaST
# [netlogon]
linux-4vl5:~ #

I have put some screen shots below, i dont know what else to post as i am am barely a beginner.

http://i769.photobucket.com/albums/x...ps6e0c6ed0.png

http://i769.photobucket.com/albums/x...psda5f011f.png
 
Old 02-23-2014, 08:24 PM   #2
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 4,462

Rep: Reputation: 1369Reputation: 1369Reputation: 1369Reputation: 1369Reputation: 1369Reputation: 1369Reputation: 1369Reputation: 1369Reputation: 1369Reputation: 1369
Are you mounting the Windows shares on the Samba server? If they were disconnected they may need to be remounted. Try, as root, running 'mount -a' and restarting Samba.
 
Old 02-23-2014, 10:46 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,254

Rep: Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624
The smb.conf file is used to configure the server i.e. when windows connects to a linux share. Dolphin has a built in samba client so you do not need to mount shares via fstab.

So what is displayed when you type in the following in dolphins location bar:
remote:/

What Happens when you click on samba shares?

You can also view windows shares from the command line:
smbclient -L windows_IP_address (just press enter when prompted for a password)
 
Old 02-24-2014, 02:16 PM   #4
Snowman001
LQ Newbie
 
Registered: Feb 2014
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
The smb.conf file is used to configure the server i.e. when windows connects to a linux share. Dolphin has a built in samba client so you do not need to mount shares via fstab.

So what is displayed when you type in the following in dolphins location bar:
remote:/

What Happens when you click on samba shares?

You can also view windows shares from the command line:
smbclient -L windows_IP_address (just press enter when prompted for a password)

Hi guys i seem to have it working partially. I can see my test share -

inux-4vl5:~ # smbtree
Enter root's password:
WORKGROUP
\\SERVER-1
\\SERVER-1\Users
\\SERVER-1\K$ Default share
\\SERVER-1\J$ Default share
\\SERVER-1\IPC$ Remote IPC
\\SERVER-1\I$ Default share
\\SERVER-1\H$ Default share
\\SERVER-1\G$ Default share
\\SERVER-1\Films Music
\\SERVER-1\E$ Default share
\\SERVER-1\D$ Default share
\\SERVER-1\C$ Default share
\\SERVER-1\ADMIN$ Remote Admin
\\LINUX-4VL5 Samba 4.1.ypo

I can get to the share (films music)by typing it in Dolphin and can also add it to places so i am all good. However the Network or samba shares links in dolphin donít work though it seems i can bypass them. How can i see the config behind those folders so i could fix them?
 
Old 02-24-2014, 04:46 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,254

Rep: Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624
Try adding this line to your smb.conf and reboot your computer.
name resolve order = lmhosts wins bcast host
 
  


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 not seeing Windows 7 shares ravensorrow Linux - Server 7 06-29-2010 04:37 PM
samba shares and windows xp highfructose Linux - Software 1 05-08-2005 03:22 AM
samba shares and windows xp highfructose Linux - Software 0 05-07-2005 06:50 PM
Samba 3.0.6 - How to mount Samba Shares from Windows 2003? kp1 Linux - Software 2 09-10-2004 07:03 PM
Linux can mount samba shares but not windows shares bindsocket Linux - Software 1 12-01-2003 06:28 PM


All times are GMT -5. The time now is 02:27 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