[Samba] Trouble creating RPM

2004-10-07 Thread Ray Anderson
Greetings,

I've download the latest source and am trying to install it on my Mandrake
machine.

I've gotten through the build process (about 12 dozen times) without error,
but it never creates the rpm files.

The command I used is:

rpmbuild -ba --nobuild \
 --without acl \ 
 --without vscan \
 --without ldap \
SPECS/samba.spec 

Everything processes normally, until the script just ends.  No error, no
success, no rpms, nothing in the logs.

-snip of output--
Processing files: samba3-passdb-xml-3.0.7-1.1mdk
Finding  Provides: /usr/lib/rpm/filter.sh ' ' /usr/lib/rpm/find-provides
Using BuildRoot: /home/rsa/rpm/tmp/samba3-3.0.7-root to search libs
Finding  Requires: /usr/lib/rpm/filter.sh ' ' /usr/lib/rpm/find-requires
/home/rsa/rpm/tmp/samba3-3.0.7-root i586
Provides: xml.so
Requires(rpmlib): rpmlib(PayloadFilesHavePrefix) = 4.0-1
rpmlib(CompressedFileNames) = 3.0.4-1
Requires: samba3-server = 3.0.7-1.1mdk libc.so.6 libc.so.6(GLIBC_2.0)
libc.so.6(GLIBC_2.1.3) libm.so.6 libpthread.so.0 libxml2.so.2 libz.so.1
Checking for unpackaged file(s): /usr/lib/rpm/check-files
/home/rsa/rpm/tmp/samba3-3.0.7-root
[EMAIL PROTECTED] rpm]$ 
-snip of output--

Has anyone created RPMS for Mandrake 9.2 using the latest 3.07?

Thanks in advance,
  
-=Ray

Ray Anderson
System Development Manager
916.788.2444 (Office)
916.798.9439 (Mobile)
PRIDE Industries
[EMAIL PROTECTED]
http://www.prideindustries.com

Of course, with the increasing number of aeroplanes one gets increased
opportunities for shooting down one's enemies, but at the same time, the
opportunity increases of being shot down one's-self.
Baron Manfred von Richthofen



-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Unusual permissions problem

2005-06-10 Thread Ray Anderson
Hello,

I have an issue with samba-3.0.10-1.fc3 permissions.

The situation is this:

I have a client that wants one user to have write permission to a directory, 
but a GROUP of users to have read access.  Simple,
right?  First, I set up the directory structure per Linux:

(According to the samba guide, it's more efficient to use sticky bits on the 
directory instead of using the force user clause in the
smb.conf file.)

drwsr-s---   2 tcuser tcgroup 8.0K Jun 10 08:06 timecards

Testing:
Log in as a user who is a member of the tcgroup, can read all files in 
the tree:  Success
Log in as tcuser, can read, write, and delete all files in the tree:  
Success

So I'm feeling pretty good about the Linux permissions.  Now time to create the 
share:


[timecards]
   comment = Timecards
   path = /timecards
   create mask = 0640
   write list = tcuser
   valid users = tcuser, @tcgroup

If I understand correctly, and obviously I don't, the write list and valid 
users lines are redundant, as Samba is supposed to use
the file system permissions.

Now the issue:

I log in (via smbclient) as tcuser:  Success

Put a file into the share:  Success

Rename the file:  Success

Get the file back:  Access Denied.

So this user can put files but cannot read them back.  (!)

The really strange thing is if I set the world read bit to the file, then 
tcuser can read the file just fine, but from a Linux file
permission perspective, that's a really bad thing, right?

Any advice for this?

Many thanks in advance,

-=Ray

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


RE: [Samba] Unusual permissions problem [SOLUTION]

2005-06-10 Thread Ray Anderson
Replying to my own message. 

It turns out the I have samba-vscan-clamav installed, and it WAS running as 
clamav, which of course couldn't read the file.  I have
the access such that vscan failure = access denied, so changed the running user 
to root for the clamav service and life is good.

Thanks,

-=Ray

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On 
 Behalf Of Ray Anderson
 Sent: Friday, June 10, 2005 8:23 AM
 To: samba@lists.samba.org
 Subject: [Samba] Unusual permissions problem
 
 Hello,
 
 I have an issue with samba-3.0.10-1.fc3 permissions.
 
 The situation is this:
 
 I have a client that wants one user to have write permission 
 to a directory, but a GROUP of users to have read access.  Simple,
 right?  First, I set up the directory structure per Linux:
 
 (According to the samba guide, it's more efficient to use 
 sticky bits on the directory instead of using the force user 
 clause in the
 smb.conf file.)
 
 drwsr-s---   2 tcuser tcgroup 8.0K Jun 10 08:06 timecards
 
 Testing:
   Log in as a user who is a member of the tcgroup, can 
 read all files in the tree:  Success
   Log in as tcuser, can read, write, and delete all files 
 in the tree:  Success
 
 So I'm feeling pretty good about the Linux permissions.  Now 
 time to create the share:
 
 
 [timecards]
comment = Timecards
path = /timecards
create mask = 0640
write list = tcuser
valid users = tcuser, @tcgroup
 
 If I understand correctly, and obviously I don't, the write 
 list and valid users lines are redundant, as Samba is supposed to use
 the file system permissions.
 
 Now the issue:
 
 I log in (via smbclient) as tcuser:  Success
 
 Put a file into the share:  Success
 
 Rename the file:  Success
 
 Get the file back:  Access Denied.
 
 So this user can put files but cannot read them back.  (!)
 
 The really strange thing is if I set the world read bit to 
 the file, then tcuser can read the file just fine, but from a 
 Linux file
 permission perspective, that's a really bad thing, right?
 
 Any advice for this?
 
 Many thanks in advance,
 
 -=Ray
 
 -- 
 To unsubscribe from this list go to the following URL and read the
 instructions:  https://lists.samba.org/mailman/listinfo/samba
 

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Problems with oplocks (samba 3.0.24, Kernel 2.6.17)

2007-08-06 Thread Ray Anderson


Helmut Hullen wrote:

Hallo, Beschorner,

Du (Daniel.Beschorner) meintest am 26.07.07:

  

The Linux kernels 2.6.17 - 2.6.17.11 have a bug with kernel oplocks
that hits Samba and shows your symptoms.
A kernel update or kernel oplocks = no may solve it.



Kernel update seems not to help - on a school in the neighbourhood my  
collegue had the oplock problems with Samba 3.0.22 and kernel  
2.6.21.5. Tomorrow we will know wether oplocks = no does help.



Viele Gruesse!
Helmut
  


Can anyone confirm if this bug existed in kernel 2.6.15-1.2054?  I'm 
having some weird slowness on a GB lan that doesn't exist with 
rsync/ssh, but does exist with an occasional 1-2 second delay with users 
retrieving files.


Thanks,
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Samba 3.0.26a Available for Download

2007-09-11 Thread Ray Anderson



Ed Kasky wrote:

At 05:24 AM Tuesday, 9/11/2007, Gerald (Jerry) Carter wrote -=


Binary packages will be made available on a volunteer basis at

http://download.samba.org/samba/ftp/Binary_Packages/


Not being as adept at building rpm's as I could be if I had the time 
to learn it, is there any supporting documentation anywhere that 
describes how to go about converting from an rpm install to installing 
from src?


Or is it easier/preferred/better to stick with the rpm's and build 
them from the src?


I know there are opinions on both sides but I wouldn't mind hearing a 
few as I try and decide if I should continue with the rpm on a FC6 
machine or convert to a src install
I've had experience from both sides -- I started from src and migrated 
to rpm's, now I'm migrating back to src. Especially with a fast moving 
OS like Fedora, where FC4/5 is no longer supported. It only makes sense 
for me and my customers to have me be able to download the src and 
compile. That way the applications on the systems can be kept up to date 
regardless of the distro.


For what it's worth, I have been eyeballing Ubuntu LTS for the 5 year 
commitment to support, but I'm so used to Fedora that switching distro's 
is hard. :)

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Samba 3.0.26a Available for Download

2007-09-11 Thread Ray Anderson




In your migration back to src, any special considerations?  Or will 
you just remove the rpm and install from the src?  Any considerations 
for the smb.conf?  I can't think of any off hand myself, but thought 
I'd put it out on the list just in case...
In my particular situation, removing the rpm also removed the 
/var/log/samba dir and all subtrees, so if you want the log history of 
the machines, back that up first, and restore after removing the rpm.  
Otherwise, you must create the /var/log/samba directory.


Also, for the Redhat/Fedora users, you will want to backup the 
/etc/init.d/smbd script and then restore and edit to point to the 
/usr/local/samba/sbin directory.  Other than that, the migration was 
quite painless, and now I'm finally running an up to date samba with an 
up to date samba-vscan vfs plugin.


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] nmbd keeps trying to contact IP Address on wrong network

2007-11-08 Thread Ray Anderson

[EMAIL PROTECTED] wrote:
Looking for a solution to this problem. I have Googled all over the 
place but haven't found a definitive answer.


I have a Samba Server that ONCE was on a network where there was 
SECOND Samba Server with IP Address 192.168.20.3. Today, the FIRST 
server is on a network with an address range 10.0.0.0/255.255.255.0 
and it has no way of finding that SECOND Server 192.168.20.3.  
However, /var/log/messages is full of errors that say:


Nov  4 04:07:29 fileserver nmbd[5248]: [2007/11/04 04:07:29, 0] 
libsmb/nmblib.c:send_udp(791)
Nov  4 04:07:29 fileserver nmbd[5248]:   Packet send failed to 
192.168.20.3(137) ERRNO=Network is unreachable
Nov  4 04:07:29 fileserver nmbd[5248]: [2007/11/04 04:07:29, 0] 
nmbd/nmbd_packets.c:send_netbios_packet(163)
Nov  4 04:07:29 fileserver nmbd[5248]:   send_netbios_packet: 
send_packet() to IP 192.168.20.3 port 137 failed
Nov  4 04:07:29 fileserver nmbd[5248]: [2007/11/04 04:07:29, 0] 
nmbd/nmbd_namequery.c:query_name(245)
Nov  4 04:07:29 fileserver nmbd[5248]:   query_name: Failed to send 
packet trying to query name ACCOUNTING1b


I can see that the file /var/cache/samba/wins.dat includes a reference 
to the IP Address 192.168.20.3 (I have seen some postings suggesting 
that wins.dat can be the cause of this error).  If I delete wins.dat 
and restart samba, the reference to 192.168.20.3 comes back.


I can state with total confidence that there are no network interfaces 
on this machine configured to be in the 192.168.20.x range. In fact, 
only one of 3 network interfaces is currently active and has an IP 
Address.


Is there any way that I can get this Samba Server to stop looking for 
192.168.20.3?


-- Andy

Email and AIM finally together. You've gotta check out free AOL Mail! 
- http://mail.aol.com


I had a similar problem -- deleted wins.dat and forced the entry in 
smb.conf:


interfaces = eth0

restarting the service wasn't enough -- had to STOP the service(s) and 
then restart.


That fixed it.

-=R
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Can't logon to Samba server

2007-11-28 Thread Ray Anderson


Joseph C. Fisher wrote:

Sure...

Here it is:

[global]
workgroup = THEKEY
interfaces = eth0, lo
socket options = TCP_NODELAY
browseable = Yes
case sensitive = Yes
security = domain
log level = 1
syslog = 0
log file = /var/log/samba/log.%m
max log size = 100
smb ports = 139
utmp = Yes
map acl inherit = Yes
usershare max shares = 5
winbind gid = 1000-2
winbind uid = 1000-2
idmap gid = 1000-2
idmap uid = 1000-2
usershare allow guests = Yes

[user1]
comment = /home/user1/Personal
path = /home/user1/Personal
read only = No
inherit acls = Yes
browseable = yes
valid users = user1
hosts allow = USR1
public = yes
guest ok = No
invalid users = user2

[family_photos]
comment = Family Photos
writeable = Yes
path = /Family_Photos
force directory mode = 770
force group = Family
force create mode = 770
hosts allow = USR1 USR2
valid users = @Family
create mode = 770
hide unreadable = Yes
max connections = 5

That's pretty much it!

Thanks in advance, and have a great week.

JOEF...


  

Change

security = domain
to
security = user

Cheers,

-=R


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] missing packaging/Fedora/makerpms.sh

2007-12-05 Thread Ray Anderson


Mark Nienberg wrote:
I downloaded the tar.gz file for 3.0.27a and I noticed there is not a 
Fedora directory inside the packaging directory.  I'm fairly certain 
there used to be one in older versions.  I'm groping now to figure out 
how to build rpms for Fedora 4, which I know is a little old but I 
don't have resources to upgrade the OS now. Was it intentionally removed?


Mark



For my Fedora 3 and 4 machines out in the wild, I simply removed the 
rpms altogether and installed from source.


It was a painless procedure, even including the vscan vfs objects.

Symlink the config files to the /usr/local/samba/lib directory and it 
should work just fine.  Sure makes upgrading to later versions easier.  :)


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Re: missing packaging/Fedora/makerpms.sh

2007-12-06 Thread Ray Anderson



Mark Nienberg wrote:

Ray Anderson wrote:


Mark Nienberg wrote:
I downloaded the tar.gz file for 3.0.27a and I noticed there is not 
a Fedora directory inside the packaging directory.  I'm fairly 
certain there used to be one in older versions.  I'm groping now to 
figure out how to build rpms for Fedora 4, which I know is a little 
old but I don't have resources to upgrade the OS now. Was it 
intentionally removed?


Mark



For my Fedora 3 and 4 machines out in the wild, I simply removed the 
rpms altogether and installed from source.


It was a painless procedure, even including the vscan vfs objects.

Symlink the config files to the /usr/local/samba/lib directory and it 
should work just fine.  Sure makes upgrading to later versions 
easier.  :)


If you set a few of the compile options correctly then you could get 
it to install into the same places as the rpm does so you wouldn't 
need symlinks.  Oh wait, that is what the makerpms.sh script was for! :)


Mark



My point exactly.  Just leave the raw stuff where the raw stuff wants to 
go, that way if some helper script goes away you're still ok, i.e. the 
dropping of update support for FC3, 4, 5, 6, etc.


-=R
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] SAMBA under window?

2007-12-12 Thread Ray Anderson



Tim Bates wrote:

Michael Heydon wrote:
but if you just want to share directories from the windows system 
then you really don't need samba. 
What if you have a non-server version of Windows and wanted to use it 
as a domain controller or do something more tricky than Windows allows 
(especially XP Home's restrictive sharing options)?

Then it would make sense... Sort of.

This time to cc list.

Install VMWare, then Linux, then Samba.  Done.

-=R



--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Getting rid of old network

2007-07-26 Thread Ray Anderson

 Just had this problem.

Check your interfaces line in your smb.conf -- I fixed mine by changing 
from an IP to eth0 - substitute your actual eth device.


-=Ray


Anders Norrbring wrote:
I can't get rid of an old network I had configured on my Samba server, 
it was PDC on two subnets, and one of those nets are now gone.

Still Samba tries to become PDC on the subnet (192.168.100.10).

So, in my logs I get hundreds of these messages;

[2007/07/26 22:38:57, 0] 
nmbd/nmbd_browsesync.c:get_domain_master_name_node_status_fail(488)

  get_domain_master_name_node_status_fail:
  Doing a node status request to the domain master browser at IP 
192.168.100.10 failed.

  Cannot get workgroup name.

How can I clear that out?

Anders.

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Can't see more than 8 files? MTU-ish issue?

2007-07-25 Thread Ray Anderson

Howard Jones wrote:

Does this ring any bells with anyone? The firewalls are Juniper
Netscreens at both ends, for what it's worth. I've had a google around,
and I can't see anything related to packet size or MTUs, which is what
it smells like to me... (presumably the 9th filename ends up in a second
packet, or a certain sized response).


I've seen this type of behavior with a cisco to cisco vpn connection -- 
all workstations are xp, and one out of eight could not 
browse/see/access files on the other end of the vpn.


I used dr. tcpip to change the mtu to 1400, and enable the rwin to 32000 
(or whatever they suggested) and life was good from then on.


Weird, as it was only one machine that was having the issues.

Say thankya to Microsoft for being consistent.  :)

Hope that helps,

-=R
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: RE: [Samba] Too many opened files....samba 3.0.28a

2008-08-21 Thread Ray Anderson

Pappas, Bill wrote:

Ok.  I matched /proc/sys/fs/file-max (i.e 1,000,000) to the max open files 
parameter in smb.conf.

This did the trick.

Apparently an application on a CIFS client (running WINXP) opens many, many 
files.

I appreciate your help.


I had this problem also with a rogue XP client and Microsloth Outlook. 
Fixed by upgrading to 3.0.29 without altering any file system parameters.


I do not know what the default max open files param is but I do not have 
that set in my smb.conf, and cat /proc/sys/fs/file-max yields 50776.


This is on a Fedora 3 machine 2.6.12-2.3.legacy_FC3smp #1 SMP Sun Feb 19 
08:53:09 EST 2006 i686 i686 i386 GNU/Linux that has a pretty long uptime

 06:26:47 up 228 days, 22:43,  1 user,  load average: 0.18, 0.06, 0.01

Cheers,

Ray




Thanks,
bp

From: Jeremy Allison [EMAIL PROTECTED]
Sent: Wednesday, August 20, 2008 3:31 PM
To: Pappas, Bill
Cc: Jeremy Allison; samba@lists.samba.org
Subject: Re: [Samba] Too many opened filessamba 3.0.28a

On Wed, Aug 20, 2008 at 03:27:35PM -0500, Pappas, Bill wrote:

RHEL 4 U4 EMT64


Ok, take a look inside /proc for all the existing smbd
processes and see if any of them have an outrageous
number of open file descriptors.

Jeremy.








--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: Re: [Samba] Ubuntu Jaunty samba 3.3.2 print$ no write rights even though I do;-)

2009-07-03 Thread Ray Anderson

Glenn T. Arnold wrote:
Harry, 

You did give me an idea though. For grins I just set rights to 0777 even on the extended acls and I still get access denied when trying to upload print drivers. Here is the updated rights on /var/lib/samba/printers. 


Harry,

Check your apparmor setttings:

/etc/apparmor.d/abstractions/samba

Mine looks like this:

abstractions/samba:2:  /etc/samba/smb.conf r,
abstractions/samba:3:  /usr/share/samba/*.dat mr,
abstractions/samba:4:  /var/lib/samba/**.tdb mrw,
abstractions/samba:5:  /var/log/samba/cores/* w,
abstractions/samba:6:  /var/log/samba/log.* w,
abstractions/samba:7:  /var/run/samba/*.tdb mrw,

Seems you'd need to add /var/lib/samba/printers/* mrw or similar.

Ray


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba