Hi, I am trying to set up samba, but I can’t get it to work.
I tried following SDB:Samba file sharing in openSUSE - breaking through the window - openSUSE
But I can’t get it to work.
What can I do from here?
Hi, I am trying to set up samba, but I can’t get it to work.
I tried following SDB:Samba file sharing in openSUSE - breaking through the window - openSUSE
But I can’t get it to work.
What can I do from here?
http://www.stalkerzone.dk/upload/samba.jpg
Seems odd?
lassenc wrote:
> http://www.stalkerzone.dk/upload/samba.jpg
>
> Seems odd?
Did you read the big, red, message on your screen?
Yes, thats why I took a screenshot so you could see it.
I don’t know what to do with it.
lassenc wrote:
> Yes, thats why I took a screenshot so you could see it.
> I don’t know what to do with it.
Say you want to make a cake.
You read a recipe, on which it says: add two eggs.
You open your fridge, and discover there are no eggs.
Now what do you do?
Sjeez…
I don’t know, you tell me?
lasse@linux-vu9d:~> rpm -qa | grep -i samba
yast2-samba-server-2.17.6-1.2
yast2-samba-client-2.17.11-1.30
kdebase3-samba-3.5.10-17.4
samba-3.2.6-0.3.1
gadmin-samba-0.2.7-0.pm.1
samba-client-3.2.6-0.3.1
lassenc wrote:
> LittleRedRooster;1929402 Wrote:
>> lassenc wrote:
>>> Yes, thats why I took a screenshot so you could see it.
>>> I don’t know what to do with it.
>> Say you want to make a cake.
>> You read a recipe, on which it says: add two eggs.
>> You open your fridge, and discover there are no eggs.
>> Now what do you do?
>>
>> Sjeez…
>
> I don’t know, you tell me?
>
>
> Code:
> --------------------
> lasse@linux-vu9d:~> rpm -qa | grep -i samba
> yast2-samba-server-2.17.6-1.2
> yast2-samba-client-2.17.11-1.30
> kdebase3-samba-3.5.10-17.4
> samba-3.2.6-0.3.1
> gadmin-samba-0.2.7-0.pm.1
> samba-client-3.2.6-0.3.1
>
> --------------------
You really enjoy this, supplying as little information as possible, don’t you?
Why the fsck don’t you tell right away that you did in fact install samba?
I’m pretty much done with you lassenc, you’re not helping yourself, and you’re
not making it any easier for us to help you either.
On this here topic just one more thing: if you run this GADMIN-SAMBA tool as normal
user, it will probably not find smbd in your PATH, so if that’s the case: run the
program with kdesu or something simular.
If you did run this program as root, then I’m out of answers.
If I knew what to supply, I’d do so.
And no, I am not enjoying it.
I have just opened the Gadmin-samba through the applications menu earlier.
linux-vu9d:/home/lasse # gadmin-samba
useradd: Invalid home directory `/dev/null'.
Error adding the system user: smbguest
The command was: useradd 'smbguest' -d /dev/null -c 'Samba guest account' -s /dev/null -g 'nobody'
Gadmin-samba still opens, but with the same errormessage though.
The screenshot that you showed reveals some strange configurations.
Also the HowTo you used (in your first post) is out of date – Samba in Suse has changed since then.
So three suggestions:
sudo /usr/sbin/rcnmb status
and
sudo /usr/sbin/rcsmb status
Both should return the reply “running”
Also tell us what machines are on the LAN in terms of the windows and Linux operating systems.
We can take it further from that point.
http://www.stalkerzone.dk/upload/firewall.jpg
I assume this is what you wanted to see in terms of the firewall?
[global]
; General server settings
netbios name = lasse
server string =
workgroup = Workgroup
announce version = 5.0
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192
passdb backend = tdbsam
security = user
null passwords = true
username map = /etc/samba/smbusers
name resolve order = hosts wins bcast
wins support = no
printing = CUPS
printcap name = CUPS
syslog = 1
syslog only = yes
; NOTE: If you need access to the user home directories uncomment the
; lines below and adjust the settings to your hearts content.
;[homes]
;valid users = %S
;create mode = 0600
;directory mode = 0755
;browseable = no
;read only = no
;veto files = /*.{*}/.*/mail/bin/
; NOTE: Only needed if you run samba as a primary domain controller.
; Not needed as this config doesn't cover that matter.
;[netlogon]
;path = /var/lib/samba/netlogon
;admin users = Administrator
;valid users = %U
;read only = no
; NOTE: Again - only needed if you're running a primary domain controller.
;[Profiles]
;path = /var/lib/samba/profiles
;valid users = %U
;create mode = 0600
;directory mode = 0700
;writeable = yes
;browseable = no
; NOTE: Inside this place you may build a printer driver repository for
; Windows - I'll cover this topic in another HOWTO.
[print$]
path = /var/lib/samba/printers
browseable = yes
guest ok = yes
read only = yes
write list = root
create mask = 0664
directory mask = 0775
[printers]
path = /tmp
printable = yes
guest ok = yes
browseable = no
; Uncomment if you need to share your CD-/DVD-ROM Drive
;[DVD-ROM Drive]
;path = /media/cdrom
;browseable = yes
;read only = yes
;guest ok = yes
[MyFiles]
path = /home/lasse/FTP/
browseable = yes
read only = no
guest ok = no
create mask = 0644
directory mask = 0755
force user = lasse
force group = lasse
lasse@linux-vu9d:~> sudo /usr/sbin/rcnmb status
root's password:
Checking for Samba NMB daemon running
lasse@linux-vu9d:~> sudo /usr/sbin/rcsmb status
running
Checking for Samba SMB daemon
The “network” consists of this PC, running 11.1 OpenSUSE and another laptop running Windows XP SP3
1: The firewall is misconfigured, check the link I gave you.
3: I can’t quite see, but I assume both daemons are running.
2: I’d back up your existing smb.conf and then I’d change the [global] stanza to this:
[global]
workgroup = workgroup
netbios name = lasse
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
Then I’d check that you have entered valid users into the Samba user database by listing them to check that they are in there. You will need these or at least one user (probably lasse is best) to access the share you’ve displayed. This command will list the users:
sudo pdbedit -L
My GUI didn’t look like the guide at this stage, but I think it is right.
http://www.stalkerzone.dk/upload/firewall2.jpg
Everything else is set up as per the guide now.
Smb.conf backed up, the global part changed in /etc/samba/smb.conf.
sudo pdbedit -L, however, does not return anything
My mate can now see the computer and the files, awesome.
But, it seems slow, can samba cap in any way?
Two questions:
Then this is the only thing to do:
But, it seems slow, can samba cap in any way?
The only thing I can suggest is to put in this line:
socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
But I think that was useful only in earlier versions of Samba in 11.1… Hmmmmmm?
What is still strange is that your mate can do anything at all with the configuration you showed us because you set up the share to be for authenticated clients only. So perhaps post the smb.conf one more time. May be something you changed in that since I saw it last.
[global]
netbios name = lasse
name resolve order = bcast host lmhosts wins
server string = ""
printcap name = cups
cups options = raw
use client driver = yes
map to guest = Bad User
preferred master = yes
os level = 65
usershare allow guests = Yes
usershare max shares = 100
usershare owner only = False
; NOTE: If you need access to the user home directories uncomment the
; lines below and adjust the settings to your hearts content.
;[homes]
;valid users = %S
;create mode = 0600
;directory mode = 0755
;browseable = no
;read only = no
;veto files = /*.{*}/.*/mail/bin/
; NOTE: Only needed if you run samba as a primary domain controller.
; Not needed as this config doesn't cover that matter.
;[netlogon]
;path = /var/lib/samba/netlogon
;admin users = Administrator
;valid users = %U
;read only = no
; NOTE: Again - only needed if you're running a primary domain controller.
;[Profiles]
;path = /var/lib/samba/profiles
;valid users = %U
;create mode = 0600
;directory mode = 0700
;writeable = yes
;browseable = no
; NOTE: Inside this place you may build a printer driver repository for
; Windows - I'll cover this topic in another HOWTO.
[print$]
path = /var/lib/samba/printers
guest ok = yes
write list = root
create mask = 0664
directory mask = 0775
[printers]
path = /tmp
printable = yes
guest ok = yes
browseable = no
; Uncomment if you need to share your CD-/DVD-ROM Drive
;[DVD-ROM Drive]
;path = /media/cdrom
;browseable = yes
;read only = yes
;guest ok = yes
[FTP]
path = /home/lasse/FTP/
read only = no
create mask = 0644
force user = lasse
guest ok = yes
Where do you want me to enter
socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
Enter the socket options into the [global] stanza.
The share has been recrafted. It looks good.
The only other speed issue I can think of is if you perhaps have cards set for half duplex with a full duplex router.
Okay, thanks, I’ll do a test tomorrow to see if that has sped things up, then I will check the networkcards, I’m off to sleep now.