Samba error - "Segmentation fault"

JD50

Lifer
Sep 4, 2005
11,888
2,788
136
I'm trying to configure samba for the first time and I'm running into this error when I use the "smbtree" command. I'm running CentOS5 on VMware workstation 6 and I'm trying to connect to my host OS, vista home premium. When I go into the "network" window in vista I can see my linux box, and I can even get to the linux share that I created. My problem is getting to my windows box from the linux box. Can anyone help me out here?
 

Robor

Elite Member
Oct 9, 1999
16,979
0
76
Does your Windows machine login have a username/password on the Linux VM? I don't remember that error but I know when I configure Samba I add the username I want to allow to the Linux box then from the command line do an 'smbpasswd -a username' and give the password I used for the user I added

**Note/Warning: I'm not sure this is the correct way but it works for me. ;)
 

xSauronx

Lifer
Jul 14, 2000
19,582
4
81
Originally posted by: Robor
Does your Windows machine login have a username/password on the Linux VM? I don't remember that error but I know when I configure Samba I add the username I want to allow to the Linux box then from the command line do an 'smbpasswd -a username' and give the password I used for the user I added

**Note/Warning: I'm not sure this is the correct way but it works for me. ;)

his problem is with browsing the windows share via the smbtree command from linux
not browsing the linux share from windows

i also have CentOS 5 in a vmware virtual machine

when i run smbtree i get no errors (and i do get the expected output from my LAN), are you using any switches on it or is it simply not working *at all*?
 

JD50

Lifer
Sep 4, 2005
11,888
2,788
136
Nope, no switches and its not working at all. I can't even get in through the GUI in Gnome. When I click on the "Windows network" icon it says "The folder contents could not be displayed". And yes I have set the correct username and password in the smbusers and smbpasswd files.

I'm guessing this has something to do with the installation of Samba, or some settings that I need to change. When I use other vmware images that I downloaded from the virtual appliance store all of my shares work fine, windows to linux and linux to windows. I just wanted to configure everything myself with a brand new CentOS ISO, and a new vmware image.

Its probably just a total noob mistake. This is the first time I've attempted to join a linux box to a windows workgroup or access shares. I can't ping the windows box from the linux box by hostname, only by IP, if that helps at all. Like I said, the preconfigured vmware images work fine, its just this one that I'm trying to do by myself. I'm also trying to stay away from the GUI, I'd like to do it all from the terminal.
 

xSauronx

Lifer
Jul 14, 2000
19,582
4
81
the image im using had smbtree installed already; im not using a gui so i cant see if anything else works or not as far as thats concerned.

have you tried reinstalling the samba packages?

redhat just released an update to 5.0 so perhaps cent will have everything soon and that will help *shrug*?
 

Netopia

Diamond Member
Oct 9, 1999
4,793
4
81
I'm sorry I don't have an answer for this problem, but thanks to the OP for giving me a new (previously unknown) command!

THANKS!

Joe
 

JD50

Lifer
Sep 4, 2005
11,888
2,788
136
Originally posted by: xSauronx
the image im using had smbtree installed already; im not using a gui so i cant see if anything else works or not as far as thats concerned.

have you tried reinstalling the samba packages?

redhat just released an update to 5.0 so perhaps cent will have everything soon and that will help *shrug*?

I havent tried reinstalling it, but I think I am going to. I started with a fresh Fedora core 5 image, went into add/remove software in the GUI, then added the windows file sharing box, which installed Samba. Everything works fine. But, like I said, I'm trying to do this without using the GUI.

So, I'm guessing that I just botched the Samba install when I tried to do it through the command line on my CentOS image. I'll have to find a good tutorial on installing Samba through the command line. I'll also have to figure out how to uninstall it through the command line. Thanks for all your help everyone.
 

xSauronx

Lifer
Jul 14, 2000
19,582
4
81
Originally posted by: JD50
Originally posted by: xSauronx
the image im using had smbtree installed already; im not using a gui so i cant see if anything else works or not as far as thats concerned.

have you tried reinstalling the samba packages?

redhat just released an update to 5.0 so perhaps cent will have everything soon and that will help *shrug*?

I havent tried reinstalling it, but I think I am going to. I started with a fresh Fedora core 5 image, went into add/remove software in the GUI, then added the windows file sharing box, which installed Samba. Everything works fine. But, like I said, I'm trying to do this without using the GUI.

So, I'm guessing that I just botched the Samba install when I tried to do it through the command line on my CentOS image. I'll have to find a good tutorial on installing Samba through the command line. I'll also have to figure out how to uninstall it through the command line. Thanks for all your help everyone.

on centos 5 you should do this to remove:

yum remove samba samba-common samba-client

then

yum -y install samba samba-common samba-client

the -y switch assumes "yes" to anything that may be asked during this time.

that *should* be all you need to do just to remove and install it.

really if smbtree is the only thing with a problem, its part of the samba package and you can just start with that and see if it works once its installed again.
 

JD50

Lifer
Sep 4, 2005
11,888
2,788
136
Originally posted by: xSauronx
Originally posted by: JD50
Originally posted by: xSauronx
the image im using had smbtree installed already; im not using a gui so i cant see if anything else works or not as far as thats concerned.

have you tried reinstalling the samba packages?

redhat just released an update to 5.0 so perhaps cent will have everything soon and that will help *shrug*?

I havent tried reinstalling it, but I think I am going to. I started with a fresh Fedora core 5 image, went into add/remove software in the GUI, then added the windows file sharing box, which installed Samba. Everything works fine. But, like I said, I'm trying to do this without using the GUI.

So, I'm guessing that I just botched the Samba install when I tried to do it through the command line on my CentOS image. I'll have to find a good tutorial on installing Samba through the command line. I'll also have to figure out how to uninstall it through the command line. Thanks for all your help everyone.

on centos 5 you should do this to remove:

yum remove samba samba-common samba-client

then

yum -y install samba samba-common samba-client

the -y switch assumes "yes" to anything that may be asked during this time.

that *should* be all you need to do just to remove and install it.

really if smbtree is the only thing with a problem, its part of the samba package and you can just start with that and see if it works once its installed again.

Thanks for your help! I did the above, and now I can mount linux shares just fine. I have two CentOS images running in VMware, and I have no problem mounting the shares. However, I still cannot mount a windows share. It must have something to do with my windows configuration. Its Vista home premium 64 bit, if that makes any difference.

edit - and I still get the "segmentation fault" error when I use the "smbtree" command, but the shares work so I'm not too worried about it.
 

JD50

Lifer
Sep 4, 2005
11,888
2,788
136
Ok, I have all of my shares working, windows and linux. I still get the segmentation fault error but I guess its no big deal since everything works. Although, if anyone knows what it is please post, I'm still curious as to why its doing that. Thanks everyone for your help.