Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Samba: Unable to connect to CUPS server localhost
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
CPUFreak91
Tux's lil' helper
Tux's lil' helper


Joined: 25 Feb 2005
Posts: 110
Location: Mars

PostPosted: Fri Jul 28, 2006 3:36 pm    Post subject: [SOLVED] Samba: Unable to connect to CUPS server localhost Reply with quote

I'm trying to set up a Samba server, but I can't figure out how to keep samba from displaying these errors in /var/log/samba/smbd.conf:
Code:
[2006/07/28 10:31:37, 0] printing/print_cups.c:cups_cache_reload(85)
  Unable to connect to CUPS server localhost - Connection refused
[2006/07/28 10:31:37, 0] printing/print_cups.c:cups_cache_reload(85)
  Unable to connect to CUPS server localhost - Connection refused
[2006/07/28 10:31:37, 0] lib/debug.c:reopen_logs(597)
  Unable to open new log file /var/log/smb/samba.smbd: No such file or directory
[2006/07/28 10:31:37, 0] lib/debug.c:reopen_logs(597)
  Unable to open new log file /var/log/smb/samba.smbd: No such file or directory
[2006/07/28 10:31:37, 1] auth/auth_util.c:make_server_info_sam(876)
  User local_user in passdb, but getpwnam() fails!
[2006/07/28 10:31:37, 0] smbd/server.c:main(829)
  ERROR: failed to setup guest info.


I know that one of my problems is Samba trying to connect to a non-existen CUPS server and I would like to disable this (I do not want to print anything) but I do not know how.

Two other errors that I don't understand are the
Code:
Unable to open new log file /var/log/smb/samba.smbd: No such file or directory
errors when /var/log/smb/samba.smbd does exist!

And the last errors are the user and gues info errors. How can I get past those?
_________________
All Your Base Are Belong To Us!!! chown -r us ./base
"After three days without programming, life becomes meaningless.'' -- Tao of Programming Book 2


Last edited by CPUFreak91 on Fri Jul 28, 2006 5:19 pm; edited 1 time in total
Back to top
View user's profile Send private message
Philantrop
Retired Dev
Retired Dev


Joined: 21 Dec 2004
Posts: 1130
Location: Germany

PostPosted: Fri Jul 28, 2006 3:46 pm    Post subject: Reply with quote

Please post your /etc/samba/smb.conf (with all comments removed, please).
_________________
If you feel the issues discussed in this thread have been resolved, please add a "[Solved]" to the subject of your original posting.
Back to top
View user's profile Send private message
CPUFreak91
Tux's lil' helper
Tux's lil' helper


Joined: 25 Feb 2005
Posts: 110
Location: Mars

PostPosted: Fri Jul 28, 2006 4:27 pm    Post subject: Reply with quote

Code:


[global]
workgroup = WORKGROUP
netbios name = JoesComputer
server string = Joes Gentoo Box

security = share
guest account = local_user

log file = /var/log/smb/samba.%m
max log size = 50

local master = no


[Joe's Home]
path = /home/therat
guest ok = yes
read only = yes
case sensitive = no
msdfs proxy = no

[Music]
path = /home/therat/Music/
guest ok = yes
read only = yes

[File Dump]
path = /home/therat/FileDump
valid users = local_user
guest ok = no
read only = no
writable = yes

_________________
All Your Base Are Belong To Us!!! chown -r us ./base
"After three days without programming, life becomes meaningless.'' -- Tao of Programming Book 2
Back to top
View user's profile Send private message
Philantrop
Retired Dev
Retired Dev


Joined: 21 Dec 2004
Posts: 1130
Location: Germany

PostPosted: Fri Jul 28, 2006 4:55 pm    Post subject: Reply with quote

CUPS: Try setting the following parameter in your smb.conf:

Code:
printing = SYSV


Quote:
User local_user in passdb, but getpwnam() fails!


Did you create a Linux user account for "local_user" (is he in /etc/passwd)? If not: Add him.

Quote:
Unable to open new log file /var/log/smb/samba.smbd: No such file or directory


Try replacing %m (which won't work in your setup, AFAIK; man smb.conf) with %M.
_________________
If you feel the issues discussed in this thread have been resolved, please add a "[Solved]" to the subject of your original posting.
Back to top
View user's profile Send private message
CPUFreak91
Tux's lil' helper
Tux's lil' helper


Joined: 25 Feb 2005
Posts: 110
Location: Mars

PostPosted: Fri Jul 28, 2006 5:18 pm    Post subject: Reply with quote

Thanks! That works.
_________________
All Your Base Are Belong To Us!!! chown -r us ./base
"After three days without programming, life becomes meaningless.'' -- Tao of Programming Book 2
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