Samba Config for DHCP Client Laptop

Howdy Fellas,

I’ll try not to be too wordy…

Want to get my openSUSE 11.2 (fresh install) laptop to see my network shares …not to be a server or share any files. I’ve looked at 50 websites and everything seems to be “server” and “share” oriented. Maybe I (newb) am confused by the terminology…

I have a router that provides DHCP. My LAN PC’s consist of a Vista laptop, an XP DAW, and a Kubuntu file server. Somehow I got Kubuntu configured properly, all of the Windows machines can access it and vice-versa. The Kubuntu smb.conf does not work on this laptop, and it seems overkill -no shares needed here. And yes, I get DHCP and interweb on the laptop -posted this with it.

All I want is access to my (other) network drives from this (openSUSE 11.2) laptop. Not a server, not to share. This is easy… right? It’s driving me nuts!

Is there a Samba configuration that will let me jump onto networks and surf Windows/Samba shares like any old Windoze box browsing Network Neighborhood? Do I have to be a Samba guru?

Please post an example smb.conf

Thank you in advance, I know someone will cause me to face-palm. I also know you guys are awesome! :]

All depends a little on your setup. Is your Kubuntu server setup as a domain controller? In that case you can use Yast to let your laptop become a “domain member”.

Anyway, for starters you should make sure the “workgroup=NAMEOFYOURWORKGROUP” is the same on both the Kubuntu machine and the OpenSuSE laptop.

Try to mount a share like this
sudo mount //yourkubuntuserver/share /mnt -o user=yourusername

Or browse your network using either nautilus (in Gnome) or dolphin (in KDE).

Wow, that was fast. Thanks joostvanrooij…

I’ve already set my workgroup in Yast and in smb.conf:

[global]
workgroup = ISO
netbios name = di1200x
security = share

[data]
comment = god dammit
path = /tmp
read only = Yes
guest only = Yes
server string = di1200x
name resolve order = hosts lmhosts

Share disabled by YaST

… don’t laugh! :smiley: Kubuntu is not setup as a domain controller, as far as I can tell. Kubuntu smb.conf:

[global]
workgroup = ISO
netbios name = iSO-PIV1700
socket options = TCP=NODELAY SO_RCVBUF=8192 SO_SNDBL
log file = /var/log/samba/smbd.log

[public]
path = /media/WD80GB/mount/
available = yes
public = yes
read only = no
browsable = yes
writeable = yes

…that’s it on the Kubuntu machine. The Windows boxes access it without issue, and vice-versa.

The command you gave caused this laptop to hang, waited 3 minutes on it and nothing. Kubuntu does not require any user/pass authentication from Windows. Dolphin gives the “Unable to find any workgroups…may be caused by a firewall” error. The firewall port is open via Yast, I even tried shutting it off entirely to no avail.

:\

Your Kubuntu server does not seem to be set up as a domain controller.

Try:
sudo mount //yourkubuntuserver/share /mnt

…same Dolphin error as above. Here’s what I tried:

di1200x:~ # sudo mount //iSO-PIV1700/share /mnt
Password:
^C
di1200x:~ # sudo mount //iSO-PIV1700/public /mnt
Password:
^C
di1200x:~ # sudo mount //iSO-PIV-1700/media/WD80GB/mount/ /mnt
Password:
^C
di1200x:~ #

…nothing. Thank you so much for the help, surely this is all my ignorant error. It’s almost 4AM here and I have to log out. Perhaps tomorrow will bring some clarity, I’m cached for now. Cheers, thank you… and goodnight! :]

Try to connect using the Ubuntu’s server IP instead, there could be an issue with name resolution, for example try:

sudo mount //192.168.1.1/public /mnt

The password to supply is your root password of your openSuSE box.

Have you used smbpasswd on your Kubuntu box to specify samba users? I cannot really make out if your share is fully public. It is possible the Windows clients provide credentials without user interference. Do you have to supply a password on those boxes when logging in?

di1200x:~ # sudo mount //192.168.0.12/public /mnt
Password:
di1200x:~ #

… then I go to Dolphin/Network/Samba Shares, nothing. “Unable to find any workgroups in your local network. This might be caused by an enabled firewall”. Verified the firewall port is open via Yast/Samba.

As far as the smbpasswd on Kubuntu, I never set anything. Windows machines are not asked for a password by Kubuntu.

I do have shares on the Windows machines too, no passwords needed there. So even if Kubuntu is FUBAR, I should be able to get at Windows, right?

It’s strange to me that I can’t even join the workgroup, yet I pull DHCP, and can ping every device on the LAN. I can log in to my router and AP from here via Firefox, internet is fine too. Aarg! Being new sucks.

I just copied the smb.conf from Kubuntu and tried it here on openSUSE again, all I changed was the netbios name and the [public]/path. I used ‘rcsmb restart’ after the changes. Nothing again, same Dolphin error. I’m logged in as root during all of this.

My current smb.conf:

[global]
workgroup = ISO
netbios name = di1200x
socket options = TCP=NODELAY SO_RCVBUF=8192 SO_SNDBL
log file = /var/log/samba/smbd.log
ldap suffix =
passdb backend = smbpasswd
wins server =
wins support = No

[public]
path = /home/di1200/Public
available = yes
public = yes
read only = no
browsable = yes
writeable = yes

…thanks again for the help.

On Mon January 11 2010 02:56 pm, BrettInMontana wrote:

>
> joostvanrooij;2102226 Wrote:
>> Try to connect using the Ubuntu’s server IP instead, there could be an
>> issue with name resolution, for example try:
>>
>> sudo mount //192.168.1.1/public /mnt
>>
>> The password to supply is your root password of your openSuSE box.
>>
>> Have you used smbpasswd on your Kubuntu box to specify samba users? I
>> cannot really make out if your share is fully public. It is possible the
>> Windows clients provide credentials without user interference. Do you
>> have to supply a password on those boxes when logging in?
> di1200x:~ # sudo mount //192.168.0.12/public /mnt
> Password:
> di1200x:~ #
>
> … then I go to Dolphin/Network/Samba Shares, nothing. “Unable to
> find any workgroups in your local network. This might be caused by an
> enabled firewall”. Verified the firewall port is open via Yast/Samba.
>
> As far as the smbpasswd on Kubuntu, I never set anything. Windows
> machines are not asked for a password by Kubuntu.
>
> I do have shares on the Windows machines too, no passwords needed
> there. So even if Kubuntu is FUBAR, I should be able to get at Windows,
> right?
>
> It’s strange to me that I can’t even join the workgroup, yet I pull
> DHCP, and can ping every device on the LAN. I can log in to my router
> and AP from here via Firefox, internet is fine too. Aarg! Being new
> sucks.
>
> I just copied the smb.conf from Kubuntu and tried it here on openSUSE
> again, all I changed was the netbios name and the [public]/path. I used
> ‘rcsmb restart’ after the changes. Nothing again, same Dolphin error.
> I’m logged in as root during all of this.
>
> My current smb.conf:
>
> [global]
> workgroup = ISO
> netbios name = di1200x
> socket options = TCP=NODELAY SO_RCVBUF=8192 SO_SNDBL
> log file = /var/log/samba/smbd.log
> ldap suffix =
> passdb backend = smbpasswd
> wins server =
> wins support = No
>
> [public]
> path = /home/di1200/Public
> available = yes
> public = yes
> read only = no
> browsable = yes
> writeable = yes
>
> …thanks again for the help.
>
BrettInMontana;

This HowTo should help you get going.

http://opensuse.swerdna.org/suselanprimer.html

  1. DO NOT LOG IN AS ROOT! Use kdesu or gnomesu or just sudo for root privilege
    when such is needed.

Here are some things to check

  1. Make sure the firewall is allowing the Samba ports. (See above HowTo). For
    testing only, you might want to disable the Firewall. Once you know Samba is
    working you can enable it and do any necessary tuning.

  2. Make sure both smbd and nmbd are running. nmbd is needed for name
    resolution to work properly.

    P. V.
    “We’re all in this together, I’m pulling for you.” Red Green