help with samba install

Where Penguins and Daemons chill together in the warmth of the Sun.

Moderators: SecretSquirrel, notfred

help with samba install

Postposted on Mon Dec 22, 2008 9:27 pm

I simply ran make install, and after a bit of churning and bubbling, got the following:

Code: Select all
===>   samba-3.0.28,1 depends on file: /usr/local/bin/autoconf-2.61 - found
===>   samba-3.0.28,1 depends on shared library: execinfo.1 - found
===>   samba-3.0.28,1 depends on shared library: cups.2 - not found
===>    Verifying install for cups.2 in /usr/ports/print/cups-base
===>  Patching for cups-base-1.3.5_2
===>  Applying FreeBSD patches for cups-base-1.3.5_2
=> Patch patch-CVE-2007-4351 failed to apply cleanly.
*** Error code 1

Stop in /usr/ports/print/cups-base.
*** Error code 1

Stop in /usr/ports/net/samba3.
*** Error code 1

Stop in /usr/ports/net/samba3.


Any help?
flip-mode
Gerbil Khan
Silver subscriber
 
 
Posts: 9096
Joined: Thu May 08, 2003 12:42 pm
Location: Cincinnati, OH

Re: help with samba install

Postposted on Tue Dec 23, 2008 3:29 am

I am by no means a FreeBSD expert... the last time I touched it was a number of years ago. But perhaps something in this mess of Google results may help?

I guess I am somewhat spoiled... modern Linux distros (Fedora, Ubuntu, etc.) provide pre-compiled Samba packages, either as part of the base install, or in their official repositories.
(this space intentionally left blank)
just brew it!
Administrator
Gold subscriber
 
 
Posts: 37950
Joined: Tue Aug 20, 2002 10:51 pm
Location: Somewhere, having a beer

Re: help with samba install

Postposted on Tue Dec 23, 2008 8:06 am

just brew it! wrote:I am by no means a FreeBSD expert... the last time I touched it was a number of years ago. But perhaps something in this mess of Google results may help?

I guess I am somewhat spoiled... modern Linux distros (Fedora, Ubuntu, etc.) provide pre-compiled Samba packages, either as part of the base install, or in their official repositories.

So does FreeBSD, for that matter. Flip's just not using them.

Flip: your ports tree is not up to date. That's probably/possibly why you're getting errors, and if it isn't the versions that you are trying to build have long since been replaced anyway. Read the handbook on updating your ports tree, and consider installing and utilizing portupgrade. Also, consider using binary packages where appropriate, either via pkg_add (-r) or portupgrade -P(P).
...
mattsteg
Gerbil God
 
Posts: 15761
Joined: Thu Dec 27, 2001 7:00 pm
Location: Applauding the new/old variable width forums

Re: help with samba install

Postposted on Tue Dec 23, 2008 8:15 am

I see. I figured I could use the ports straight off of the install iso without any trouble, even if they were out of date. It'd be nice to bite off one thing at a time instead of ten....

I'll try the package system first and put portupgrade on my list.

Thanks matt.
flip-mode
Gerbil Khan
Silver subscriber
 
 
Posts: 9096
Joined: Thu May 08, 2003 12:42 pm
Location: Cincinnati, OH

Re: help with samba install

Postposted on Tue Dec 23, 2008 9:13 am

flip-mode wrote:I see. I figured I could use the ports straight off of the install iso without any trouble, even if they were out of date. It'd be nice to bite off one thing at a time instead of ten....

I'll try the package system first and put portupgrade on my list.

Thanks matt.

You can, but sometimes things are out of date enough that patches or sources might be unavailable, or something just gets out of wack.

You can just run "portsnap fetch extract" to bring your ports collection up to date, and then sort out the details on what that accomplished and how to keep updating it later.

Portupgrade wouldn't be the worst thing to get sooner rather than later - it makes installing and particularly upgrading installed applications a fair bit more convenient.
...
mattsteg
Gerbil God
 
Posts: 15761
Joined: Thu Dec 27, 2001 7:00 pm
Location: Applauding the new/old variable width forums

Re: help with samba install

Postposted on Tue Dec 23, 2008 9:36 am

Very good. Thank you.
flip-mode
Gerbil Khan
Silver subscriber
 
 
Posts: 9096
Joined: Thu May 08, 2003 12:42 pm
Location: Cincinnati, OH

Re: help with samba install

Postposted on Sun Dec 28, 2008 2:51 pm

portsnap worked great - thanks mattsteg. I am looking through the smaba man pages now. For now, all I want to do is set up a share that windows computers can read from and write to.
flip-mode
Gerbil Khan
Silver subscriber
 
 
Posts: 9096
Joined: Thu May 08, 2003 12:42 pm
Location: Cincinnati, OH

Re: help with samba install

Postposted on Sun Dec 28, 2008 10:21 pm

The Samba official documentation is really thorough and gives example configurations for different use cases (including basic ones). Check out samba.org's Samba HOWTO and the Samba Guide.
bitvector
Grand Gerbil Poohbah
 
Posts: 3234
Joined: Wed Jun 22, 2005 4:39 pm
Location: Mountain View, CA

Re: help with samba install

Postposted on Mon Dec 29, 2008 10:05 am

BV, thanks, I have been looking through the How To guide. I've tried a few things but so far I have failed :cry: Tis' making me feel stoopid.
flip-mode
Gerbil Khan
Silver subscriber
 
 
Posts: 9096
Joined: Thu May 08, 2003 12:42 pm
Location: Cincinnati, OH

Re: help with samba install

Postposted on Mon Dec 29, 2008 10:12 am

flip-mode wrote:BV, thanks, I have been looking through the How To guide. I've tried a few things but so far I have failed :cry: Tis' making me feel stoopid.


Have you tried using SWAT? If you've got it installed, you can access it at http://localhost:901, and it can make configuring Samba a bit easier.

If you like, I've got a middlin'-complexity smb.conf for my server at work. It does basic fileshare duty with Active Directory integration and per-group permissions. I can post it with the serial numbers filed off. :wink:
Think for yourself, schmuck!
i5-2500K@4.3|Asus P8P67-LE|8GB DDR3-1600|Powercolor R7850 2G|1.5TB 7200.11|1988 Model M|Saitek X-45 & P880|Logitech MX 518|Dell 2209WA|Sennheiser PC151|Asus Xonar DX
bthylafh
Grand Gerbil Poohbah
 
Posts: 3219
Joined: Mon Dec 29, 2003 11:55 pm
Location: Southwest Missouri, USA

Re: help with samba install

Postposted on Mon Dec 29, 2008 10:21 am

well, I'd love to try swat, but I don't have a GUI up and running, so getting to it from localhost cannot happen until then, right?

I've tried to http in from my windows desktop, but that did not work either. I am in the frustrating position of needing to do five other things in order to do the one thing I want to do :lol: which of course is how one ends up learning how to use *nix :P

As for your conf file, I certainly would not mind if you posted it, but I still need to get a better understanding of the conf file.

Basically, all I want to do is create a share that is accessible to anyone in the WORKGROUP, and at this point I am not worried about restricting the share in any way with a password or whatnot.
flip-mode
Gerbil Khan
Silver subscriber
 
 
Posts: 9096
Joined: Thu May 08, 2003 12:42 pm
Location: Cincinnati, OH

Re: help with samba install

Postposted on Mon Dec 29, 2008 1:32 pm

Actually, for what you're wanting, this may be more helpful than my configuration:

http://www.centos.org/docs/5/html/Deplo ... rvers.html
Think for yourself, schmuck!
i5-2500K@4.3|Asus P8P67-LE|8GB DDR3-1600|Powercolor R7850 2G|1.5TB 7200.11|1988 Model M|Saitek X-45 & P880|Logitech MX 518|Dell 2209WA|Sennheiser PC151|Asus Xonar DX
bthylafh
Grand Gerbil Poohbah
 
Posts: 3219
Joined: Mon Dec 29, 2003 11:55 pm
Location: Southwest Missouri, USA

Re: help with samba install

Postposted on Mon Dec 29, 2008 3:13 pm

that is a great link. thank you!
flip-mode
Gerbil Khan
Silver subscriber
 
 
Posts: 9096
Joined: Thu May 08, 2003 12:42 pm
Location: Cincinnati, OH

Re: help with samba install

Postposted on Wed Dec 31, 2008 2:25 pm

Good news, progress has been made! I have created a samba share that can now actually be seen from a Windows computer. Unfortunately, I get access denied when I try to browse the share.

I set up my smb.conf according to section 19.6.1.1 here: http://www.centos.org/docs/5/html/Deplo ... rvers.html

Then I modified it to my own liking and the result is:
Code: Select all
[global]
workgroup = NIX
netbios name = NIX0
security = share
[anon-rw]
comment = data
path = /root/smbshare/anon-rw
force user = nixanon
force group = users
read only = No
guest only = Yes


Vista tells me "the user name could not be found"

Any thoughts?
flip-mode
Gerbil Khan
Silver subscriber
 
 
Posts: 9096
Joined: Thu May 08, 2003 12:42 pm
Location: Cincinnati, OH

Re: help with samba install

Postposted on Wed Dec 31, 2008 2:57 pm

flip-mode wrote:Vista tells me "the user name could not be found"

Any thoughts?


Try creating a FreeBSD user account with the exact same user/pass as the Vista account you log in with, and set smb.conf to force that username. See if that works.
Think for yourself, schmuck!
i5-2500K@4.3|Asus P8P67-LE|8GB DDR3-1600|Powercolor R7850 2G|1.5TB 7200.11|1988 Model M|Saitek X-45 & P880|Logitech MX 518|Dell 2209WA|Sennheiser PC151|Asus Xonar DX
bthylafh
Grand Gerbil Poohbah
 
Posts: 3219
Joined: Mon Dec 29, 2003 11:55 pm
Location: Southwest Missouri, USA

Re: help with samba install

Postposted on Wed Dec 31, 2008 3:05 pm

Hmm, now I get "group name could not be found" so I changed it to a group that I belong to on Windows but still get that message.

My Vista machine is part of a domain, so that could be mucking something up?

bthylafh, thanks a lot for all the help you have been giving.
flip-mode
Gerbil Khan
Silver subscriber
 
 
Posts: 9096
Joined: Thu May 08, 2003 12:42 pm
Location: Cincinnati, OH

Re: help with samba install

Postposted on Wed Dec 31, 2008 3:19 pm

I'm a Linux weenie and have done relatively little with *BSD, so I'm a bit in the dark myself here.

Try commenting out that "force group" line.
Think for yourself, schmuck!
i5-2500K@4.3|Asus P8P67-LE|8GB DDR3-1600|Powercolor R7850 2G|1.5TB 7200.11|1988 Model M|Saitek X-45 & P880|Logitech MX 518|Dell 2209WA|Sennheiser PC151|Asus Xonar DX
bthylafh
Grand Gerbil Poohbah
 
Posts: 3219
Joined: Mon Dec 29, 2003 11:55 pm
Location: Southwest Missouri, USA

Re: help with samba install

Postposted on Wed Dec 31, 2008 3:36 pm

WOOT! That did it. I commented out both the user and the group lines. Way cool. Now we're getting beyond mere academic value :P

edit: :sigh: no write permission :x
flip-mode
Gerbil Khan
Silver subscriber
 
 
Posts: 9096
Joined: Thu May 08, 2003 12:42 pm
Location: Cincinnati, OH

Re: help with samba install

Postposted on Wed Dec 31, 2008 5:54 pm

I am not at work any more but a thought came to me on the way home. The directory I shared was

/root/smbshare/anon-rw/

and I am thinking that maybe some of the trouble I am having has to do with the fact that is is a subdir of root or maybe I didn't give the dir the proper permissions. Too bad I didn't think of that earlier.

If I get some time tonight or tomorrow I'll try setting up a share on the BSD machine here at home.
flip-mode
Gerbil Khan
Silver subscriber
 
 
Posts: 9096
Joined: Thu May 08, 2003 12:42 pm
Location: Cincinnati, OH

Re: help with samba install

Postposted on Wed Dec 31, 2008 5:54 pm

Hmm. Un-comment the user/group stuff and add that user to FreeBSD's "users" group? Make sure your Vista userid is in the Vista "Users" group?
Think for yourself, schmuck!
i5-2500K@4.3|Asus P8P67-LE|8GB DDR3-1600|Powercolor R7850 2G|1.5TB 7200.11|1988 Model M|Saitek X-45 & P880|Logitech MX 518|Dell 2209WA|Sennheiser PC151|Asus Xonar DX
bthylafh
Grand Gerbil Poohbah
 
Posts: 3219
Joined: Mon Dec 29, 2003 11:55 pm
Location: Southwest Missouri, USA

Re: help with samba install

Postposted on Wed Dec 31, 2008 5:57 pm

Thanks for the suggestions. You don't think it has anything to do with being a subdir of root? Or maybe I need to check the chmode of the subdir?
flip-mode
Gerbil Khan
Silver subscriber
 
 
Posts: 9096
Joined: Thu May 08, 2003 12:42 pm
Location: Cincinnati, OH

Re: help with samba install

Postposted on Wed Dec 31, 2008 5:58 pm

flip-mode wrote:I am not at work any more but a thought came to me on the way home. The directory I shared was

/root/smbshare/anon-rw/

and I am thinking that maybe some of the trouble I am having has to do with the fact that is is a subdir of root or maybe I didn't give the dir the proper permissions.


Possible. As a work-around you could try "sudo chmod 777 /root/smbshare/anon-rw". Bit of a security problem, but an attacker would have to know the exact path to use.

I have a separate /srv/samba folder myself, with directories broken out in there.
Think for yourself, schmuck!
i5-2500K@4.3|Asus P8P67-LE|8GB DDR3-1600|Powercolor R7850 2G|1.5TB 7200.11|1988 Model M|Saitek X-45 & P880|Logitech MX 518|Dell 2209WA|Sennheiser PC151|Asus Xonar DX
bthylafh
Grand Gerbil Poohbah
 
Posts: 3219
Joined: Mon Dec 29, 2003 11:55 pm
Location: Southwest Missouri, USA

Re: help with samba install

Postposted on Wed Dec 31, 2008 6:00 pm

Shoot, now I wish I was still at work!

I'll try to get a share working here at home. Thanks bthylafh!

(off topic, does your name stand for something? I interpret it as "be thy laugh")
flip-mode
Gerbil Khan
Silver subscriber
 
 
Posts: 9096
Joined: Thu May 08, 2003 12:42 pm
Location: Cincinnati, OH

Re: help with samba install

Postposted on Wed Dec 31, 2008 6:03 pm

flip-mode wrote:(off topic, does your name stand for something? I interpret it as "be thy laugh")


Bastard Thy'la from Hell. Leftover from my Star Trek nerd days -- thy'la is supposedly the Vulcan word for "beloved", and I had discovered the Bastard Operator From Hell stories about that time. I blame my ex-gf. :wink:
Think for yourself, schmuck!
i5-2500K@4.3|Asus P8P67-LE|8GB DDR3-1600|Powercolor R7850 2G|1.5TB 7200.11|1988 Model M|Saitek X-45 & P880|Logitech MX 518|Dell 2209WA|Sennheiser PC151|Asus Xonar DX
bthylafh
Grand Gerbil Poohbah
 
Posts: 3219
Joined: Mon Dec 29, 2003 11:55 pm
Location: Southwest Missouri, USA

Re: help with samba install

Postposted on Fri Jan 02, 2009 1:35 pm

bthylafh wrote:Hmm. Un-comment the user/group stuff and add that user to FreeBSD's "users" group? Make sure your Vista userid is in the Vista "Users" group?


Thy'la, I am back to trouble shooting this SAMBA share. I tried putting mode 777 on the shared directory and it did not do anything. So now I am back to your above statement. Are you saying that I should add my Vista user name to the FreeBSD system? And what did you mean about the Vista "Users" group? I am a little confused.

Can I simply add a "guest" user and a "guest" group to the FreeBSD system?
flip-mode
Gerbil Khan
Silver subscriber
 
 
Posts: 9096
Joined: Thu May 08, 2003 12:42 pm
Location: Cincinnati, OH

Re: help with samba install

Postposted on Fri Jan 02, 2009 3:56 pm

flip-mode wrote:I tried putting mode 777 on the shared directory and it did not do anything. So now I am back to your above statement. Are you saying that I should add my Vista user name to the FreeBSD system? And what did you mean about the Vista "Users" group? I am a little confused.

Can I simply add a "guest" user and a "guest" group to the FreeBSD system?


Bugger. I'm one of those people who troubleshoots by jumping on the machine and bashing on it until it works; remote support isn't my forte.

Could you try this from the official Samba howto? You can probably ignore the WINS server stanza.
http://us3.samba.org/samba/docs/man/Sam ... fDocServer

and see here in the same howto, the section about users being unable to log in:
http://us3.samba.org/samba/docs/man/Sam ... #id2588618
Think for yourself, schmuck!
i5-2500K@4.3|Asus P8P67-LE|8GB DDR3-1600|Powercolor R7850 2G|1.5TB 7200.11|1988 Model M|Saitek X-45 & P880|Logitech MX 518|Dell 2209WA|Sennheiser PC151|Asus Xonar DX
bthylafh
Grand Gerbil Poohbah
 
Posts: 3219
Joined: Mon Dec 29, 2003 11:55 pm
Location: Southwest Missouri, USA

Re: help with samba install

Postposted on Fri Jan 02, 2009 4:24 pm

I'll check them out.
flip-mode
Gerbil Khan
Silver subscriber
 
 
Posts: 9096
Joined: Thu May 08, 2003 12:42 pm
Location: Cincinnati, OH

Re: help with samba install

Postposted on Fri Jan 02, 2009 5:11 pm

Mimicking example 7.1 in your fist link didn't get things working. Darn. It is time for me to go home but I am not going to give up! :x

Thanks bthylafh.
flip-mode
Gerbil Khan
Silver subscriber
 
 
Posts: 9096
Joined: Thu May 08, 2003 12:42 pm
Location: Cincinnati, OH

Re: help with samba install

Postposted on Sat Jan 03, 2009 1:39 pm

OK, I'm going to have to take a break from this and come back to it. A little bit of time. It has to be either a user account thing or a Windows Vista thing, but I don't know. I need to read more of the Samba How-To. It is just so much reading and so little certainty that I am even reading the right stuff.

I am going to move on to X11 for now. After seeing JBI's "task manager" screen shot, I definitely need some GUI love.

bthylafh -- special thanks to you for patiently holding my hand through all of this. I owe you a beer. Next time you are in Cinci....
flip-mode
Gerbil Khan
Silver subscriber
 
 
Posts: 9096
Joined: Thu May 08, 2003 12:42 pm
Location: Cincinnati, OH

Re: help with samba install

Postposted on Sat Jan 03, 2009 7:08 pm

Alright, this is not making sense to me. I just sat down with my laptop and opened a putty session, and then for some reason decided to see if my Samba share would be accessible. It is, and I can write to it.

So, no go from the desktop with Vista 64, but success from the laptop with Vista 32. I may go down and try from the desktop again.

Strange.
flip-mode
Gerbil Khan
Silver subscriber
 
 
Posts: 9096
Joined: Thu May 08, 2003 12:42 pm
Location: Cincinnati, OH

Next

Return to Linux, Unix, and Assorted Madness

Who is online

Users browsing this forum: No registered users and 2 guests