Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
samba configuration issue
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Carlino
Guru
Guru


Joined: 25 May 2005
Posts: 365
Location: Bordeaux, France

PostPosted: Tue May 15, 2007 8:57 am    Post subject: samba configuration issue Reply with quote

hello all,
I'm on my way finishing samba configuration following this excellent how-to. Samba is running, but I'm stuked here :
Quote:
Checking our services
It would probably be prudent to check our logs at this time also. We will also want to take a peak at our Samba shares using smbclient.

Code:
# smbclient -L localhost
Error connecting to 127.0.0.1 (Connexion refused)
Connection to localhost failed

Code:
$ cat /etc/samba/smb.conf
[global]
workgroup = mylan
server string = Samba Server %v
printcap name = cups
printing = cups
load printers = yes
log file = /var/log/samba/log.%m
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192l
interfaces = lo eth0
bind interfaces only = yes
hosts allow = 127.0.0.1 192.168.0.0/5
hosts deny = 0.0.0.0/0
security = share
guest account = samba
guest ok = yes
#vfs object = vscan-clamav
#vscan-clamav: config-file = /etc/samba/vscan-clamav.conf

[print$]
comment = Pilotes d'impression
path = /etc/samba/printer # Ce chemin contient la structure des pilotes
guest ok = yes
browseable = yes
read only = yes

write list = carlino,root

[HPPhotosmart7260]
comment = HP Photosmart 7260 Network Printer
printable = yes
path = /var/spool/samba
public = yes
guest ok = yes

printer admin = carlino,root

[printers]
comment = All Printers
browseable = no
printable = yes
writable = no
public = yes
guest ok = yes
path = /var/spool/samba

printer admin = carlino,root

[public]
comment = Public Files
browseable = yes
public = yes
create mode = 0766
guest ok = yes
path = /home/samba/public

any idea about where I failed ?
_________________
Core 2 Quad 9400, Asus PQ5 Pro, Nvidia Geforce GTX 66O
Back to top
View user's profile Send private message
elgato319
Guru
Guru


Joined: 15 Sep 2005
Posts: 546

PostPosted: Tue May 15, 2007 9:40 am    Post subject: Reply with quote

is Samba started?
did you check the logfiles?
Back to top
View user's profile Send private message
Carlino
Guru
Guru


Joined: 25 May 2005
Posts: 365
Location: Bordeaux, France

PostPosted: Tue May 15, 2007 10:38 am    Post subject: Reply with quote

yes samba is started. It does on boot, since
Code:
# rc-update add samba default
# /etc/init.d/samba start

Code:
 # /etc/init.d/samba start
 * Caching service dependencies ...                                       [ ok ]
 * WARNING:  samba has already been started.

by the way, what is the command to check what mod / daemon is running or not ?
_________________
Core 2 Quad 9400, Asus PQ5 Pro, Nvidia Geforce GTX 66O
Back to top
View user's profile Send private message
Carlino
Guru
Guru


Joined: 25 May 2005
Posts: 365
Location: Bordeaux, France

PostPosted: Tue May 15, 2007 10:49 am    Post subject: Reply with quote

well, check this:
Code:
cat /var/log/samba/log.smbd
[2007/05/15 08:08:39, 0] smbd/server.c:main(847)
  smbd version 3.0.24 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2006
[2007/05/15 08:08:39, 1] param/loadparm.c:lp_do_parameter(3426)
  WARNING: The "printer admin" option is deprecated
[2007/05/15 08:08:39, 1] param/loadparm.c:lp_do_parameter(3426)
  WARNING: The "printer admin" option is deprecated
[2007/05/15 08:08:40, 0] printing/print_cups.c:cups_cache_reload(85)
  Unable to connect to CUPS server localhost - Address family not supported by protocol
[2007/05/15 08:08:40, 0] printing/print_cups.c:cups_cache_reload(85)
  Unable to connect to CUPS server localhost - Address family not supported by protocol
[2007/05/15 08:08:41, 0] passdb/pdb_interface.c:guest_user_info(295)
  guest_user_info: Unable to locate guest account [samba]!
[2007/05/15 08:08:43, 0] smbd/server.c:main(960)
  ERROR: failed to setup guest info.
[2007/05/15 08:20:45, 0] smbd/server.c:main(847)
  smbd version 3.0.24 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2006
[2007/05/15 08:20:45, 1] param/loadparm.c:lp_do_parameter(3426)
  WARNING: The "printer admin" option is deprecated
[2007/05/15 08:20:45, 1] param/loadparm.c:lp_do_parameter(3426)
  WARNING: The "printer admin" option is deprecated
[2007/05/15 08:20:45, 0] printing/print_cups.c:cups_cache_reload(85)
  Unable to connect to CUPS server localhost - Address family not supported by protocol
[2007/05/15 08:20:45, 0] printing/print_cups.c:cups_cache_reload(85)
  Unable to connect to CUPS server localhost - Address family not supported by protocol
[2007/05/15 08:20:46, 0] passdb/pdb_interface.c:guest_user_info(295)
  guest_user_info: Unable to locate guest account [samba]!
[2007/05/15 08:20:46, 0] smbd/server.c:main(960)
  ERROR: failed to setup guest info.



Code:
# cat /var/log/samba/log.nmbd
[2007/05/15 08:18:20, 0] nmbd/nmbd.c:terminate(58)
  Got SIGTERM: going down...
[2007/05/15 08:20:46, 0] nmbd/nmbd.c:main(699)
  Netbios nameserver version 3.0.24 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2006
[2007/05/15 08:26:32, 0] nmbd/nmbd_become_lmb.c:become_local_master_stage2(396)
  *****
 
  Samba name server LITTLEINDIAN is now a local master browser for workgroup MYLAN on subnet 192.168.0.3

does it enlight anything ?
_________________
Core 2 Quad 9400, Asus PQ5 Pro, Nvidia Geforce GTX 66O
Back to top
View user's profile Send private message
elgato319
Guru
Guru


Joined: 15 Sep 2005
Posts: 546

PostPosted: Tue May 15, 2007 11:43 am    Post subject: Reply with quote

Quote:

guest account = samba

guest_user_info: Unable to locate guest account [samba]!

it seems like there is no user named samba

Quote:

WARNING: The "printer admin" option is deprecated

there may be a new command for this, but it is still working

Quote:

printcap name = cups
printing = cups

Unable to connect to CUPS server localhost - Address family not supported by protocol

Looks like cups isn't running.
Back to top
View user's profile Send private message
abc0815
n00b
n00b


Joined: 07 Jul 2004
Posts: 54

PostPosted: Tue May 15, 2007 2:24 pm    Post subject: Reply with quote

Hey Carlino,

rc-status gives you an overwiev whats running.
cheers
Back to top
View user's profile Send private message
Carlino
Guru
Guru


Joined: 25 May 2005
Posts: 365
Location: Bordeaux, France

PostPosted: Tue May 15, 2007 4:50 pm    Post subject: Reply with quote

thanx abc0815, that's what I was looking for...
Code:
$ rc-status
Runlevel: default
 clamd                                                              [ started  ]
 hald                                                               [ started  ]
 local                                                              [ started  ]
 net.eth0                                                           [ started  ]
 netmount                                                           [ started  ]
 samba                                                              [ stopped  ]
 syslog-ng                                                          [ started  ]
 vixie-cron                                                         [ started  ]
 xdm                                                                [ started  ]

Code:
 # /etc/init.d/samba start
 * samba -> start: smbd ...                                               [ !! ]
 * samba -> start: nmbd ...                                               [ ok ]
 * Error: starting services (see system logs)
 * samba -> stop: smbd ...                                                [ ok ]
 * samba -> stop: nmbd ...                                                [ ok ]

argh...
Code:
 cat /var/log/samba/log.smbd
[2007/05/15 18:48:20, 0] smbd/server.c:main(847)
  smbd version 3.0.24 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2006
[2007/05/15 18:48:20, 1] param/loadparm.c:lp_do_parameter(3426)
  WARNING: The "printer admin" option is deprecated
[2007/05/15 18:48:20, 1] param/loadparm.c:lp_do_parameter(3426)
  WARNING: The "printer admin" option is deprecated
[2007/05/15 18:48:20, 0] printing/print_cups.c:cups_cache_reload(85)
  Unable to connect to CUPS server localhost - Famille d'adresses non supportée par le protocole
[2007/05/15 18:48:20, 0] printing/print_cups.c:cups_cache_reload(85)
  Unable to connect to CUPS server localhost - Famille d'adresses non supportée par le protocole
[2007/05/15 18:48:20, 0] passdb/pdb_interface.c:guest_user_info(295)
  guest_user_info: Unable to locate guest account [samba]!
[2007/05/15 18:48:20, 0] smbd/server.c:main(960)
  ERROR: failed to setup guest info.


P.S "Famille d'adresses non supportée par le protocole" would mean "address family non supported by the protocole" or so. I didn't that the printing system Cups would bother samba, because obviously, that's where the problem stands. I'm gonna check these cups settings...
_________________
Core 2 Quad 9400, Asus PQ5 Pro, Nvidia Geforce GTX 66O
Back to top
View user's profile Send private message
abc0815
n00b
n00b


Joined: 07 Jul 2004
Posts: 54

PostPosted: Wed May 16, 2007 5:43 am    Post subject: Reply with quote

Hi,
i think the problem is "ERROR: failed to setup guest info."
Do you have the User ? Does he have a password ? /etc/passwd
I am currently using security = user so i am guessing in the wild.
If you want to just to share the Direcotrys use the User "nobody" as Guest.
I am too getting all that cups garabge so i think this is not a problem.

cheers
Back to top
View user's profile Send private message
Carlino
Guru
Guru


Joined: 25 May 2005
Posts: 365
Location: Bordeaux, France

PostPosted: Wed May 16, 2007 7:55 am    Post subject: Reply with quote

Code:
$ rc-status
Runlevel: default
 clamd                                                                                                                                            [ started  ]
 hald                                                                                                                                             [ started  ]
 local                                                                                                                                            [ started  ]
 net.eth0                                                                                                                                         [ started  ]
 netmount                                                                                                                                         [ started  ]
 samba                                                                                                                                            [ started  ]
 syslog-ng                                                                                                                                        [ started  ]
 vixie-cron                                                                                                                                       [ started  ]
 xdm                                                                                                                                              [ started  ]

I haven't change anything.... just boot the box today... and samba is started.. don't get it...
but still
Code:
# smbclient -L localhost
Error connecting to 127.0.0.1 (Connexion refusée)
Connection to localhost failed

I'm gonna dig in what you pointed abc0815
_________________
Core 2 Quad 9400, Asus PQ5 Pro, Nvidia Geforce GTX 66O
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum