You are not logged in.

#1 2008-08-21 00:58:35

smcsw2000
Member
Registered: 2007-06-22
Posts: 130

how to disable samba

My printer will not work. It was working before i tried to add samba to the mix (trying to set up a home server).Cups shows the printer is working, jobs go to the printer but nothing comes out. Cups access log and page log show no problems. /var/log/cups/error.log shows the following:
E [17/Aug/2008:00:03:22 -0700] Unable to find IP address for server name "cmehil.domain.com"!
I [17/Aug/2008:00:03:22 -0700] Listening to 127.0.0.1:631 on fd 0...
E [17/Aug/2008:00:03:22 -0700] Unable to bind socket for address 127.0.0.1:631 - Address already in use.
d [17/Aug/2008:00:03:22 -0700] cupsdSetEnv: CUPS_SERVER=localhost
d [17/Aug/2008:00:03:22 -0700] cupsdSetEnv: CUPS_ENCRYPTION=IfRequested
d [17/Aug/2008:00:03:22 -0700] cupsdSetEnv: IPP_PORT=631
I [17/Aug/2008:00:03:22 -0700] Resuming new connection processing...
d [17/Aug/2008:00:03:22 -0700] cupsdResumeListening: Setting input bits...
E [18/Aug/2008:18:46:34 -0700] File or directory for "ServerCertificate /etc/cups/ssl/server.crt" on line 144 does not exist!
E [18/Aug/2008:18:46:34 -0700] File or directory for "ServerKey /etc/cups/ssl/server.key" on line 155 does not exist!
E [18/Aug/2008:18:46:34 -0700] Unknown User "lp" on line 520, ignoring!

So I want to disable samba to see if it is cups, hosts, or something else. How can I disable samba without removing or deleting samba?

Offline

#2 2008-08-21 01:14:55

vyrixv
Member
From: Houston, TX
Registered: 2005-12-23
Posts: 15

Re: how to disable samba

/etc/rc.d/samba stop

as root.

Offline

#3 2008-08-22 00:38:55

smcsw2000
Member
Registered: 2007-06-22
Posts: 130

Re: how to disable samba

doesn't /etc/rc.d/samba stop only stop samba from running, but still engage all the other parameters like using hosts (allow and deny) the ssl certifications and others basically making it like it is still running?

Offline

#4 2008-08-22 02:04:19

vyrixv
Member
From: Houston, TX
Registered: 2005-12-23
Posts: 15

Re: how to disable samba

heh, what?

tcp wrappers (host.deny and allow) is a feature that has to be compiled (therefore supported) by the app (samba).  Correct me if I am wrong, but tcp wrappers is not compiled into arch's samba

(according to:)

#ldd /usr/sbin/smbd | grep libwrap

turns up nothing

So by having listed in the host files does nothing.


Ssl is listed as a comiled library, but having the libary doesn't mean it is in use.

Is your question more related to how can you unisntall samba as well as what it depended on?

Offline

#5 2008-08-22 03:25:39

Purch
Member
From: Finland
Registered: 2006-02-23
Posts: 229

Re: how to disable samba

Have you setup the smb.conf for your printer properly?

....
load printers = yes
....
printcap name = cups
....
[printers]
   comment = All Printers
   path = /var/spool/samba
   browseable = yes
# Set public = yes to allow user 'guest account' to print
   public = yes
   guest ok = yes
   writable = no
   printable = yes
   printer admin = root,some_other_user

Offline

#6 2008-08-24 11:26:11

smcsw2000
Member
Registered: 2007-06-22
Posts: 130

Re: how to disable samba

I do not want to delete samba I want to disable it and get the printer working. This way I will find out if I messed cups up and have to fix that or if it is samba that I dont have set right and can go from there. What I was trying to find out is in the cups error log it shows that the cups server certificate and the ServerKey do not exist so I thought that was from samba but tied in with cups. Right now I am trying to troubleshoot both at the same time and am getting confused. My smb.conf is the long one from generic with a lot of commented out lines but what you have is mostly what is in mine except
browsable = no
writable is not there
printer admin is not there but force user and force group is there

Offline

Board footer

Powered by FluxBB