LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-02-2006, 04:55 PM   #1
Red Squirrel
Senior Member
 
Registered: Dec 2003
Distribution: Kubuntu 20.04 on workstation, CentOS 6.x on servers
Posts: 1,206

Rep: Reputation: 49
FC5's samba does not work


Out of the box, its broken. Make a share defination, simply does not work. It acts as if the path to the share does not exist (which it does) and also acts as if the user is not synced with the Windows one. (ex: smbpasswd -a administrator). Anyone know how to make samba work in FC5? Whatever they did, they nerfed it badly.


The logs are also filled with weird crap like this:

Code:
[root@borg etc]# tail -50 /var/log/samba/log.smbd
   #14 /lib/libc.so.6(__libc_start_main+0xdc) [0x9977e4]
   #15 smbd [0xb352f1]
[2006/07/01 15:59:59, 0] passdb/secrets.c:secrets_init(67)
  Failed to open /etc/samba/secrets.tdb
[2006/07/01 15:59:59, 0] passdb/secrets.c:secrets_init(67)
  Failed to open /etc/samba/secrets.tdb
[2006/07/01 15:59:59, 0] passdb/secrets.c:secrets_init(67)
  Failed to open /etc/samba/secrets.tdb
[2006/07/01 15:59:59, 0] passdb/machine_sid.c:pdb_generate_sam_sid(163)
  pdb_generate_sam_sid: Failed to store generated machine SID.
[2006/07/01 15:59:59, 0] lib/util.c:smb_panic2(1566)
  smb_panic(): calling panic action [/usr/share/samba/panic-action 2412]
[2006/07/01 15:59:59, 0] lib/util.c:smb_panic2(1574)
  smb_panic(): action returned status 127
[2006/07/01 15:59:59, 0] lib/util.c:smb_panic2(1576)
  PANIC: Could not generate a machine SID
  
[2006/07/01 15:59:59, 0] lib/util.c:smb_panic2(1584)
  BACKTRACE: 7 stack frames:
   #0 smbd(smb_panic2+0x8a) [0xe1b81a]
   #1 smbd(smb_panic+0x19) [0xe1ba79]
   #2 smbd(get_global_sam_sid+0x1a7) [0xdc33f7]
   #3 smbd(init_guest_info+0x7b) [0xe62b3b]
   #4 smbd(main+0x505) [0xec1bf5]
   #5 /lib/libc.so.6(__libc_start_main+0xdc) [0x85a7e4]
   #6 smbd [0xc542f1]
[2006/07/01 16:00:17, 0] passdb/secrets.c:secrets_init(67)
  Failed to open /etc/samba/secrets.tdb
[2006/07/01 16:00:17, 0] passdb/secrets.c:secrets_init(67)
  Failed to open /etc/samba/secrets.tdb
[2006/07/01 16:00:17, 0] passdb/secrets.c:secrets_init(67)
  Failed to open /etc/samba/secrets.tdb
[2006/07/01 16:00:17, 0] passdb/machine_sid.c:pdb_generate_sam_sid(163)
  pdb_generate_sam_sid: Failed to store generated machine SID.
[2006/07/01 16:00:17, 0] lib/util.c:smb_panic2(1566)
  smb_panic(): calling panic action [/usr/share/samba/panic-action 2434]
[2006/07/01 16:00:17, 0] lib/util.c:smb_panic2(1574)
  smb_panic(): action returned status 127
[2006/07/01 16:00:17, 0] lib/util.c:smb_panic2(1576)
  PANIC: Could not generate a machine SID
  
[2006/07/01 16:00:17, 0] lib/util.c:smb_panic2(1584)
  BACKTRACE: 7 stack frames:
   #0 smbd(smb_panic2+0x8a) [0x87b81a]
   #1 smbd(smb_panic+0x19) [0x87ba79]
   #2 smbd(get_global_sam_sid+0x1a7) [0x8233f7]
   #3 smbd(init_guest_info+0x7b) [0x8c2b3b]
   #4 smbd(main+0x505) [0x921bf5]
   #5 /lib/libc.so.6(__libc_start_main+0xdc) [0xb937e4]
   #6 smbd [0x6b42f1]
 
Old 07-02-2006, 05:10 PM   #2
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
I think I seen this one before where SELinux has to be disabled. Here is a quote off Fedora's website on how to do this :

Quote:
Q:

How do I enable/disable SELinux protection on specific daemons under the targeted policy?
A:

Use system-config-securitylevel to control the Boolean values of specific daemons. For example, if you find that you need to disable SELinux for Apache to run correctly in your environment, you can disable the value in system-config-securitylevel. This turns off the transition to the policy defined in apache.te, letting httpd remain under regular Linux security.
As you can see the example was for apache, but of course you'll be looking for samba.

I have a couple fully functional samba servers running in schools with FC5 as a PDC. I know at install time SELinux was chosen to be disabled, and there hasn't been a problem on these boxes.

So try that first and see if there is any luck with either killing SELinux completely or just do it for the particular samba service like documented above.
 
Old 07-02-2006, 05:13 PM   #3
Red Squirrel
Senior Member
 
Registered: Dec 2003
Distribution: Kubuntu 20.04 on workstation, CentOS 6.x on servers
Posts: 1,206

Original Poster
Rep: Reputation: 49
It shows up as disabled in system-config-securitylevel but is there perhaps somewhere else I can check?

I'm getting a flood of access denied errors in dovecot as well (though from the front end view, everything is working, reading, deleting mail etc) so I would not be suprised if selinux is causing all the issues I'm having right now, if its even installed and running... I hope it will be as easy as disabling it.

Last edited by Red Squirrel; 07-02-2006 at 05:14 PM.
 
Old 07-02-2006, 05:23 PM   #4
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
Here is the FAQ for SELinux with disabling uninstalling, etc ...

You'll know after goin through that if its running or installed. Does the /etc/samba/secrets.tdb file exist ? What are its permissions. If it does exist, did you try deleting (moving) it and restarting samba and see if it autocreates it ?
 
Old 07-02-2006, 05:40 PM   #5
Red Squirrel
Senior Member
 
Registered: Dec 2003
Distribution: Kubuntu 20.04 on workstation, CentOS 6.x on servers
Posts: 1,206

Original Poster
Rep: Reputation: 49
Yeah it existed and I renamed it and it did create a new one. The permissions are -rwx------ (700?)

There's actually 2 shares that "work" they prompt for a password instead, but if I enter it, I just get the "conflicts with existing credentials" deal.
 
Old 07-20-2006, 06:18 PM   #6
programmer4hire
LQ Newbie
 
Registered: Jul 2006
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by Red Squirrel
Yeah it existed and I renamed it and it did create a new one. The permissions are -rwx------ (700?)

There's actually 2 shares that "work" they prompt for a password instead, but if I enter it, I just get the "conflicts with existing credentials" deal.
I know that this post is a little old but since I had a similar problem I thought I would post a reply just in case some one like me is looking for a possiable solution.

I updated my fc5 server yesterday only to discover that my public share was no longer working. I was still able to access the home shares but not the public which should be accessable to all users configured on the server. After doing the usual verifications cheking the smb.conf file. reentering user passwords, checking file permissions and even disabling SELinux. Nothing worked. I noticed that there was a smb.conf.rpmnew file in the /etc/samba directory. I copied my existing (used to work just fine) smb.conf to a backup file. I then copied the smb.conf.rpmnew to smb.conf and edited the new conf file for my server. Saved the file and restarted the smb services. Poof it now works.

Can't say why this worked must be something in the old conf file samba did not like although testparm did not complain about anything and it worked just fine before the upgrade.
 
Old 07-20-2006, 10:07 PM   #7
Red Squirrel
Senior Member
 
Registered: Dec 2003
Distribution: Kubuntu 20.04 on workstation, CentOS 6.x on servers
Posts: 1,206

Original Poster
Rep: Reputation: 49
Oh I should have updated this thread. This is what fixed my issue:

http://www.iceteks.com/forums/show.php/showtopic/4420


Basically just disabling se linux wont do, you need to add the line in the actual kernel argument.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
tightVnc and FC5's vncviewer MRMadhav Fedora 1 06-18-2006 10:35 AM
XFree86 on FC5 => FC5's GUI screwd aditya1 Fedora 2 04-09-2006 06:28 AM
Win->Samba works, Samba->Win does'nt work outburst Linux - Networking 2 10-30-2003 08:31 AM
still can't get samba to work... Tyir Linux - Networking 3 10-17-2003 02:48 PM
Help I cant Get Samba to Work sdiprose2002 Mandriva 1 10-16-2003 11:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration