LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Samba With Windows shares (https://www.linuxquestions.org/questions/linux-newbie-8/samba-with-windows-shares-4175495963/)

Snowman001 02-23-2014 02:15 PM

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

allend 02-23-2014 07:24 PM

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.

michaelk 02-23-2014 09:46 PM

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)

Snowman001 02-24-2014 01:16 PM

Quote:

Originally Posted by michaelk (Post 5123509)
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?

michaelk 02-24-2014 03:46 PM

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


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