View previous topic :: View next topic |
Author |
Message |
CPUFreak91 Tux's lil' helper


Joined: 25 Feb 2005 Posts: 110 Location: Mars
|
Posted: Fri Jul 28, 2006 3:36 pm Post subject: [SOLVED] Samba: Unable to connect to CUPS server localhost |
|
|
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 |
|
 |
Philantrop Retired Dev

Joined: 21 Dec 2004 Posts: 1130 Location: Germany
|
Posted: Fri Jul 28, 2006 3:46 pm Post subject: |
|
|
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 |
|
 |
CPUFreak91 Tux's lil' helper


Joined: 25 Feb 2005 Posts: 110 Location: Mars
|
Posted: Fri Jul 28, 2006 4:27 pm Post subject: |
|
|
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 |
|
 |
Philantrop Retired Dev

Joined: 21 Dec 2004 Posts: 1130 Location: Germany
|
Posted: Fri Jul 28, 2006 4:55 pm Post subject: |
|
|
CUPS: Try setting the following parameter in your smb.conf:
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 |
|
 |
CPUFreak91 Tux's lil' helper


Joined: 25 Feb 2005 Posts: 110 Location: Mars
|
Posted: Fri Jul 28, 2006 5:18 pm Post subject: |
|
|
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 |
|
 |
|