In openSUSE 11.1/KDE4. When I go to Dolphin>Network>Samba Shares>‘Windows WORKGROUP’>Windows Server it asks me for user name and password. It apparently does not accept the user name and password I created by:
smbpasswd -a 'sameuname as openSUSE login'
and I set it to same password as login just to keep things simple. It won’t accept my user name or password at all it just keeps asking for it repeatedly. I have been using this tutorial:
Here’s contents of my current ‘/etc/samba/smb.conf’:
# smb.conf is the main Samba configuration file. You find a full commented
# version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the
# samba-doc package is installed.
# Date: 2009-01-08
[global]
workgroup = WORKGROUP
netbios name = localhost
name resolve order = bcast host lmhosts wins
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
map to guest = Bad User
include = /etc/samba/dhcp.conf
#logon path = \\%L\profiles\.msprofile
#logon home = \\%L\%U\.9xprofile
#logon drive = P:
usershare allow guests = Yes
local master = yes
preferred master = yes
os level = 33
[homes]
comment = Home Directories
valid users = %S, %D%w%S
browseable = No
read only = No
inherit acls = Yes
[profiles]
comment = Network Profiles Service
path = %H
read only = No
store dos attributes = Yes
create mask = 0600
directory mask = 0700
[users]
comment = All users
path = /home
read only = No
inherit acls = Yes
veto files = /aquota.user/groups/shares/
[groups]
comment = All groups
path = /home/groups
read only = No
inherit acls = Yes
[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0600
browseable = Yes
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin root
force group = ntadmin
create mask = 0664
directory mask = 0775
[ashare]
path = /home/ben/ashare/
guest ok = yes
read only = no
Where ‘WORKGROUP’ is name of actual Windows workgroup and ‘localhost’ is actual hostname of openSUSE computer [also tried ‘localhost’ as netBIOS name [same as hostname?] of Windows computer.
Try changing the netbios name from localhost. I just now tried out “localhost” as a netbios name (because it is usually used in a different context). I got an error from a windows machine while trying to connect to the Suse machine where I had made the netbios name “localhost”. When I change it back to something more normal, error goes away.
actually contain the actual workgroup and netbios name of my brother’s Win XP box to which I’m trying to connect through a router. I just put it the way I did so as not to put my brother’s details out over the 'net. Don’t know if I made that clear.
Also worth noting my openSUSE is x86_64 with KDE 4.1.3 and his Win XP is 32 bit. Also, to my knowledge, I have all samba packages including 32 bit installed.
But he doesn’t have internet access after rebooting his box so I can’t do much with Samba till that gets fixed. We are connected through a router and my openSUSE box DOES have ‘net access but his Windows XP box doesn’t. So for now my attempt is borked unless I can connect to his printer via LPD. :’(
Now my brother has internet back up and has rebooted his Win XP box. Also I can ping his computer. My current ‘/etc/samba/smb.conf’;
# smb.conf is the main Samba configuration file. You find a full commented
# version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the
# samba-doc package is installed.
# Date: 2009-01-08
[global]
workgroup = MYBROSWORKGROUP
netbios name = mybrosnetbios
name resolve order = bcast host lmhosts wins
server string = ""
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
use client driver = yes
map to guest = Bad User
local master = yes
preferred master = yes
os level = 65
usershare allow guests = Yes
usershare max shares = 100
usershare owner only = False
[homes]
comment = Home Directories
valid users = %S, %D%w%S
browseable = No
read only = No
inherit acls = Yes
[profiles]
comment = Network Profiles Service
path = %H
read only = No
store dos attributes = Yes
create mask = 0600
directory mask = 0700
[users]
comment = All users
path = /home
read only = No
inherit acls = Yes
veto files = /aquota.user/groups/shares/
[groups]
comment = All groups
path = /home/groups
read only = No
inherit acls = Yes
[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0600
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin root
force group = ntadmin
create mask = 0664
directory mask = 0775
Also I have:
# /sbin/rcSuSEfirewall2 stop
Shutting down the Firewall done
# rcnmb restart
Shutting down Samba NMB daemon done
Starting Samba NMB daemon done
# rcsmb restart
Shutting down Samba SMB daemon done
Starting Samba SMB daemon
And in Dolphin>Network>Samba Shares it shows the workgroup on my brothers computer and when I click on it it shows my brother’s netbios name and when I click on that it shows my account on my openSUSE box NOT my brothers Win XP box. What am I doing wrong. Gotta be something I don’t understand yet.
You are misinterpreting these two lines:
workgroup = MYBROSWORKGROUP
netbios name = mybrosnetbios
The workgroup is a common network name for every computer on the LAN. Together all computers on the LAN form a common “group” with a common name which is chosen by the group of users on the LAN to bind them together in a fraternity/sorority that works together as a “workgroup”. So it’s really OURMUTUALWORKGROUP, not MYBROSWORKGROUP. That might help you think about it more in terms of the way it actually works.
Your “netbios name” has to be a unique name that you choose to represent your computer on the LAN, not your brother’s computer. Think of it as “netbios name = myown_special_unique_name”.
So you’ve probably got the workgroup name right but you must change the netbios name to something that identifies you e.g. gandalf_linux_wizard
I obviously don’t understand how to use Samba. I changed the netBIOS line to a unique name and now in Dolphin I’m getting >Network>Samba Shares>WORKGROUP>smb://workgroup/
in the URL line and at the bottom:
Timeout on server
workgroup
so I obviously haven’t done something or did something wrong but I don’t get it?
I want to check your firewall settings, so: please post the dialogue you get from this console command (maybe paste it into the terminal - it’s pretty complex):
Your firewall is set up to block Samba communications. Here’s a tutorial on how to open it: Opening the Firewall for Samba
If your brother has the factory-default windows firewall running, it lets Samba through by default. Except in vista you have to “allow sharing” or some such. But if he has other firewalls on windows, that could be another matter; e.g. Zone Alarm blocks Samba by default.
Take this approach: open SuSEfirewall2 for Samba as indicated in the link and try browsing. If still a problem then turn off bro’s windows firewalls as a further test.
It helps stand-offish machines to talk to one another if after major reconfigurations you do this: reboot Suse, pause, reboot windows, pause, reboot Suse, pause, reboot windows. Makes them say howdy to each other.
For what it’s worth both openSUSE and Windows firewalls are currently off. My bro’s windows firewall is Komodo [currently off]. I will go through the Samba and Suse: HowTo Set up an openSUSE-Windows Home Office LAN/Network. Versions 10, 11 tutorial though as I’ll need to do that after I get this working. If I get it working… Right now we’re doing the double reboot with Suse Firewall off though the Komodo Firewall on my brother’s computer will come back on when he reboots. He’s asking “Is samba installed on my machine?” and “what port does Samba use?”
Now the double booting routine did change things and I can see his computer/server from my machine in Dolphin. When I try to open it it asks for authentication. I have tried my smb uname and password, my uname and password on the Windows computer, and my brothers user name which is set up with no password so leaving password entry blank. Still won’t let me see files on his Windows box. Wonder why?
Ok, I’ve now gone through the Firewall tutorial and with my Suse Firewall on I can still see my brothers Windows box on my openSUSE box. I’m so close. If only I knew what to do when I’m asked for ‘Please enter authentication information for mybroscomputer’??? I thought it was supposed to be my smb username and password but that isn’t working. Any one know what the problem is at this point? Is it a permissions issue?
One of the things that may be a hang up is that when I follow the instructions in “Setting up KDE for on-the-fly sharing in Dolphin/Konqueror” when I get towards the end and click OK after Pic F and then click apply and OK in the final instance of Pic B I do not get Pic G. Ever. I’ve been through this at least 6 times and it never changes. What could I be doing wrong here? Before starting each time I have:
That won’t have a bearing on the issue of you trying to get to the windows computer. I have to go away for two days on business, travelling to here and I only take a laptop with me. So I’ll look at that when I get back.
I assume you can still make the shares, can you, even if you have to supply the root password?