Hi
Has anyone managed to get Samba working in 9.1?
frederic@wallaby:~> smbclient -L localhost
Password:
Domain=[WALLABY] OS=[Unix] Server=[Samba 3.0.2a-SUSE]
Sharename Type Comment
--------- ---- -------
floppy Disk Floppy on (localhost)
dvdrecorder Disk DVD-RW on (localhost)
cdrecorder Disk CD-RW on (localhost)
IPC$ IPC IPC Service (Linux Samba Server
3.0.2a-SUSE on (localhost))
ADMIN$ IPC IPC Service (Linux Samba Server
3.0.2a-SUSE on (localhost))
canon_i865 Printer Canon i865
frederic Disk Home Directories
Domain=[WALLABY] OS=[Unix] Server=[Samba 3.0.2a-SUSE]
Server Comment
--------- -------
Workgroup Master
--------- -------
The Server and Workgroup never show up... I've been using the same
config files with Mandrake 10.0 a few days ago with no problem.
SuSE 9.1: Samba pbm...
--
Frederic Soulier
On Tuesday 11 May 2004 22:41, Frederic Soulier wrote:
Has anyone managed to get Samba working in 9.1?
Yes, as a matter of fact I just got a guest login to work a few minutes ago. :) Are you trying to get a guest (passwordless) login to work or a login with password? What exactly are the problems you're encountering (login from windows/linux machines, ...)? Regards, Pieter Hulshoff
On Tue, 2004-05-11 at 21:47, Pieter Hulshoff wrote:
On Tuesday 11 May 2004 22:41, Frederic Soulier wrote:
Has anyone managed to get Samba working in 9.1?
Yes, as a matter of fact I just got a guest login to work a few minutes ago. :) Are you trying to get a guest (passwordless) login to work or a login with password? What exactly are the problems you're encountering (login from windows/linux machines, ...)?
I'm trying to access shares on my linux box from a WinXP box.
On both boxes I use the same username/password.
I added the username/password with "smbpasswd -a frederic" on the linux
box.
The first pbm is:
when I "smbclient -L localhost" (as user frederic) I should see the
workgroup (HOME in my case) but it never appears.
So right now I'm not even trying to access a share from WinXP but merely
trying to get Samba on 9.1 to show the "HOME" workgroup.
I'm not trying to do anything fancy. Usually it takes me 2 mins in
Mandrake to setup and has been that way with (almost) the same config
file for the last 2 years...
wallaby:/etc/samba # cat smb.conf
# Global parameters
[global]
workgroup = HOME
netbios name = wallaby
server string = Linux Samba Server %v on (%L)
# Browsing election options
os level = 34
local master = yes
preferred master = yes
# domain logons = yes
# wins support = yes
# Security options
security = user
encrypt passwords = yes
username map = /etc/samba/smbusers
max connections = 3
lock directory = /var/lock/samba
# Networking configuration options
hosts allow = 192.168.0. 192.168.20. 127.
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
# Debug logging information
log level = 3
log file = /var/log/samba/log.%m
max log size = 1000
debug timestamp = yes
# General options for shares
follow symlinks = no
wide links = no
case sensitive = no
# Options for printing with CUPS
printcap name = cups
#printcap name = /etc/printcap
load printers = yes
printing = cups
use client driver = yes
printer admin = frederic
[homes]
comment = Home Directories
browseable = no
writable = yes
[printers]
comment = Canon i865 on (%L)
path = /var/spool/samba
printable = yes
browseable = yes
writable = yes
guest ok = yes
create mode = 0770
min print space = 2000
#using client side printer drivers
print command = lpr -P %p -o raw %s -r
lpq command = cups -o %p
lprm command = cancel %p-%j
[floppy]
comment = Floppy on (%L)
path = /media/floppy
browseable = yes
read only = no
writable = yes
valid users = @users
create mask = 0774
[dvdrecorder]
comment = DVD-RW on (%L)
path = /media/dvdrecorder
browseable = yes
read only = yes
writable = no
valid users = @users
[cdrecorder]
comment = CD-RW on (%L)
path = /media/cdrecorder
browseable = yes
read only = no
writable = yes
valid users = @users
--
Frederic Soulier
On Tuesday 11 May 2004 23:01, Frederic Soulier wrote:
I'm trying to access shares on my linux box from a WinXP box. On both boxes I use the same username/password. I added the username/password with "smbpasswd -a frederic" on the linux box.
Well, a few things might have changed in Samba 3 that give your setup some problems. I presume you've checked that smb is actually running. Have you tried setting it up from Yast2? I noticed you're using @users for the valid users, while the Yast2 generated config file uses %S. Also: make sure the user frederic exists on your Linux machine, and has access to the file. Otherwise the user will probably be mapped to guest, which means the 'other' permissions for the directories and files have to be set properly (also doable). Hope this helps a bit. Regards, Pieter Hulshoff
On Tue, 2004-05-11 at 22:09, Pieter Hulshoff wrote:
On Tuesday 11 May 2004 23:01, Frederic Soulier wrote:
I'm trying to access shares on my linux box from a WinXP box. On both boxes I use the same username/password. I added the username/password with "smbpasswd -a frederic" on the linux box.
Well, a few things might have changed in Samba 3 that give your setup some problems. I presume you've checked that smb is actually running. Have you tried setting it up from Yast2?
Worked fine with Samba 3 on MDK 10.0 :)
I noticed you're using @users for the valid users, while the Yast2 generated config file uses %S.
Also: make sure the user frederic exists on your Linux machine, and has access to the file. Otherwise the user will probably be mapped to guest, which means the 'other' permissions for the directories and files have to be set properly (also doable).
I used YAST2 and compared smb.conf before and after and here are the
differences:
YAST2 added bits and pieces to different sections as follows:
[global]
passdb backend = smbpasswd
add machine script =
domain master = false
domain logons = no
ldap suffix = dc=example,dc=com
[homes]
guest ok = no
printable = no
[floppy]
guest ok = no
printable = no
[dvdrecorder]
guest ok = no
printable = no
[cdrecorder]
guest ok = no
printable = no
Now "smbclient -L localhost" gives:
frederic@wallaby:~> smbclient -L localhost
Password:
Domain=[WALLABY] OS=[Unix] Server=[Samba 3.0.2a-SUSE]
Sharename Type Comment
--------- ---- -------
floppy Disk Floppy on (localhost)
dvdrecorder Disk DVD-RW on (localhost)
cdrecorder Disk CD-RW on (localhost)
IPC$ IPC IPC Service (Linux Samba Server
3.0.2a-SUSE on (localhost))
ADMIN$ IPC IPC Service (Linux Samba Server
3.0.2a-SUSE on (localhost))
canon_i865 Printer Canon i865
frederic Disk Home Directories
Domain=[WALLABY] OS=[Unix] Server=[Samba 3.0.2a-SUSE]
Server Comment
--------- -------
Workgroup Master
--------- -------
HOME WALLABY
and my WinXP box sees the shares.
Thanks for suggesting YAST2 it was the obvious thing to try first.
--
Frederic Soulier
participants (2)
-
Frederic Soulier
-
Pieter Hulshoff