![]() |
|
FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below. |
![]() |
|
Thread Tools | Display Modes |
|
|||
![]()
Hello all,
I have been having some "fun" with NFS and when that didn't work I resorted to my "ten minute install"-Samba. Guess what? It's been more like three hours and counting.. Anyhow, I just deinstall cleaned the port and re compiled it again. So, without any configuration Samba freezes on smbd. So Ctrl+C it and proceed to the logs Code:
[2008/05/11 17:40:13, 0] smbd/server.c:main(944) smbd version 3.0.28a started. Copyright Andrew Tridgell and the Samba Team 1992-2008 Code:
workgroup = MSHOME server string = Samba Server hosts allow = 192.168.1. 192.168.2. 127. dns proxy = no [homes] comment = Home Directories browseable = no writable = yes I decide to restart it and see if it won't hang/produce different errors in the log. The result: Same message "it started" Code:
# -- sysinstall generated deltas -- # Sat May 10 17:32:11 2008 # Created: Sat May 10 17:32:11 2008 # Enable network daemons for user convenience. # Please make all changes to this file, not to /etc/defaults/rc.conf. # This file now contains just the overrides from /etc/defaults/rc.conf. #hostname="webfold.doverosx.com" ifconfig_dc0="DHCP" keymap="us.iso" linux_enable="YES" sshd_enable="YES" apache22_enable="YES" samba_enable="YES" # http://bsdguides.org/guides/freebsd/security/harden.php sendmail_enable="NO" kern_securelevel_enable="YES" kern_securelevel="2" clear_tmp_enable="YES" syslogd_flags="-sso" icmp_drop_redirect="YES" icmp_log_redirect="YES" update_motd="NO" ![]() TIA, PS, If you're going to BSDCan I'm volunteering so scope me out and maybe we can both work this out-I pay in BEvERages. |
|
|||
![]()
I never had problem with samba on FreeBSD.
Here are the two links which are more then enough for basic samba installation and configuration Samba Installation SAmba Configuration hope it helps. ![]() |
|
|||
![]() Quote:
Thanks for the reply, but the issue was Apache not starting, then Samba not starting. Why? HOSTS FILE. Apache wasn't starting because it couldn't resolve my host's IPv4 address with the current hosts file configuration. Anyhow, fixing up my hostname configuration in /etc/rc.conf and interestingly enough SAMBA started! I shall slap my wrists and expect some wrist slapping this week possibly from the man himself (Dan). Phew, don't you just love fixing your own issues ![]() |
|
|||
![]()
may i slap you too ?
|
|
|||
![]()
*cough* well, my hosts went to poop which is good because I fixed that and now apache is running FIIIINE, but Samba is not working anymore and I hadn't changed ANYTHING! ARGHH!
I am going to check those sites Rex...oh and Corey you can slap me if you help me with this one now lol. |
|
|||
![]()
1. Is anyone else running samba on FreeBSD7.0?
2. Does anyone else use samba_enable or smbd_enable in their /etc/rc.conf I have noticed that Samba will NOT start when launched during bootup. However, it starts fine if I disable Samba from bootup and launch manually. That makes me think this situation is a little bit beyond me and *gasp* may be a bug. Or, user error on my part....I'm going to reinstall it once more ensuring that I delete logs and temp files again. What say you folks? |
|
|||
![]()
how are you launching it ?
If you use the rc script it will need a variable in rc.conf. ... to find out the variable run /usr/local/etc/rc.d/<samba_script> rcvar |
|
||||
![]()
yes and it works just fine.
Code:
% uname -a FreeBSD seth 7.0-RELEASE FreeBSD 7.0-RELEASE #3: Thu Apr 3 14:20:12 EEST 2008 root@seth:/usr/obj/usr/src/sys/SETH i386 Code:
% smbcontrol -V Version 3.0.28 Quote:
Code:
% grep samba /etc/rc.conf samba_enable="YES" Quote:
all the best, v
__________________
Stop! think! ... the problem is somewhere between the monitor and chair... "First they ignore you, then they laugh at you, then they fight you, then you win." Gandhi links: spreadbsd syk Last edited by mtx; 12th May 2008 at 07:17 AM. |
|
|||
![]()
Samba appears to be launching just fine now. I just need to get the shares working..I wonder if I should start a new thread for that.
Thanks for the help guys ![]() |
|
|||
![]()
mmm weird, I updated samba today and now I'm getting the same type of problem.
Can you please let me know how you got samba working. Thanks hamba |
|
|||
![]()
This is what I've done.
cd /usr/ports/net/samba3;make deinstall clean make deinstall will recommend deleting certain files..I did (from what I remember), rm /var/log/log.smbd;rm /var/log/log.nmbd I then deleted all smb.confs (make don't follow my exact command as your system may differ from mine and have files called smb4 or something), rm /usr/local/etc/smb* Then I restarted the system, updated ports (nothing pertaining to smb so far), cd /usr/ports/net/samba3;make install clean. Corey, I am using smbd_enable="YES" right now, do I need to set the variable in rc.conf? Anyhow, I'm going to begin editing smb.conf to share some files-I forget how to make a public share, so we'll see how it goes ![]() Thanks all! |
|
|||
![]()
I found the problem
Before the upgrade I never had to start cups, we don't use a printer on the server. I started cups and then samba and bang it all works The cups config is a standard install with no changes to the conf file. So now the office is a happy place again |
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Named not starting on NetBSD boot | Antimidget | NetBSD General | 2 | 27th August 2009 10:57 PM |
startx not starting correctly - XOrg 7.4_2 | Mantazz | FreeBSD Ports and Packages | 1 | 8th July 2009 04:17 PM |
ACL, Samba ACL, FTP acl | da1 | FreeBSD General | 3 | 3rd April 2009 10:14 PM |
Daemon Process not starting on boot | map7 | FreeBSD General | 4 | 11th September 2008 04:24 PM |