Re: [Samba] Samba on RHEL issue

2009-07-15 Thread John Doe

From: Shuaib Ilyas (shilyas) shil...@cisco.com
 [r...@usps-dc1-pc12 samba]# tail smbd.log
   bind failed on port 445 socket_addr = 0.0.0.0.
   Error = Address already in use

If you stop all the samba daemons, is there something listening on port 445...?

JD


  

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Samba on RHEL issue

2009-07-14 Thread Linux Addict
On Mon, Jul 13, 2009 at 6:00 PM, Shuaib Ilyas (shilyas)
shil...@cisco.comwrote:

 Hi Jonathon,
 Thanks for looking into it.

 The log messages are as follows:

 [r...@usps-dc1-pc12 samba]#
 [r...@usps-dc1-pc12 samba]#
 [r...@usps-dc1-pc12 samba]# tail smbd.log
  bind failed on port 445 socket_addr = 0.0.0.0.
  Error = Address already in use
 [2009/07/13 14:38:00, 0] smbd/server.c:main(944)
  smbd version 3.0.33-3.7.el5_3.1 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2008
 [2009/07/13 14:38:00, 1] param/loadparm.c:service_ok(3038)
  NOTE: Service printers is flagged unavailable.
 [2009/07/13 14:38:00, 0] lib/util_sock.c:open_socket_in(822)
  bind failed on port 445 socket_addr = 0.0.0.0.
  Error = Address already in use
 [r...@usps-dc1-pc12 samba]#


 The output of testparm to check the config smb.conf is a s follows:

 r...@usps-dc1-pc12 samba]# testparm /etc/samba/smb.conf
 Load smb config files from /etc/samba/smb.conf
 Processing section [homes]
 Processing section [printers]
 NOTE: Service printers is flagged unavailable.
 Loaded services file OK.
 Server role: ROLE_STANDALONE
 Press enter to see a dump of your service definitions

 [global]
workgroup = WRKGRP
netbios name = SMBSERVER
security = SHARE
default service = global
path = /home
cups options = raw
available = No

 [homes]
comment = Home Directories
path = /home/share
valid users = smbuser
admin users = smbuser
force user = root
read only = No
guest ok = Yes
browseable = No
available = Yes

 [printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No
 [r...@usps-dc1-pc12 samba]#
 [r...@usps-dc1-pc12 samba]#

 Any ideas?



 -Original Message-
 From: samba-bounces+shilyas=cisco@lists.samba.org
 [mailto:samba-bounces+shilyas samba-bounces%2Bshilyas=cisco.com@
 lists.samba.org] On Behalf Of
 Jonathon Doran
 Sent: Monday, July 13, 2009 1:23 PM
 To: samba@lists.samba.org
 Subject: Re: [Samba] Samba on RHEL issue

  Quoting Shuaib Ilyas (shilyas) shil...@cisco.com:


  I am trying to install samba on the RHEL. The installation completes
 but
  after that I get the smbd dead message upon checking the status:

 What does the samba logfile say about this?  On Fedora (which should
 have
 the same layout as RHEL), the samba logfile is in
 /var/log/samba/log.smbd

 Have you ran testparm to check smb.conf?
 --
 To unsubscribe from this list go to the following URL and read the
 instructions:  https://lists.samba.org/mailman/options/samba
 --
 To unsubscribe from this list go to the following URL and read the
 instructions:  https://lists.samba.org/mailman/options/samba




Check if the selinux is disabled..
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Samba on RHEL issue

2009-07-14 Thread Shuaib Ilyas (shilyas)
Hi,

 

Here is the setting:

 

[r...@usps-dc1-pc12 share]# getenforce

Disabled

[r...@usps-dc1-pc12 share]# 

 

Is this correct?

 

Thanks,

 

Shuaib

 

 

 

 

From: Linux Addict [mailto:linuxaddi...@gmail.com] 
Sent: Tuesday, July 14, 2009 6:29 AM
To: Shuaib Ilyas (shilyas)
Cc: Jonathon Doran; samba@lists.samba.org
Subject: Re: [Samba] Samba on RHEL issue

 

 

On Mon, Jul 13, 2009 at 6:00 PM, Shuaib Ilyas (shilyas)
shil...@cisco.com wrote:

Hi Jonathon,
Thanks for looking into it.

The log messages are as follows:


[r...@usps-dc1-pc12 samba]#

[r...@usps-dc1-pc12 samba]#

[r...@usps-dc1-pc12 samba]# tail smbd.log
 bind failed on port 445 socket_addr = 0.0.0.0.
 Error = Address already in use
[2009/07/13 14:38:00, 0] smbd/server.c:main(944)
 smbd version 3.0.33-3.7.el5_3.1 started.
 Copyright Andrew Tridgell and the Samba Team 1992-2008
[2009/07/13 14:38:00, 1] param/loadparm.c:service_ok(3038)
 NOTE: Service printers is flagged unavailable.
[2009/07/13 14:38:00, 0] lib/util_sock.c:open_socket_in(822)
 bind failed on port 445 socket_addr = 0.0.0.0.
 Error = Address already in use

[r...@usps-dc1-pc12 samba]#



The output of testparm to check the config smb.conf is a s follows:

r...@usps-dc1-pc12 samba]# testparm /etc/samba/smb.conf
Load smb config files from /etc/samba/smb.conf
Processing section [homes]
Processing section [printers]
NOTE: Service printers is flagged unavailable.
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
   workgroup = WRKGRP
   netbios name = SMBSERVER
   security = SHARE
   default service = global
   path = /home
   cups options = raw
   available = No

[homes]
   comment = Home Directories
   path = /home/share
   valid users = smbuser
   admin users = smbuser
   force user = root
   read only = No
   guest ok = Yes
   browseable = No
   available = Yes

[printers]
   comment = All Printers
   path = /var/spool/samba
   printable = Yes
   browseable = No

[r...@usps-dc1-pc12 samba]#
[r...@usps-dc1-pc12 samba]#

Any ideas?




-Original Message-
From: samba-bounces+shilyas=cisco.com http://cisco.com/
@lists.samba.org http://lists.samba.org/ 
[mailto:samba-bounces+shilyas mailto:samba-bounces%2Bshilyas
=cisco.com http://cisco.com/ @lists.samba.org
http://lists.samba.org/ ] On Behalf Of
Jonathon Doran
Sent: Monday, July 13, 2009 1:23 PM
To: samba@lists.samba.org
Subject: Re: [Samba] Samba on RHEL issue

Quoting Shuaib Ilyas (shilyas) shil...@cisco.com:


 I am trying to install samba on the RHEL. The installation completes
but
 after that I get the smbd dead message upon checking the status:

What does the samba logfile say about this?  On Fedora (which should
have
the same layout as RHEL), the samba logfile is in
/var/log/samba/log.smbd

Have you ran testparm to check smb.conf?
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


 

 

Check if the selinux is disabled..

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Samba on RHEL issue

2009-07-14 Thread Frank Murphy
On 14/07/09 19:02, Shuaib Ilyas (shilyas) wrote:
 Hi,
 
  
 
 Here is the setting:
 
  
 
 [r...@usps-dc1-pc12 share]# getenforce
 
 Disabled
 
 [r...@usps-dc1-pc12 share]# 
 
  
 
 Is this correct?
 
  
 
 Thanks,
 
  
 
 Shuaib
 


su setenforce 0


Regards,

Frank
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Samba on RHEL issue

2009-07-14 Thread Jonathon Doran

Quoting Frank Murphy frankl...@gmail.com:


su setenforce 0


For the benefit of others, under Fedora I edit /etc/sysconfig/selinux  
to turn this off.


Please recognize the risks you may be adding to your network by  
disabling selinux.  For some people, this is an acceptable situation  
(me for one), but in other environments this could be a bad thing.


I think it is often advisable to try temporarily selinux and/or  
iptables in an environment where things aren't working properly.  This  
can be done for a short period of time, so the risk of compromise is  
lessened.  Knowing that one of these two products is behind your  
troubles is well worth the risk, in my opinion.


I have spent considerable time on a new Fedora 11 install tweaking iptables.

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Samba on RHEL issue

2009-07-14 Thread Frank Murphy
On 14/07/09 20:01, Jonathon Doran wrote:
 Quoting Frank Murphy frankl...@gmail.com:
 
 su setenforce 0
 
 For the benefit of others, under Fedora I edit /etc/sysconfig/selinux to
 turn this off.
 

On Fedora it's just as easy to do setenforce 0\1 as the case may be.
No conf editing required.

Ckeck:
https://www.redhat.com/mailman/listinfo/fedora-selinux-list

fedora is also pretty good at answering CentOS\RHEL Q's


Regards,

Frank


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Samba on RHEL issue

2009-07-14 Thread Linux Addict
On Tue, Jul 14, 2009 at 4:00 PM, Frank Murphy frankl...@gmail.com wrote:

 On 14/07/09 20:01, Jonathon Doran wrote:
  Quoting Frank Murphy frankl...@gmail.com:
 
  su setenforce 0
 
  For the benefit of others, under Fedora I edit /etc/sysconfig/selinux to
  turn this off.
 

 On Fedora it's just as easy to do setenforce 0\1 as the case may be.
 No conf editing required.

 Ckeck:
 https://www.redhat.com/mailman/listinfo/fedora-selinux-list

 fedora is also pretty good at answering CentOS\RHEL Q's


 Regards,

 Frank


 --
 To unsubscribe from this list go to the following URL and read the
 instructions:  https://lists.samba.org/mailman/options/samba




Looks like selinux is disabled.

Lets try this.


Stop the smbd and winbind

/etc/init.d/smbd stop
/etc/init.d/winbind stop

Update the smb.conf with log level = 10 and Start the smbd on Interactive
mode.

smbd -i


Observer the log it generates and attach it on a file .  The last line must
be waiting for a connection.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Samba on RHEL issue

2009-07-13 Thread Jonathon Doran

Quoting Shuaib Ilyas (shilyas) shil...@cisco.com:



I am trying to install samba on the RHEL. The installation completes but
after that I get the smbd dead message upon checking the status:


What does the samba logfile say about this?  On Fedora (which should have
the same layout as RHEL), the samba logfile is in /var/log/samba/log.smbd

Have you ran testparm to check smb.conf?
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Samba on RHEL issue

2009-07-13 Thread MargoAndTodd

Shuaib Ilyas (shilyas) wrote:

Hi,

I am trying to install samba on the RHEL. The installation completes but
after that I get the smbd dead message upon checking the status:

[r...@usps-dc1-pc12 share]# 


[r...@usps-dc1-pc12 share]# service smb status

smbd dead but pid file exists

nmbd (pid 8078) is running...

[r...@usps-dc1-pc12 share]# 


Hi Shuaib,

Seems to me I had the same problem on CentOS 5.2 a
few months back.

Try this:

1) stop the service:
/etc/rc.d/init.d/smb stop

2) erase any stray PID's:
rm /var/run/smbd.pid
rm /var/run/nmbd.pid

3) restart the service:
/etc/rc.d/init.d/smb start

If that does not work, try rebooting.

HTH,
-T

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


RE: [Samba] Samba on RHEL issue

2009-07-13 Thread Shuaib Ilyas (shilyas)
Thanks for the reply.

I followed the steps but it still did not work. 

In step 2, there were no smbd.pid or nmbd.pid files found.

In step 3, even after starting the service, when checking status, smbd
id dead.

Even after the reboot, same status.

Shuaib

-Original Message-
From: MargoAndTodd [mailto:margoandt...@gmail.com] 
Sent: Monday, July 13, 2009 1:19 PM
To: Shuaib Ilyas (shilyas)
Cc: samba@lists.samba.org
Subject: Re: [Samba] Samba on RHEL issue

Shuaib Ilyas (shilyas) wrote:
 Hi,
 
 I am trying to install samba on the RHEL. The installation completes
but
 after that I get the smbd dead message upon checking the status:
 
 [r...@usps-dc1-pc12 share]# 
 
 [r...@usps-dc1-pc12 share]# service smb status
 
 smbd dead but pid file exists
 
 nmbd (pid 8078) is running...
 
 [r...@usps-dc1-pc12 share]# 

Hi Shuaib,

Seems to me I had the same problem on CentOS 5.2 a
few months back.

Try this:

1) stop the service:
 /etc/rc.d/init.d/smb stop

2) erase any stray PID's:
 rm /var/run/smbd.pid
 rm /var/run/nmbd.pid

3) restart the service:
 /etc/rc.d/init.d/smb start

If that does not work, try rebooting.

HTH,
-T

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


RE: [Samba] Samba on RHEL issue

2009-07-13 Thread Shuaib Ilyas (shilyas)
Hi Jonathon,
Thanks for looking into it.

The log messages are as follows:

[r...@usps-dc1-pc12 samba]# 
[r...@usps-dc1-pc12 samba]# 
[r...@usps-dc1-pc12 samba]# tail smbd.log
  bind failed on port 445 socket_addr = 0.0.0.0.
  Error = Address already in use
[2009/07/13 14:38:00, 0] smbd/server.c:main(944)
  smbd version 3.0.33-3.7.el5_3.1 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2008
[2009/07/13 14:38:00, 1] param/loadparm.c:service_ok(3038)
  NOTE: Service printers is flagged unavailable.
[2009/07/13 14:38:00, 0] lib/util_sock.c:open_socket_in(822)
  bind failed on port 445 socket_addr = 0.0.0.0.
  Error = Address already in use
[r...@usps-dc1-pc12 samba]#


The output of testparm to check the config smb.conf is a s follows:

r...@usps-dc1-pc12 samba]# testparm /etc/samba/smb.conf
Load smb config files from /etc/samba/smb.conf
Processing section [homes]
Processing section [printers]
NOTE: Service printers is flagged unavailable.
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
 
[global]
workgroup = WRKGRP
netbios name = SMBSERVER
security = SHARE
default service = global
path = /home
cups options = raw
available = No

[homes]
comment = Home Directories
path = /home/share
valid users = smbuser
admin users = smbuser
force user = root
read only = No
guest ok = Yes
browseable = No
available = Yes

[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No
[r...@usps-dc1-pc12 samba]# 
[r...@usps-dc1-pc12 samba]#

Any ideas?



-Original Message-
From: samba-bounces+shilyas=cisco@lists.samba.org
[mailto:samba-bounces+shilyas=cisco@lists.samba.org] On Behalf Of
Jonathon Doran
Sent: Monday, July 13, 2009 1:23 PM
To: samba@lists.samba.org
Subject: Re: [Samba] Samba on RHEL issue

Quoting Shuaib Ilyas (shilyas) shil...@cisco.com:


 I am trying to install samba on the RHEL. The installation completes
but
 after that I get the smbd dead message upon checking the status:

What does the samba logfile say about this?  On Fedora (which should
have
the same layout as RHEL), the samba logfile is in
/var/log/samba/log.smbd

Have you ran testparm to check smb.conf?
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba