LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-30-2003, 01:12 PM   #1
tarballed
Member
 
Registered: Jun 2002
Distribution: RH, FC, FreeBSD,OpenBSD
Posts: 326

Rep: Reputation: 30
Samba: How to find out what is compiled


Morning everyone.

I have a question on samba, and how to find out what options are installed.

I'm running RH 8.0 with samba 2.2.7. The samba packages were installed via up2date.

My question is, how do I find out what options were configured upon installation.

Im trying to compare two machines and I need to find out what options were compiled upon install of these RPMs.

Anyone know how to find this out? I really need to figure it out.

Thanks.

Tarballed
 
Old 05-30-2003, 01:30 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Sorry - I don't think you can. The most info you can get is probably:
rpm -qi samba

Having problems with the new PDC?
 
Old 05-30-2003, 01:48 PM   #3
tarballed
Member
 
Registered: Jun 2002
Distribution: RH, FC, FreeBSD,OpenBSD
Posts: 326

Original Poster
Rep: Reputation: 30
hey david_ross.

For the most part, i've got everything up and running. The only problem im having now is setting up our users software to map to the PDC server.

Here is a bit more information:

Well, i've finally fixed a number of problems that I was having with my samba/LDAP PDC. Now, its just a matter of setting up some of our users software so they can access the data on the server. I will try and explain this issue as best as I can without being to wordy.

We use a program called point. Point holds files in multiple directories on the network server. For our instance, it is holding data in directories below /home/point (/home/point/pntdata, /home/point/leads and so forth).

The way point works is that each client has a local version of the software installed on their computer. The software is then setup to point to where the data is being held. In this instance, I would setup the software to point to the samba PDC and into the /home/point folders. (Which ever ones I needed to specifically point to.) This is done with a little tool that the program comes with. In a nutshell, it's almost like mapping a network drive to a directory on the server for the program.

Now, where it gets interesting and confusing is that it wont actually let me save the settings. Meaning, I can load up the utility to set the network paths, browse to the directory (/home/point/pntdata) have it all set, but when I click on OK, it does not save it. I've checked ownership, permissions, my smb.conf, everything I can think of, but it will not let me map the network path.


smb.conf:

[Point]
comment = Point Program
path = /home/point
read only = no
writable = yes
browseable = yes
create mode = 660
directory mode = 770
admin users = @domadm
valid uisers = @cm

/home/

drwxrwx--- 51 root cm 4096 May 29 15:12 point

I have made sure that the test user is in fact in the cm group. (The permissions, owner and group are the same down the following directories.)

The only other bit of information I can provide is some info from my logs:

[2003/05/29 17:37:25, 2] smbd/open.cpen_file(243)
bionic opened file PNTDATA/FOLDER.INI read=Yes write=No (numopen=1)
[2003/05/29 17:37:25, 2] smbd/open.cpen_file(243)
bionic opened file PNTDATA/FOLDER.SEC read=Yes write=No (numopen=2)
[2003/05/29 17:37:25, 2] smbd/close.c:close_normal_file(227)
bionic closed file PNTDATA/FOLDER.SEC (numopen=1)
[2003/05/29 17:37:36, 2] smbd/close.c:close_normal_file(227)
bionic closed file PNTDATA/FOLDER.INI (numopen=0)
[2003/05/29 17:38:42, 2] lib/access.c:check_access(327)
Allowed connection from (192.168.1.220)
[2003/05/29 17:38:46, 2] lib/access.c:check_access(327)
Allowed connection from (192.168.1.220)
[2003/05/29 17:38:51, 2] smbd/open.cpen_file(243)

PNTDATA is located in /home/point/PNTDATA

Not sure if this can help, but thought i'd put it in here.

One quick note: About 1 1/2 months ago, I was doing some testing with our new point software on another samba server. This one worked fine and allowed me to map the drives with problems at all. I pretty much made the owner and group nobody.nobody with 777 permissions. I tried this on my current setup but no luck.

Any thoughts?

Tarballed

Last edited by tarballed; 05-30-2003 at 01:50 PM.
 
Old 05-30-2003, 01:53 PM   #4
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
What about:

rpm -qR samba

Looking for something like that?

<EDIT>
Actually, now that I think about it, thats no good. Try like:

rpm -qs samba

There are a lot of querying options available I'm just not sure which one you want.
</EDIT>

Last edited by Crashed_Again; 05-30-2003 at 01:57 PM.
 
Old 05-30-2003, 01:59 PM   #5
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Can you map the share to a drive in windows explorer and create a file on the drive OK?
 
Old 05-30-2003, 02:00 PM   #6
tarballed
Member
 
Registered: Jun 2002
Distribution: RH, FC, FreeBSD,OpenBSD
Posts: 326

Original Poster
Rep: Reputation: 30
Quote:
Can you map the share to a drive in windows explorer and create a file on the drive OK?
I can map the /home/point directory to a drive as well as create a file on the drive...

It is very very weird. Im clueless as to what it could be.

Tarballed
 
Old 05-30-2003, 02:45 PM   #7
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
My guess is that the file is opened by the program you are using and kept open (bad programming) even when the file is trying to be written. In windows this isn't a problem but in linux it is trying to prevent you from over writing a file.

Try disabling oplocks for those files - put this in the Point share:
oplocks = False
level2oplocks = False

then restart samba and try again.

If that works you can do it on a per file basis if you prefer:
veto oplock files = /FOLDER.INI/FOLDER.SEC/
 
Old 05-30-2003, 02:58 PM   #8
tarballed
Member
 
Registered: Jun 2002
Distribution: RH, FC, FreeBSD,OpenBSD
Posts: 326

Original Poster
Rep: Reputation: 30
Hmm....I put that in and still no luck.

I have been doing some brainstorming, trying to think of all the things it could be.

Here are a few things I came up with:

When I originally tested the program on just a normal linux machine running samba, it worked ok. Nothing fancy was done on the Linux server. It was setup in a workgroup network.

The current test setup is in a Domain network. I'm not sure if the program requires additional setting up of things or what.

I am going to call them on Monday to find out just exactly how their program works...

I've tried everything and I cannot figure it out. I even set it up with map to guest = bad user

I can browse to it, create files in it, delete, modify etc.

But when I try to setup the network paths in the program, that is where it does not work...

Anything else I can do to rule out Samba and pretty much narrow it down to the software?

One other thing: I do have ldap running on the PDC. Possible that LDAP is the problem? I dont see why it would be.

Thanks.
Tarballed
 
Old 05-30-2003, 03:09 PM   #9
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
How about creating a FOLDER.INI file (containing anything you want) and just before you hit the save settings/ok button on th Point program you copy the file manually instead.
 
Old 05-30-2003, 03:16 PM   #10
tarballed
Member
 
Registered: Jun 2002
Distribution: RH, FC, FreeBSD,OpenBSD
Posts: 326

Original Poster
Rep: Reputation: 30
I'm not sure I fully follow you.

Are you saying create a folder called FOLDER.INI on the samba server?

And im not sure about the second part...when you save in the program, it just is an OK button, nothing else. You just havigate, select and click ok and it logs out of the program.

Tarballed
 
Old 05-30-2003, 04:16 PM   #11
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
1) get to the point where you click ok (but don't click OK)
2) save a file called FOLDER.INI (using notepad etc) and try to save it over the one that exists on the server.

Remember to make a backup of the server vserion first.
 
Old 06-02-2003, 01:33 PM   #12
tarballed
Member
 
Registered: Jun 2002
Distribution: RH, FC, FreeBSD,OpenBSD
Posts: 326

Original Poster
Rep: Reputation: 30
I figured out the problem. The problem is directly related to the software...

I can post what I found through my testing if your interested, but it is due to the program itself...

In a nutshell, it does not seem to want to work in a domain type environment...

Tarballed
 
  


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
how to find out if a module has been compiled in my kernel? kpachopoulos Linux - General 2 09-17-2005 04:58 PM
find what are compiled in alaios Linux - General 2 05-28-2004 04:37 AM
Compiled en installed new Glib but Pango won't find it Haiyadragon Linux - Newbie 1 04-03-2004 08:08 AM
couldn't find the kernel version the module was compiled for famewolf Linux - Software 0 03-21-2004 09:52 PM
Couldn't find the kernel version the module was compiled for iannou Linux - General 2 06-27-2003 08:00 AM


All times are GMT -5. The time now is 08:23 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration