Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
samba + cups problem
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
wierzba
n00b
n00b


Joined: 24 Feb 2006
Posts: 58
Location: Warsaw, Poland

PostPosted: Sat Jul 22, 2006 6:16 pm    Post subject: samba + cups problem Reply with quote

Hi,
I have a problem with samba. I want to share my files with other student in the local network, but I have a problem with samba and cups configuration.
I use howto guide to configure but fail, when I restart cups. I received that error:
Code:
/etc/init.d/cupsd restart
 * Starting cupsd ...
cupsd: Child exited on signal 15!

and
/etc/init.d/samba restart
Code:
 * Starting cupsd ...
cupsd: Child exited on signal 15!                                         [ !! ]
* samba -> start: smbd ...                                             
 [ !! ] * samba -> start: nmbd ...                                             
 [ ok ] * Error: stopping services (see system logs)
 * samba -> stop: smbd ...                                                [ !! ]
* samba -> stop: nmbd ...                                                 [ !! ]



now what i found in log files.

log.smbd
Code:
(...)
[2006/07/22 21:58:30, 0] smbd/server.c:main(805)
  smbd version 3.0.22 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2006
[2006/07/22 21:58:30, 0] printing/print_cups.c:cups_cache_reload(85)
  Unable to connect to CUPS server wierzba - Connection refused
[2006/07/22 21:58:30, 0] printing/print_cups.c:cups_cache_reload(85)
  Unable to connect to CUPS server wierzba - Connection refused
[2006/07/22 21:58:30, 1] auth/auth_util.c:make_server_info_sam(876)
  User samba in passdb, but getpwnam() fails!
[2006/07/22 21:58:30, 0] smbd/server.c:main(829)
  ERROR: failed to setup guest info.
(...)


log.nmbd
Code:
(..)
[2006/07/22 21:58:30, 0] nmbd/nmbd.c:main(727)
  Netbios nameserver version 3.0.22 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2006
[2006/07/22 21:58:30, 0] nmbd/nmbd.c:terminate(58)
  Got SIGTERM: going down...
(...)


and /var/log/cups/error_log
Code:
(...)
E [22/Jul/2006:21:47:53 +0200] Unknown directive <location/> on line 11.
E [22/Jul/2006:21:47:53 +0200] Unknown directive Ordeer on line 12.
E [22/Jul/2006:21:47:53 +0200] Unknown directive Deny on line 13.
E [22/Jul/2006:21:47:53 +0200] Unknown directive Allow on line 14.
E [22/Jul/2006:21:47:53 +0200] Unknown directive Allow on line 15.
E [22/Jul/2006:21:47:53 +0200] Unknown directive </location> on line 16.
I [22/Jul/2006:21:47:53 +0200] Loaded configuration file "/etc/cups/cupsd.conf"
X [22/Jul/2006:21:47:53 +0200] No valid Listen or Port lines were found in the configuration file!
E [22/Jul/2006:21:58:29 +0200] Unknown directive <location/> on line 11.
E [22/Jul/2006:21:58:29 +0200] Unknown directive Ordeer on line 12.
E [22/Jul/2006:21:58:29 +0200] Unknown directive Deny on line 13.
E [22/Jul/2006:21:58:29 +0200] Unknown directive Allow on line 14.
E [22/Jul/2006:21:58:29 +0200] Unknown directive Allow on line 15.
E [22/Jul/2006:21:58:29 +0200] Unknown directive </location> on line 16.
I [22/Jul/2006:21:58:29 +0200] Loaded configuration file "/etc/cups/cupsd.conf"
(...)

X [22/Jul/2006:21:58:29 +0200] No valid Listen or Port lines were found in the configuration file!

Now that I have in smb.conf
Code:
[global]
workgroup = rivnet
server string = Wierzba
log file = /var/log/samba/log.%m
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
interfaces = lo eth0
bind interfaces only = yes
hosts allow = 127.0.0.1 10.2.4.
security = share
guest account = samba
guest ok = yes
vfs object = vscan-clamav
vscan-clamav: config-file = /etc/samba/vscan-clamav.conf
wins support = no
[public]
comment = Public Files
browseable = no
public = yes
create mode = 0766
guest ok = yes
path = /storage/samba
available = yes
writable = no


and cupsd.conf
Code:
ServerName wierzba
ServerAdmin root@wierzba   
AccessLog /var/log/cups/access_log
ErrorLog  /var/log/cups/error_log 
LogLevel  debug
MaxClients 100
BrowseAddress @IF(eth0)
<location/>
Ordeer Deny,Allow
Deny From All
Allow From 127.0.0.1
Allow From 10.1.104.35
</location>


If someone could help me I would be grateful :)... because I try several times and always with the same (failure) result :(

thx :)
_________________
Close the world, open the next

// HP Compaq nx6325 AMD Sempron 3500+, 1G , 60 GB HD
Gentoo Hardened 2.6.23
Back to top
View user's profile Send private message
exklusve
Apprentice
Apprentice


Joined: 23 Aug 2002
Posts: 270
Location: currently ~/

PostPosted: Mon Jul 24, 2006 11:43 pm    Post subject: Reply with quote

try this


Code:
<Location />
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
Allow From 10.1.104.35
</Location>



instead of this in your cups.conf

Code:
<location/>
Ordeer Deny,Allow
Deny From All
Allow From 127.0.0.1
Allow From 10.1.104.35
</location>

_________________
eXklusve

You do know that no one gives a shit about your system spec's right?
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