Re: [Samba] Samba 3.0.29 Available for Download

2008-05-21 Thread Jeremy Allison
On Wed, May 21, 2008 at 09:16:28PM -0500, Gerald (Jerry) Carter wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> ==
> ~ "You have an amazing capacity for self-deception.
> ~  How do you do that?"
> ~   --Number Six (spoken to Baltar)
> ~  "BSG" (2003)
> ==
> Release Announcements
> =
>
> This is a bug fix release of the Samba 3.0 production series
> and is the version that servers should be run for all current
> Samba 3.0 bug fixes.

Yay ! Well done (and what a great choice of quote too :-) :-).

Thanks,

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


[Samba] Samba 3.0.29 Available for Download

2008-05-21 Thread Gerald (Jerry) Carter

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

==
~ "You have an amazing capacity for self-deception.
~  How do you do that?"
~   --Number Six (spoken to Baltar)
~  "BSG" (2003)
==
Release Announcements
=

This is a bug fix release of the Samba 3.0 production series
and is the version that servers should be run for all current
Samba 3.0 bug fixes.

Major bug fixes included in Samba 3.0.29 are:

~  o Problems following domain trusts on a Samba DC.
~  o SMB Signing errors.
~  o Interoperability issues with Windows 2008 domains.



Download Details


The uncompressed tarballs and patch files have been signed
using GnuPG (ID 6568B7EA).  The source code can be downloaded
from:

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

The release notes are available online at:

http://www.samba.org/samba/history/samba-3.0.29.html

Binary packages will be made available on a volunteer basis at

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

Our Code, Our Bugs, Our Responsibility.
(https://bugzilla.samba.org/)

--Enjoy
The Samba Team
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFINNd8IR7qMdg1EfYRAsh6AJwNrH9rx5HIyONUjXqPNJ8qe94VJQCfYLpf
3cIE5u8v6vxmj3+JkuUOCOA=
=6Vka
-END PGP SIGNATURE-

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


Re: [Samba] permissions

2008-05-21 Thread Michael Heydon

solarflow99 wrote:

Hi,   My question is since I am
using LDAP as the backend, root can't easily be used; does anyone have any
recommendations on how this can be done?
  

Why don't you create an "Administrator" user in ldap that has uid 0?

*Michael Heydon - IT Administrator *
[EMAIL PROTECTED] 

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


Re: [Samba] howto sync unix passwd & samba passwd?

2008-05-21 Thread Edmundo Valle Neto

Iris Lames escreveu:

Hi,

I'm using samba-3.0.28-0.fc8. I'm trying to build a file server for 100
users. I created a perl script that automatically adds the 100 users plus
their passwords with success. Now I'm having difficulty creating a script
using the smbpasswd command because passwords must be entered in stdin. I
also tried smbpasswd -s option but it asks passwd in stdin. Is there a way
that I can use the command smbpasswd plus the user password in one line?
  


As already answered by other people, you can use expect, I use it to set 
initial passwords, feeding smbldap-passwd in automated installs, it 
works and is the only solution that I know about too.



Also, I read about mksmbpasswd.sh and test it but it did not work at all.
My smb.conf contains:
smb passwd file = /etc/samba/sambapassword
and did:
cat /etc/passwd | grep test | /usr/bin/mksmbpasswd.sh >
/etc/samba/sambapassword
  


What do you mean by did not work at all? Have you sure that you are 
executing it in the right place? Theres nothing wrong with that line 
unless mksmbpasswd isn't where you think it is (isn't it in sbin?) or 
isn't working as it should (not likely).



Is there a way for me to sync the userpassword and smbpasswd? Help me
please.

-Iris Lames
  


I don't know if I got it right. Doing what you are trying to do will 
just INITIALLY create the same accounts in samba as in /etc/passwd 
without setting the passwords (I don't know Fedora, but Debian based 
distros does that by default in the package scripts if the user choose 
to). Debian can convert it to tdbsam after that too. All that can be 
scripted.


If by "sync" you mean initially populate smbpasswd as you are trying to 
do, the easiest way is already this way. Any other way you will redoing 
the mksmbpasswd script.




Regards.

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


Re: [Samba] howto sync unix passwd & samba passwd?

2008-05-21 Thread Carl Brewer

Iris Lames wrote:

Hi,

I'm using samba-3.0.28-0.fc8. I'm trying to build a file server for 100
users. I created a perl script that automatically adds the 100 users plus
their passwords with success. Now I'm having difficulty creating a script
using the smbpasswd command because passwords must be entered in stdin. I
also tried smbpasswd -s option but it asks passwd in stdin. Is there a way
that I can use the command smbpasswd plus the user password in one line?


You will be able to knock something up using expect.
http://expect.nist.gov/

There may be a better way, but that will work
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] howto sync unix passwd & samba passwd?

2008-05-21 Thread Scott Lovenberg

Iris Lames wrote:

Hi,

I'm using samba-3.0.28-0.fc8. I'm trying to build a file server for 100
users. I created a perl script that automatically adds the 100 users plus
their passwords with success. Now I'm having difficulty creating a script
using the smbpasswd command because passwords must be entered in stdin. I
also tried smbpasswd -s option but it asks passwd in stdin. Is there a way
that I can use the command smbpasswd plus the user password in one line?

Also, I read about mksmbpasswd.sh and test it but it did not work at all.
My smb.conf contains:
smb passwd file = /etc/samba/sambapassword
and did:
cat /etc/passwd | grep test | /usr/bin/mksmbpasswd.sh >
/etc/samba/sambapassword


Is there a way for me to sync the userpassword and smbpasswd? Help me
please.

-Iris Lames
  
Is PAM a viable option in your current environment? 
Chapter 28. PAM-Based Distributed Authentication 



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


[Samba] howto sync unix passwd & samba passwd?

2008-05-21 Thread Iris Lames
Hi,

I'm using samba-3.0.28-0.fc8. I'm trying to build a file server for 100
users. I created a perl script that automatically adds the 100 users plus
their passwords with success. Now I'm having difficulty creating a script
using the smbpasswd command because passwords must be entered in stdin. I
also tried smbpasswd -s option but it asks passwd in stdin. Is there a way
that I can use the command smbpasswd plus the user password in one line?

Also, I read about mksmbpasswd.sh and test it but it did not work at all.
My smb.conf contains:
smb passwd file = /etc/samba/sambapassword
and did:
cat /etc/passwd | grep test | /usr/bin/mksmbpasswd.sh >
/etc/samba/sambapassword


Is there a way for me to sync the userpassword and smbpasswd? Help me
please.

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


Re: [Samba] could not parse domain user errors

2008-05-21 Thread Volker Lendecke
On Wed, May 21, 2008 at 11:23:36AM -0600, Jason Gerfen wrote:
> Hello again. Well I am stuck again. I cannot for the life of me get the 
> wbinfo -i username to work properly
> 
> Here is some more information pulled from the log.winbind file:
> [2008/05/21 11:15:15, 10] nsswitch/winbindd.c:process_request(314)
>   process_request: request fn GETPWNAM
> [2008/05/21 11:15:15, 3] nsswitch/winbindd_user.c:winbindd_getpwnam(346)
>   [14936]: getpwnam smb
> [2008/05/21 11:15:15, 5] nsswitch/winbindd_user.c:winbindd_getpwnam(353)
>   Could not parse domain user: smb

Try wbinfo -i domain\\username.

Volker


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

Re: [Samba] Looking for a set of definitive answers (long)

2008-05-21 Thread John H Terpstra
Avery,

OK - I'll respond too.  I see Jeremy has beaten me to it.  

Let me tell you up front, if you want the documentation to be improved the 
best thing you can do is contribute changes and updates.  Making us aware of 
docuentation problems is a good start, but please take this a step further - 
send us your updates and changes.

One other thing, before I get too far into answer or commenting is this: The 
Official Samba3 HOWTO and Reference Guide (TOSHARG) is a document (book) that 
sets out how specific parts of Samba function.  It was never intended to 
provide a working template or a scripted recipe.  

I did write the Samba3-ByExample book with the specific objective to provide 
detailed step-by-step, fully worked, examples of real working networks, did 
you consult that document at any time?  Are you offering to improve its value 
and utility by contributing your experiences and recommendations?

Users and admins like yourself are in the best position to improve the 
documentation.

Please see comments below.

Chees,
 John T.

On Wednesday 21 May 2008 01:47:52 pm Avery Payne wrote:
> Question:
>
> We recently moved to a Samba-based file server, which holds mission-
> critical data on it (.dbf files used by our Accounting software, etc.)
> The goal was to create a file server that had excellent performance while
> providing Volume Management, but we felt that something like Veritas was
> overkill for our needs.

A noble goal that can be achieved.

> Design Goals:
> - Redundant Hardware
> - Manual Failover (this was an acceptable solution)
> - Very large storage capacity (minimum 1 Terabyte)
> - Better than 100Mbyte/sec throughput
> - Volume Management, Journaled Filesystem
> - Drop-In Replacement for aging Win2k file server
> - Use existing admin tools to avoid retraining

The last two goals are a little ambitious.  A drop-in replacement is a tall 
order that I believe can not be met today.  There are some existing tools, 
but none are a complete replacement for the nicely integrated Microsoft 
toolset.

> The proposed solution was a Samba file server running on a pair of
> redundant servers, with one connected to an eSATA raid box, with LVM and
> Ext3 providing volume management and journaling.  

I would not architect the solution this way.  There are way too many pitfals 
with this solution.  You have identified one already - the SID <=> UID/GID 
mapping challenge.

I would have used a RAID5 array in each server with rsync to synchronize from 
the master to the slave.  This could be run from cron.  Anyhow, this is a 
digression from your problems.

> Our transition was a 
> bit rough, but in the end it has been very stable and fast.  We have been
> really pleased with the performance of the hardware/software combo,
> seeing sustained throughput of about 250Mbyte/sec with peaks as high as
> 300Mbyte/sec.  But along the way, we encountered some oddities, and I
> have some remaining questions.

What lab work did you do in a test environment before rolling this life?  
Proper pre-rollout evaluation can save a lot of head-banging later.

> First, the oddities (long-time Samba devs and admins, take this with a
> grain of salt, when I say oddity I mean it from the perspective of an
> experienced Windows administrator):

Grain of salt taken.  Your initiative to write this email is most appreciated.  
It is a first step in the process of improvement.

> - File permissions do not behave as expected (from the viewpoint of other
> staff working with the server).
>
> The *nix permission bits cause a user, group, and "Everyone" entry to
> become permanent and persistent.  There was some initial grousing over
> this fact as our long-time Windows admin scratched his head over why he
> couldn't remove these entries as he saw fit.  

Samba is an engine that sits on top of a host OS. That host OS is NOT Windows.  
Samba has to go along with the rules imposed by the host OS.  The TOSHARG 
chapter on "File, Directory, and Share Access Controls" should be the red 
flag that underlying file system semantics are exerted by Samba.  Windows 
admins need to be trained to understand that Samba is not Windows NT/2Kx, 
etc.

Jeremy's notes about the VFS modular work aimed at providing better Windows 
ACLs emulation may provide the solution you are looking for.

> After explaining that there 
> would always be three settings no matter what, that they could never be
> deleted, and that they represented actual filesystem-level bits that
> wouldn't go away, it was accepted.  I didn't notice if this was in the
> docs or not, but I certainly didn't find it.  

It would help me to understand your problem if you can point out how you went 
about searching for answers.  What questions did you frame mentally in your 
search? Where and how did you look?

Did you use a hard-copy of the book? Search online in the HTML web pages? Or 
did you download the PDF of the book and use the hotlinked pages in the 
subject and topic indexes?

> It

Re: [Samba] Existing files don't show up in share, new files do (Solved!)

2008-05-21 Thread Rubin Bennett
Glad to hear it!  Damn SELinux *grumble*.

I shoulda thought of that too :)

Rubin

On Wed, 2008-05-21 at 17:20 +0200, Pepijn Schmitz wrote:
> I got it. SELinux was causing the problem. Grmbl... I don't know why I 
> didn't think to check before, but I took a look in my syslog and saw 
> entries like these:
> 
> May 21 16:21:29 roadrunner kernel: audit(1211379689.340:4629): avc:  
> denied  { getattr } for  pid=13682 comm="smbd" 
> path="/mnt/data/multimedia/XXX" dev=sdb1 ino=28066343 
> scontext=system_u:system_r:smbd_t:s0 tcontext=user_u:object_r:file_t:s0 
> tclass=dir
> 
> I did a ls -Z on /mnt/data/multimedia with the following result:
> 
> drwxrwxr-x  pepijn pepijn system_u:object_r:file_t:s0  Audio
> -rw-rw-r--  pepijn pepijn system_u:object_r:file_t:s0  
> DIRK_GENTLY'S_HOLISTIC_DETECTIVE_AGENCY.TXT
> lrwxrwxrwx  pepijn pepijn user_u:object_r:file_t:s0Fotos -> Foto's
> drwxrwxr-x  pepijn pepijn system_u:object_r:file_t:s0  Foto's
> -rw-rw-r--  pepijn pepijn system_u:object_r:file_t:s0  
> HITCHHIKER'S_GUIDE_TO_THE_GALAXY.TXT
> -rw-rw-r--  pepijn pepijn system_u:object_r:file_t:s0  
> LAST_CHANCE_TO_SEE.TXT
> drwxrwxr-x  pepijn pepijn system_u:object_r:file_t:s0  Martijn
> -rw-rw-r--  pepijn pepijn system_u:object_r:file_t:s0  
> MOSTLY_HARMLESS.TXT
> drwxrwxr-x  pepijn pepijn system_u:object_r:file_t:s0  recycled
> -rw-rw-r--  pepijn pepijn system_u:object_r:file_t:s0  
> RESTAURANT_END_OF_THE_UNIVERSE.TXT
> -rw-rw-r--  pepijn pepijn system_u:object_r:file_t:s0  
> STARSHIP_TITANIC.TXT
> drwxrwxr-x  pepijn pepijn system_u:object_r:file_t:s0  temp
> -rw-rw-r--  pepijn pepijn system_u:object_r:samba_share_t:s0 test2.txt
> -rw-rw-r--  pepijn pepijn system_u:object_r:samba_share_t:s0 test.txt
> drwxrwxr-x  pepijn pepijn system_u:object_r:file_t:s0  Video
> -rw-rw-r--  pepijn pepijn user_u:object_r:file_t:s0volumeid.zbx
> drwxrwxr-x  pepijn pepijn user_u:object_r:file_t:s0XXX
> -rw-rw-r--  pepijn pepijn system_u:object_r:file_t:s0  
> YOUNG_ZAPHOD_PLAYS_IT_SAFE.TXT
> 
> The existing files have a different security context (file_t) than the 
> new ones (samba_share_t). I have no idea how or why this has happened, 
> and frankly I don't feel like spending any more time to find out 
> (although I'm still interested if someone knows more about how this 
> could happen). Since the server is now just an internal file server I 
> decided just to turn off SELinux. Now the share works perfectly again!
> 
> Thanks everyone for your time and patience!
> 
> Kind regards,
> Pepijn Schmitz
> 
> Pepijn Schmitz wrote:
> > I tried commenting out the write list = pepijn line and adding a guest 
> > ok = yes line, but it made no difference, both when logging in as 
> > pepijn or when logging in as guest.
> >
> > Kind regards,
> > Pepijn Schmitz
> >
> > Jason Waters wrote:
> >> Remove any restrictions on the shares.  Like valid user and that sort of
> >> thing.
> >>
> >> Jason Waters
> >>
> >>
> >> -Original Message-
> >> From: Pepijn Schmitz [mailto:[EMAIL PROTECTED] Sent: Wednesday, 
> >> May 21, 2008 10:08 AM
> >> To: Rubin Bennett
> >> Cc: Jason Waters; samba@lists.samba.org
> >> Subject: Re: [Samba] Existing files don't show up in share, new files do
> >>
> >> I'm slightly closer to finding the cause of this problem. I set the 
> >> smbd log level to 7 and found the following entries when trying to 
> >> list the contents of the share:
> >>
> >> [2008/05/21 15:27:05, 5] smbd/uid.c:change_to_user(273)
> >>   change_to_user uid=(500,500) gid=(0,500)
> >> [2008/05/21 15:27:05, 3] smbd/trans2.c:call_trans2findfirst(1704)
> >>   call_trans2findfirst: dirtype = 16, maxentries = 1366, 
> >> close_after_first=0, close_if_end = 2 requires_resume_key = 4 level = 
> >> 0x104, max_data_bytes = 16644
> >> [2008/05/21 15:27:05, 5] smbd/filename.c:unix_convert(147)
> >>   unix_convert called on file "*"
> >> [2008/05/21 15:27:05, 5] smbd/filename.c:unix_convert(246)
> >>   unix_convert begin: name = *, dirpath = , start = *
> >> [2008/05/21 15:27:05, 5] smbd/trans2.c:call_trans2findfirst(1769)
> >>   dir=./, mask = *
> >> [2008/05/21 15:27:05, 5] smbd/dir.c:dptr_create(392)
> >>   dptr_create dir=./
> >> [2008/05/21 15:27:05, 3] smbd/dir.c:dptr_create(515)
> >>   creating new dirptr 256 for path ./, expect_close = 1
> >> [2008/05/21 15:27:05, 4] smbd/trans2.c:call_trans2findfirst(1837)
> >>   dptr_num is 256, wcard = *, attr = 22
> >> [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1255)
> >>   get_lanman2_dir_entry found ./. fname=.
> >> [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1255)
> >>   get_lanman2_dir_entry found ./.. fname=..
> >> [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
> >>   get_lanman2_dir_entry:Couldn't stat [./Audio] (Permission denied)
> >> [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
> >>   get_lanman2_dir_entry:Couldn't stat 
> >> [./DIRK_GENTLY'S_HOLISTI

Re: [Samba] Looking for a set of definitive answers (long)

2008-05-21 Thread Jeremy Allison
On Wed, May 21, 2008 at 06:47:52PM +, Avery Payne wrote:
> Question:
> 
> We recently moved to a Samba-based file server, which holds mission-
> critical data on it (.dbf files used by our Accounting software, etc.)  
> The goal was to create a file server that had excellent performance while 
> providing Volume Management, but we felt that something like Veritas was 
> overkill for our needs.  
> 
> Design Goals:
> - Redundant Hardware
> - Manual Failover (this was an acceptable solution)
> - Very large storage capacity (minimum 1 Terabyte)
> - Better than 100Mbyte/sec throughput
> - Volume Management, Journaled Filesystem
> - Drop-In Replacement for aging Win2k file server
> - Use existing admin tools to avoid retraining
> 
> 
> The proposed solution was a Samba file server running on a pair of 
> redundant servers, with one connected to an eSATA raid box, with LVM and 
> Ext3 providing volume management and journaling.  Our transition was a 
> bit rough, but in the end it has been very stable and fast.  We have been 
> really pleased with the performance of the hardware/software combo, 
> seeing sustained throughput of about 250Mbyte/sec with peaks as high as 
> 300Mbyte/sec.  But along the way, we encountered some oddities, and I 
> have some remaining questions.
> 
> First, the oddities (long-time Samba devs and admins, take this with a 
> grain of salt, when I say oddity I mean it from the perspective of an 
> experienced Windows administrator):

Great post, thanks for writing it !

I always appreciate it when users come and tell us about their
experiences, and where we can improve.

Now onto the specifics:

> - File permissions do not behave as expected (from the viewpoint of other 
> staff working with the server).

Yes, ACLs are just different between UNIX & Windows. We map Windows
ACLs onto POSIX as best as we can, but the mapping is not perfect.
The goal is to make the two common cases : "these groups and user
fred have access", and "these groups but *not* user fred have access"
as intuitive as possible.

For 3.3 we're planning to overlay a Windows ACL model that will
allow perfect Windows ACL restrictions to be added to Samba,
but not perfect Windows ACL allowances (ie. we'll store the
Windows ACLs and use them to restrict access early on access
denied returns, but still map down to POSIX to allow the underlying
file permissions to take effect).

Hopefully this might help you.

> - To oplock or not to oplock: that is the question
> 
> The documentation is not entirely clear about when you should and 
> shouldn't use oplocks on shared files.  It would have been much simplier 
> (IMHO) to simply say "use your best judgement, BUT if you are using 
> shared data files like Access or Excel or DBF's, you will want to disable 
> them or you'll have problems!".  Yes those words show up on newsgroups, 
> but it should also show up in the documentation clearly.

Ok, I believe we are *identical* w.r.t. Windows as far as
oplocks go. If the vendor says disable oplocks with Windows,
disable them with Samba also. If not, leave them in place.

> - Office file locking workaround(s) were not immediately obvious
> 
> Buried in the nice (but large) Official Samba Reference and HOWTO is a 
> fix for sharing Word and Excel files through Samba, which involves using 
> the sticky bit for group permissions.  While the fix was adequate and 
> works well, it should have been I think a little more prominently 
> displayed in the documentation.

Can you point that out to me. We've done more work on ACL compatibility
with 3.0.28a and I believe that fix may not now be needed.

> - What?  You want me to unlock that file?
> 
> We have had recurring instances where a workstation on the network has 
> seized a DBF file and held onto it, not allowing any other workstation or 
> server to perform writes to the file.  This locking issue shows up in 
> random intervals and always requires that we have the person quit the 
> program we are using and log back in.  It is not an application issue 
> that we can determine - the rest of the system continues to funciton, it 
> just prevents one of our servers (or anyone else) from locking the file.

Sounds like a bug to me. Not sure where, client app or Samba. Need
more info on this.

> - Speaking of which - just WHO does have that file lock?
> 
> For some reason, using the computer management tool in a windows 
> workstation shows stale information.  In our past arrangement, we were 
> able to determine who would have the locked file by simply connecting the 
> tool to the server, and sorting on the number of locks present; the tool 
> would show the data file with a lock count greater than zero.  Apparently 
> this doesn't fly when connecting to the Samba server - it shows files 
> open, but the lock count is for ALL locks (including reads) and not just 
> write locks.

This seems like a Samba dificiency with that tool. You should be
able to get that info by running smbstatus on the 

[Samba] Re: swat password

2008-05-21 Thread Santiago Andres Triana
Thanks for your reply Vickie,

I actually have the OS root password and samba root password identical. I
did it issuing the command smbpasswd -a root and setting the password as the
same for the OS but swat still won't let me in...

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


Re: [Samba] [Slightly OT] Mac and Samba

2008-05-21 Thread Steve Thompson

On Wed, 21 May 2008, James Peach wrote:


The Mac won't join to a Samba (NT4-style) domain, only to an Active
Directory domain.


I have several Macs (Tiger) joined to a Samba-hosted domain with no 
problems. Haven't tried it with Leopard, though.


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


[Samba] Looking for a set of definitive answers (long)

2008-05-21 Thread Avery Payne
Question:

We recently moved to a Samba-based file server, which holds mission-
critical data on it (.dbf files used by our Accounting software, etc.)  
The goal was to create a file server that had excellent performance while 
providing Volume Management, but we felt that something like Veritas was 
overkill for our needs.  

Design Goals:
- Redundant Hardware
- Manual Failover (this was an acceptable solution)
- Very large storage capacity (minimum 1 Terabyte)
- Better than 100Mbyte/sec throughput
- Volume Management, Journaled Filesystem
- Drop-In Replacement for aging Win2k file server
- Use existing admin tools to avoid retraining


The proposed solution was a Samba file server running on a pair of 
redundant servers, with one connected to an eSATA raid box, with LVM and 
Ext3 providing volume management and journaling.  Our transition was a 
bit rough, but in the end it has been very stable and fast.  We have been 
really pleased with the performance of the hardware/software combo, 
seeing sustained throughput of about 250Mbyte/sec with peaks as high as 
300Mbyte/sec.  But along the way, we encountered some oddities, and I 
have some remaining questions.

First, the oddities (long-time Samba devs and admins, take this with a 
grain of salt, when I say oddity I mean it from the perspective of an 
experienced Windows administrator):

- File permissions do not behave as expected (from the viewpoint of other 
staff working with the server).

The *nix permission bits cause a user, group, and "Everyone" entry to 
become permanent and persistent.  There was some initial grousing over 
this fact as our long-time Windows admin scratched his head over why he 
couldn't remove these entries as he saw fit.  After explaining that there 
would always be three settings no matter what, that they could never be 
deleted, and that they represented actual filesystem-level bits that 
wouldn't go away, it was accepted.  I didn't notice if this was in the 
docs or not, but I certainly didn't find it.  It also meant enabling ACLs 
on all of the filesystems and doing some creative thinking with the 
permissions.  The closest I could do was to map all files as owner root, 
group set to Domain Admins, and Everyone set to disallowed; members of 
the IT staff would be mapped with the "admin users" parameter; from 
there, any additional permissions would be mapped via ACLs.  We've found 
that this method has the closest behavior to a "real" Windows server and 
has satisfied everyone.

- Permissions don't propigate through the filesystem.

On a Real Windows Box(tm) you would be able to set permissions at the 
parent level of a directory and have them show up for each child object.  
Because the filesystem semantics are not the same in *nix-land, you need 
to go into the directly and manually propigate the permissions, or if 
you're stuck trying to administer permissions through a windows session 
(like the other IT staffers in my department), using the Advanced setting 
to force-reset all permissions on all child objects.  This has also 
caused a bit of grousing as we have several nested directories with a 
heiarchy of permissions; getting one parent directory wrong means 
rebuilding permissions for several child directories as well.  I have 
never been able to get a satisfactory answer as to how to resolve this 
issue, other than the process I described above (which I had to resolve 
for myself without documentation).

- To oplock or not to oplock: that is the question

The documentation is not entirely clear about when you should and 
shouldn't use oplocks on shared files.  It would have been much simplier 
(IMHO) to simply say "use your best judgement, BUT if you are using 
shared data files like Access or Excel or DBF's, you will want to disable 
them or you'll have problems!".  Yes those words show up on newsgroups, 
but it should also show up in the documentation clearly.

- Office file locking workaround(s) were not immediately obvious

Buried in the nice (but large) Official Samba Reference and HOWTO is a 
fix for sharing Word and Excel files through Samba, which involves using 
the sticky bit for group permissions.  While the fix was adequate and 
works well, it should have been I think a little more prominently 
displayed in the documentation.

- What?  You want me to unlock that file?

We have had recurring instances where a workstation on the network has 
seized a DBF file and held onto it, not allowing any other workstation or 
server to perform writes to the file.  This locking issue shows up in 
random intervals and always requires that we have the person quit the 
program we are using and log back in.  It is not an application issue 
that we can determine - the rest of the system continues to funciton, it 
just prevents one of our servers (or anyone else) from locking the file.

- Speaking of which - just WHO does have that file lock?

For some reason, using the computer management tool in a windows 
workstation sh

Re: [Samba] smb_ldap_setup_connection failed with blank user Password

2008-05-21 Thread Charlie
It looks like your LDAP backend is rejecting the bind - if the backend
was OpenLDAP, this would be because the LDAP administrator disabled
anonymous (passwordless) binds.  I don't know eDirectory, I jumped
ship on NDS years ago.

That's all I know, sorry.
--Charlie

On Sat, May 17, 2008 at 5:56 AM, Thomas Reiß <[EMAIL PROTECTED]> wrote:
> Hi,
>
> i have a succesfully PDC Setup on a Novell/Suse OES1 SP2 Server with
> eDirectory/LDAP and Samba Version 3.0.26a-0.7-1616-SUSE-SLES9.
>
> Only Problem is, a User with a blank Password can't be authenticated on
> a Domain Member Server (Users with Passwords doesn't have this Problem).
>
> A Samba Level 10 Log show me this:
>
> 
>
> [2008/05/14 16:25:48, 9]
> passdb/passdb.c:pdb_update_autolock_flag(1418)
> pdb_update_autolock_flag: Account user not autolocked, no check
> needed
> [2008/05/14 16:25:48, 4] libsmb/ntlm_check.c:ntlm_password_check(326)
> ntlm_password_check: Checking NT MD4 password
> [2008/05/14 16:25:48, 5]
> passdb/pdb_nds.c:pdb_nds_update_login_attempts(770)
> pdb_nds_update_login_attempts: Successful login for user
> [2008/05/14 16:25:48, 3]
> passdb/pdb_nds.c:pdb_nds_update_login_attempts(797)
> pdb_nds_update_login_attempts: username user found dn
> 'cn=user,ou=stat,o=TKH'
> [2008/05/14 16:25:48, 5] passdb/pdb_nds.c:pdb_nds_get_password(677)
> NDS Universal Password retrieved for cn=user,ou=stat,o=TKH
> [2008/05/14 16:25:48, 10]  lib/smbldap.c:smb_ldap_setup_conn(630)
> smb_ldap_setup_connection: ldaps://172.30.10.25:636
> [2008/05/14 16:25:51, 5]
> passdb/pdb_nds.c:pdb_nds_update_login_attempts(825)
> pdb_nds_update_login_attempts: ldap_simple_bind_s Failed for user
>
> 
>
> This one looks to be the Problem:
>
> smb_ldap_setup_connection: ldaps://172.30.10.25:636
>
>
> What is the Problem?
> Is there a way to avoid this?
>
> Thomas
>
> --
> 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


[Samba] user can not print to cups printer

2008-05-21 Thread Andreas

Hello,

we installed cups, the cups-windows driver and added the printers to 
samba via cupsaddsmb.
As administrators we can print to this printer. When I look into windows 
security tab "everyone" has the right to print, but when the standard 
users logs in there are two problems:


- the printer does not appear in ther printers windows and I have to add 
it a secont time to the user


- the user has not the right to print to the printers.

Actualy I solved it by printing via http to cups, but the installation 
steps are to complicated. **


Can anyone please tell me if there is something wrong in our smb.conf

Thanks
Andreas

[global]
netbios name = atlas1
netbios aliases = svc-ps
workgroup = verwaltung
server string = Samba
 winbind trusted domains only = Yes
#
admin users = skaltenhauser jschrott ghirber amessavilla apreti 
ablasbichler amoroder fsigmund

wins server = 10.53.5.12
time server = Yes

security = domain
domain master = no
domain logons = no
#
ldap admin dn = uid=sambaadmin,dc=sb-brixen,dc=it
passdb backend = ldapsam:ldap://10.53.5.12/
ldap machine suffix = ou=samba-computers
ldap group suffix = ou=groups
ldap suffix = dc=sb-brixen,dc=it
ldap user suffix = ou=users
ldapsam:trusted = yes

directory security mask =  770
create mask = 0766
directory mask = 0777
printing = cups
dos charset = 850
os level = 200
obey pam restrictions = No
preserve case = yes
enable privileges = yes
show add printer wizard = yes
printcap name = cups
dont descend = /proc,/dev,/etc,/lib,/lost+found,/initrd
short preserve case = yes
max log size = 10
log level = 0
log file = /var/log/samba/%U.log
load printers = Yes
hide unreadable = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
mangling method = hash2
deadtime = 10
map to guest = Bad User
username map = /etc/samba/smbusers
encrypt passwords = Yes
case sensitive = no
syslog = 0
unix charset = ISO8859-1


[printers]
comment = Network Printers
printer admin = @"Print Operators"
guest ok = yes
printable = yes
path = /var/spool/samba
browseable = No
public = yes

[print$]
comment =  Drucker Treiber
path = /etc/samba/drivers
guest ok = No
browseable = Yes
read only = Yes

write list = @"Print Operators"




** IPP Installation

Add the printer via samba share
Add a second printer via IPP, chose a standard printer driver
change the driver in this second printer to the cups one
delete the first printer.

Not very clean

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


Re: [Samba] add machine script option

2008-05-21 Thread Charlie
Red Hat linux includes a few extra switches on useradd.  This is from
the RHEL4 man page, but I think Fedora and all recent versions of Red
Hat have these:

   -M The user home directory will not be created, even if the
system wide settings  from  /etc/login.defs is to create home dirs.

   -n A  group having the same name as the user being added to
the system will be created by default. This option will turn off this
Red Hat Linux specific behavior.

Note the "-n" switch is related to Red Hat's penchant for creating
single-user groups, which makes some sense in a pure RH linux
environment but probably translates very poorly to the flat namespace
shared by users and groups in the Windows world.

I think Suse's been using Thorsten Kukuk's LDAP capable pwutils for
some time, but Red Hat was shipping a fork of the original Jockgrrl
shadowutils that was totally unPAMmed (it directly operated on
/etc/passwd and /etc/shadow) until RHEL5.  I have not yet examined or
tested the RHEL5 stuff to see if they've got PAM working yet, or if
they've managed to shoehorn in LDAP.

If you are using a Red Hat samba server and you need to create machine
trusts in any backend other than vanilla shadow suite (/etc/passwd,
/etc/shadow and friends) you will need to write yourself a custom
script.  If your POSIX authentication backend is NIS, Hesiod or LDAP
you will really really want to involve the person who built the
backend, or failing that the person who currently maintains it.

--Charlie

On Fri, May 16, 2008 at 3:55 PM, Leandro Tracchia <[EMAIL PROTECTED]> wrote:
> hi, thank you for replying... i do see an -m option which is for creating a
> home directory. i am not actually using Red Hat, i am using the much talked
> about Ubuntu 8.04. i believe Ubuntu is part of the Debian family. which
> distro uses the -M option out of curiosity?? is it SUSE??
>
> On Fri, May 16, 2008 at 1:26 PM, John H Terpstra <[EMAIL PROTECTED]> wrote:
>
>> On Friday 16 May 2008 09:46:15 am Leandro Tracchia wrote:
>> > i'm reading through the samba howto. section 6.2.3 (page 105) shows the
>> add
>> > machine script as follows:
>> >
>> > add machine script = /usr/sbin/useradd -d /var/lib/nobody -g 100 -s
>> > /bin/false -M %u
>> >
>> > i have a problem with the -M option. i cannot find this option in
>> useradd's
>> > man page.
>> >
>> > can i assume this example is incorrect??
>> >
>> > what would be a correct example???
>>
>> I am the author of that document.  The problem is that on some Linux
>> distributions the "-M" option is replaced with "-m" - it means to create
>> the
>> home directory if it does not exist.  In fact, if I am not mistaken, the
>> reference you are referring to specifically relates to this command on Red
>> Hat Linux. Corrct?
>>
>> FYI: In the real world I would probably NOT include the "-M" option.
>>
>> - John T.
>>
> --
> 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


[Samba] swat password

2008-05-21 Thread Santiago Andres Triana
Hello all,

I'm having trouble logging into swat. Not even root can login! I'm using
Rocks 4.1 (linux cluster based on CentOS) Has anybody experienced this?
Thanks in advance!

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


[Samba] swat password

2008-05-21 Thread Santiago Andres Triana
Hello all,

I'm having trouble logging into swat. Not even root can login! I'm using
Rocks 4.1 (linux cluster based on CentOS) Has anybody experienced this?
Thanks in advance!

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


Re: [Samba] HowTo clear a share using smbclient ?

2008-05-21 Thread Charlie
"find /full/path/to/directory -type f  -exec rm {} \;"  will delete
all files found below /full/path/to/directory without deleting pipes,
directories, etc.

"find /full/path/to/directory -exec rm {} \;" will blow out everything.

If you don't use an environment variable for the path you run no
risks.  Admittedly you can get in trouble with find /$FullPath because
some logic error introduced by a maintenance programmer in the future
could cause $FullPath to resolve to the empty string... you might use
one of these tricks:

#1 - bodge up a sandbox

#!/bin/bash
mkdir /tmp/safedir  2>/dev/null
if cd /tmp/safedir
  then
find $FullPath  -exec rm {} \;
else
   echo ERROR: Unable to clear $FullPath
fi

#2 - sanity check

#!/bin/bash
if [ -n "$FullPath"]
  then
  find $FullPath  -exec rm {} \;
else
  echo FATAL ERROR
  echo Moronic programming SNAFU
  echo variable FullPath is empty!
fi

As a general rule, never script file glob wildcards into bash (because
a big directory will make bash's globbing overrun the shell command
line length limitation of your OS) and always put appropriate  sanity
checks into path composition code to detect unset variables.

Hope that helped!
--Charlie


On Wed, May 14, 2008 at 9:15 PM, Michael Heydon <[EMAIL PROTECTED]> wrote:
> This seems a bit Rube Goldberg to me, you have direct access to the file
> system, why not use it?
>
> If you are really worried that rm -rf /full/path/to/directory might somehow
> morph into rm -rf / you could do something like:
> su nobody -c rm -rf /full/path/to/directory
> In the event that it did try to delete / it would be limited to files
> writable by "nobody".
>
> I understand being cautious around rm -rf especially when running as root,
> but I think testing and being careful are a better solution than using samba
> to limit access.
>
> Jon Wilson wrote:
>>
>> Good Evening,
>>
>> I was wondering if anyone knows how to clear a share on a server using
>> a command line interface ?
>>
>> Basically I have a [public] share that I would like cleared down every
>> night, I've worked out that
>>
>> smbclient //apps-srv/public -N -c "del *" >
>> /var/log/samba_public_delete.log 2>&1
>>
>> seems to go most of the way to doing what I want - however it doesn't
>> delete subdirectories. Is there any easy way to accomplish this ?
>>
>>
>> I prefer the idea of running this rather than a 'rm -rf' from the
>> command line as I can script this and as it's a public share the
>> possibility of deleting anything else is pretty minimal.
>> I've seen a few examples of wayward rm command in crons to be wary of
>> doing that !
>>
>> Any ideas how I could accomplish this ?
>>
>>
>> Many Thanks
>>
>> Jon
>>
>
>
> --
> 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] Re: Write Once Read Many share with samba

2008-05-21 Thread Jeremy Allison
On Wed, May 21, 2008 at 01:15:02PM -0400, Mike Wilkinson wrote:
> Hello all,
> 
> I've knocked together a vfs module that does this, basically a worm with 
> the exception of directories. directories can be renamed if they're 
> empty, otherwise it's readonly. I'm not sure what the policy is with 
> posting attachments so won't include it here, give me a shout if your 
> interested in it.

If you're willing to post it under your (C) and GPLv3 I'd be happy to
take a look and maybe add it to the official source tree.

Thanks a lot for the help !

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


[Samba] could not parse domain user errors

2008-05-21 Thread Jason Gerfen
Hello again. Well I am stuck again. I cannot for the life of me get the 
wbinfo -i username to work properly


Here is some more information pulled from the log.winbind file:
[2008/05/21 11:15:15, 10] nsswitch/winbindd.c:process_request(314)
  process_request: request fn GETPWNAM
[2008/05/21 11:15:15, 3] nsswitch/winbindd_user.c:winbindd_getpwnam(346)
  [14936]: getpwnam smb
[2008/05/21 11:15:15, 5] nsswitch/winbindd_user.c:winbindd_getpwnam(353)
  Could not parse domain user: smb

Any help is appreciated.

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


Re: [Samba] Re: Write Once Read Many share with samba

2008-05-21 Thread Mike Wilkinson

Hello all,

I've knocked together a vfs module that does this, basically a worm with 
the exception of directories. directories can be renamed if they're 
empty, otherwise it's readonly. I'm not sure what the policy is with 
posting attachments so won't include it here, give me a shout if your 
interested in it.

--
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.25c] disappearing printers problem

2008-05-21 Thread Greene, Joe
debug was not turned on, but no errors or access showed when it failed.
I can't try again until the Tuesday after Memorial Day as they are
production servers.. I'll try and get debugs then.



Joe Greene
UNIX Systems Administrator
Phone 317-707-2730
Fax 317-707-2397
Hours M-F 7am-4pm

-Original Message-
From: Jeremy Allison [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 20, 2008 8:58 PM
To: Greene, Joe
Cc: samba@lists.samba.org
Subject: Re: [Samba] [samba 3.0.25c] disappearing printers problem


On Tue, May 20, 2008 at 02:17:27PM -0400, Greene, Joe wrote:
> Scenario: 
> 
> Citrix, Win2k3.
> 
> Solaris 9 Server - latest Solaris patch Samba 3.0.25c
> 
>  
> 
> Every Monday morning, since applying the latest Solaris patches which
> upgraded samba from 3.0.21b -> 3.0.25c, the following occurs. The
Citrix
> clients can no longer print. 
> 
> Active directory was also switched to 2003 native mode.
> 
>  
> 
> Sunday night, Citrix servers undergo a weekly reboot. 
> 
> Week 1 and 2:Monday morning start of business the Citrix clients
cannot
> print to the Samba print shares. Restart Samba, service restored.
> 
> Week 3 and 4: Monday Morning before start of business, restart samba
via
> cron  scheduler,  Start of business, Citrix clients cannot print..
> restart samba again.. service restored.
> 
> Week 5: Admin on site. Manually restart samba, test user tries to
print
> and cannot, however smbstatus shows the citrix server connects and
pulls
> the data file for formatting the raw print job, but the print share
> never registers an access. restart samba again, Citrix server pulls
file
> and printer session registers in smbstatus.
> 
>  
> 
> Week 6: I'm dreading this. Rollback to 3.0.21b?

Need more info I'm afraid. What do the debug logs
for smbd say ?

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


Re: [Samba] Unable to join Samba

2008-05-21 Thread Adam Williams

recompile samba?

agustin cruz wrote:
hope I'm in the right place, I trying to join a samba server to Active Directory. 
Samba server FreeBSD 6.2
the Active Directory machine is running Windows 2008 Server 


When I execute "net ads join -U Administrator" I get the following error

/libexec/ld-elf.so.1: /usr/lib/libkrb5.so.8: Undefined symbol "init_error_table"

does any body know how to fix this error? If I execute "net rpc join -U Administrator" 
I get a "Join domain lab"


here is the smb.conf located in FreeBSD /usr/local/etc/

[global]
   Netbios Name = ROCK
   idmap uid = 1-2
   winbind enum users = yes
   winbind gid = 1-2
   workgroup = LAB
   os level = 20
   winbind enum groups = yes
   socket address = 192.168.124.23
   password server = *
   preferred master = no
   winbind separator = +
   max log size = 50
   log file = /var/log/samba3/log.%m
   encrypt passwords = yes
   dns proxy = no
   realm = lab.net
   security = ADS
   wins server = 192.168.124.23
   wins proxy = no

[homes]
   comment = Home Directories
   valid users = %S
   read only = NO
   browseable = yes
   writable = yes
   create mask = 0777
   admin users = Administrator

[test]
  comment = TestingADintegration
  browseable = yes
  writeable = yes
  path = /home/usr
  inherit acls = yes
  inherit permissions = yes
  directory mask = 700
  valid users = @"lab.net+SSCSusers"
  admin users = @"lab.net+Administrator"

Please help? 
Thanks, in advance!

- Augustin

_
Windows Live SkyDrive lets you share files with faraway friends.
http://www.windowslive.com/skydrive/overview.html?ocid=TXT_TAGLM_WL_Refresh_skydrive_052008-- 
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


[Samba] ADS, NTLM, KRB and other crazy acronyms

2008-05-21 Thread Jason Gerfen

Ok I have a problem and I am not sure how I can go about resolving it.

This environment utilizes a strange configuration I have not seen 
anywhere else.


Kerberos Realm is: REALM.COM

SMB.CONF
realm = REALM.COM

%> net ads join
Failed: no servers

If I change it to this:

SMB.CONF
realm = SUB.REALM.COM

%> net ads join
'machine' added to 'SUB.REALM.COM'

My problem is not this but I suspect it to be part of the problem. You 
see I can see all users, all groups within the domain but when I try to 
authentication one of these users against the SUB.REALM.COM domain it fails.


Part of the problem here is that our AD setup does not contain valid 
password hashes so any NTLM authentication fails. Is there a way to have 
this ADS server type a member of the SUB.REALM.COM domain but explicitly 
authenticate all users to REALM.COM (Kerberos Realm).


Thanks in advance.

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


Re: [Samba] SAMBA PDC with LDAP backend syncing unix/samba accounts ...

2008-05-21 Thread Adam Williams
do the samba accounts already exist in another format such as smbpasswd 
or tdbsam?  if so, use pdbedit -i smbpasswd:/etc/samba/smbpasswd (dunno 
what the command is for tdbsam though)


to have samba and unix passwords changed at the same time, use ldap 
password sync = yes in smb.conf and when a user in windows hits 
ctrl-alt-del and clicks on change password, it will change both at the 
same time.


yogi wrote:

Hi all ,
 I'm running Debian Etch . I just finished
configuring SAMBA
as PDC to authenticate against LDAP server which works.
The system in question uses default debian etch packages.
As My Linix/unix accounts can authenticate against it. The
LDAP works.
I  Used the default shipped smbldap-populate script to
setup SAMBA.
   Everything seems to work as Anonymous User or as
user root.

shark:/etc/samba# smbclient -L shark -N
Anonymous login successful
Domain=[LDAPBIOMAX] OS=[Unix] Server=[Samba 3.0.24]

Share name   Type  Comment
-     ---
netlogonDisk  Network Logon Service
knoppix Disk
IPC$IPC   IPC Service (Samba Server
3.0.24)
Anonymous login successful
Domain=[LDAPBIOMAX] OS=[Unix] Server=[Samba 3.0.24]

Server   Comment
----
SHARKSamba Server 3.0.24


  Now when I try and login as normal user, which i have
enabled
with "smbldap-usermod -a  yogesh"

smbldap-usershow yogesh

dn: uid=yogesh,ou=People,dc=biomax,dc=de
uid: yogesh
cn: yogesh
objectClass:
account,posixAccount,top,shadowAccount,sambaSamAccount
userPassword: {MD5}.SOMELONGHASH 
shadowLastChange: 12900
shadowMax: 1
loginShell: /bin/bash
uidNumber: 668
gidNumber: 100
homeDirectory: /sk-home/yogesh
sambaPwdLastSet: 0
sambaLogonTime: 0
sambaLogoffTime: 2147483647
sambaKickoffTime: 2147483647
sambaPwdCanChange: 0
sambaPwdMustChange: 2147483647
displayName: System User
sambaSID: S-1-5-21-4033729970-1053622217-143831336-9886
sambaAcctFlags: [UX ]

-

Now when I try and connect I get the following failure .
shark:/etc/samba# smbclient -L shark -U yogesh
session setup failed: NT_STATUS_LOGON_FAILURE

After Digging thru the logs I figuered that if I enter
password using
"smbldap-password" . It works.

Now my Stupid questions ?
I already have unix users working of LDAP, How can I
automate the addition of remaining accounts with SAMBA ?

Also whenever a unix user changes passwd samba password is
not updated ?

Any pointers will be of great help.

Thanks in advace
yogesh



  

  


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


Re: [Samba] [Slightly OT] Mac and Samba

2008-05-21 Thread James Peach
2008/5/21 Rubin Bennett <[EMAIL PROTECTED]>:
> Hello all...
> I have a question that is outside the realm of my experience but that
> has come up several times recently.
>
> I have a mixed network (some Macs, some PCs) that needs a server.  I'm
> going through the standard process of deciding between Samba and a
> Windows domain controller, my strong preference being to install
> Linux/Samba server.

The Mac won't join to a Samba (NT4-style) domain, only to an Active
Directory domain.

> The sticking point seems to be that the Mac users
> need to be able to run Access and Quickbooks, recent versions, neither
> of which are ported to the Mac as I understand it.

You could run these under Parallels or VMware Fusion.

>
> So my question is this:  When faced with this situation, what do folks
> out there do?  Install a Terminal server of some flavor (out of reach
> for this tiny non-profit)?  Or is there some simple thing I could do
> that would bridge the gap in a cost effective and reasonably easy to
> administer way?
>
> Thanks very much in advance,
> Rubin
> --
> Rubin Bennett
> RB Technologies
> http://thatitguy.com
> [EMAIL PROTECTED]
> (802)223-4448
>
> "They that can give up essential liberty to obtain a little
> temporary security deserve neither liberty nor safety"
>  --Benjamin Franklin, Historical Review of Pennsylvania, 1759
>
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/listinfo/samba
>



-- 
James Peach | [EMAIL PROTECTED]
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Samba4 wouldn't create smbpython

2008-05-21 Thread Martin Faust

Hello,
i have installed samba alpha3, domain-join works fine. But smbpython  
setup/adduser is buggy, so i tried to install newest checkout.

(I also tried it with a new installed machine)
After configure, make, and make install there is no smbpython in  
source/bin. Everyother seems to bee there.
It is a ubuntu with the packets installed mentioned in the tutorial  
plus python and python-dev and build-essential,linux-headers.

I can't see any errors regarding this in the make-msgs.

Anyone an idea were (my) smbpython is?
best regards, Martin Faust

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


Re: [Samba] Existing files don't show up in share, new files do (Solved!)

2008-05-21 Thread Pepijn Schmitz
I got it. SELinux was causing the problem. Grmbl... I don't know why I 
didn't think to check before, but I took a look in my syslog and saw 
entries like these:


May 21 16:21:29 roadrunner kernel: audit(1211379689.340:4629): avc:  
denied  { getattr } for  pid=13682 comm="smbd" 
path="/mnt/data/multimedia/XXX" dev=sdb1 ino=28066343 
scontext=system_u:system_r:smbd_t:s0 tcontext=user_u:object_r:file_t:s0 
tclass=dir


I did a ls -Z on /mnt/data/multimedia with the following result:

drwxrwxr-x  pepijn pepijn system_u:object_r:file_t:s0  Audio
-rw-rw-r--  pepijn pepijn system_u:object_r:file_t:s0  
DIRK_GENTLY'S_HOLISTIC_DETECTIVE_AGENCY.TXT

lrwxrwxrwx  pepijn pepijn user_u:object_r:file_t:s0Fotos -> Foto's
drwxrwxr-x  pepijn pepijn system_u:object_r:file_t:s0  Foto's
-rw-rw-r--  pepijn pepijn system_u:object_r:file_t:s0  
HITCHHIKER'S_GUIDE_TO_THE_GALAXY.TXT
-rw-rw-r--  pepijn pepijn system_u:object_r:file_t:s0  
LAST_CHANCE_TO_SEE.TXT

drwxrwxr-x  pepijn pepijn system_u:object_r:file_t:s0  Martijn
-rw-rw-r--  pepijn pepijn system_u:object_r:file_t:s0  
MOSTLY_HARMLESS.TXT

drwxrwxr-x  pepijn pepijn system_u:object_r:file_t:s0  recycled
-rw-rw-r--  pepijn pepijn system_u:object_r:file_t:s0  
RESTAURANT_END_OF_THE_UNIVERSE.TXT
-rw-rw-r--  pepijn pepijn system_u:object_r:file_t:s0  
STARSHIP_TITANIC.TXT

drwxrwxr-x  pepijn pepijn system_u:object_r:file_t:s0  temp
-rw-rw-r--  pepijn pepijn system_u:object_r:samba_share_t:s0 test2.txt
-rw-rw-r--  pepijn pepijn system_u:object_r:samba_share_t:s0 test.txt
drwxrwxr-x  pepijn pepijn system_u:object_r:file_t:s0  Video
-rw-rw-r--  pepijn pepijn user_u:object_r:file_t:s0volumeid.zbx
drwxrwxr-x  pepijn pepijn user_u:object_r:file_t:s0XXX
-rw-rw-r--  pepijn pepijn system_u:object_r:file_t:s0  
YOUNG_ZAPHOD_PLAYS_IT_SAFE.TXT


The existing files have a different security context (file_t) than the 
new ones (samba_share_t). I have no idea how or why this has happened, 
and frankly I don't feel like spending any more time to find out 
(although I'm still interested if someone knows more about how this 
could happen). Since the server is now just an internal file server I 
decided just to turn off SELinux. Now the share works perfectly again!


Thanks everyone for your time and patience!

Kind regards,
Pepijn Schmitz

Pepijn Schmitz wrote:
I tried commenting out the write list = pepijn line and adding a guest 
ok = yes line, but it made no difference, both when logging in as 
pepijn or when logging in as guest.


Kind regards,
Pepijn Schmitz

Jason Waters wrote:

Remove any restrictions on the shares.  Like valid user and that sort of
thing.

Jason Waters


-Original Message-
From: Pepijn Schmitz [mailto:[EMAIL PROTECTED] Sent: Wednesday, 
May 21, 2008 10:08 AM

To: Rubin Bennett
Cc: Jason Waters; samba@lists.samba.org
Subject: Re: [Samba] Existing files don't show up in share, new files do

I'm slightly closer to finding the cause of this problem. I set the 
smbd log level to 7 and found the following entries when trying to 
list the contents of the share:


[2008/05/21 15:27:05, 5] smbd/uid.c:change_to_user(273)
  change_to_user uid=(500,500) gid=(0,500)
[2008/05/21 15:27:05, 3] smbd/trans2.c:call_trans2findfirst(1704)
  call_trans2findfirst: dirtype = 16, maxentries = 1366, 
close_after_first=0, close_if_end = 2 requires_resume_key = 4 level = 
0x104, max_data_bytes = 16644

[2008/05/21 15:27:05, 5] smbd/filename.c:unix_convert(147)
  unix_convert called on file "*"
[2008/05/21 15:27:05, 5] smbd/filename.c:unix_convert(246)
  unix_convert begin: name = *, dirpath = , start = *
[2008/05/21 15:27:05, 5] smbd/trans2.c:call_trans2findfirst(1769)
  dir=./, mask = *
[2008/05/21 15:27:05, 5] smbd/dir.c:dptr_create(392)
  dptr_create dir=./
[2008/05/21 15:27:05, 3] smbd/dir.c:dptr_create(515)
  creating new dirptr 256 for path ./, expect_close = 1
[2008/05/21 15:27:05, 4] smbd/trans2.c:call_trans2findfirst(1837)
  dptr_num is 256, wcard = *, attr = 22
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1255)
  get_lanman2_dir_entry found ./. fname=.
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1255)
  get_lanman2_dir_entry found ./.. fname=..
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./Audio] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat 
[./DIRK_GENTLY'S_HOLISTIC_DETECTIVE_AGENCY.TXT] (Permission denied)

[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./Foto's] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat 
[./HITCHHIKER'S_GUIDE_TO_THE_GALAXY.TXT] (Permission denied)

[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./LAST_CHANCE_TO_SEE

Re: [Samba] Existing files don't show up in share, new files do

2008-05-21 Thread Rubin Bennett
Ok then my guess is that somehow Samba is reverting to nobody/nogroup or
similar guest permissions.  chmod 777 Audio and see what happens?

Rubin
On Wed, 2008-05-21 at 16:09 +0200, Pepijn Schmitz wrote:
> I'm slightly closer to finding the cause of this problem. I set the smbd 
> log level to 7 and found the following entries when trying to list the 
> contents of the share:
> 
> [2008/05/21 15:27:05, 5] smbd/uid.c:change_to_user(273)
>  change_to_user uid=(500,500) gid=(0,500)
> [2008/05/21 15:27:05, 3] smbd/trans2.c:call_trans2findfirst(1704)
>  call_trans2findfirst: dirtype = 16, maxentries = 1366, 
> close_after_first=0, close_if_end = 2 requires_resume_key = 4 level = 
> 0x104, max_data_bytes = 16644
> [2008/05/21 15:27:05, 5] smbd/filename.c:unix_convert(147)
>  unix_convert called on file "*"
> [2008/05/21 15:27:05, 5] smbd/filename.c:unix_convert(246)
>  unix_convert begin: name = *, dirpath = , start = *
> [2008/05/21 15:27:05, 5] smbd/trans2.c:call_trans2findfirst(1769)
>  dir=./, mask = *
> [2008/05/21 15:27:05, 5] smbd/dir.c:dptr_create(392)
>  dptr_create dir=./
> [2008/05/21 15:27:05, 3] smbd/dir.c:dptr_create(515)
>  creating new dirptr 256 for path ./, expect_close = 1
> [2008/05/21 15:27:05, 4] smbd/trans2.c:call_trans2findfirst(1837)
>  dptr_num is 256, wcard = *, attr = 22
> [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1255)
>  get_lanman2_dir_entry found ./. fname=.
> [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1255)
>  get_lanman2_dir_entry found ./.. fname=..
> [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
>  get_lanman2_dir_entry:Couldn't stat [./Audio] (Permission denied)
> [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
>  get_lanman2_dir_entry:Couldn't stat 
> [./DIRK_GENTLY'S_HOLISTIC_DETECTIVE_AGENCY.TXT] (Permission denied)
> [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
>  get_lanman2_dir_entry:Couldn't stat [./Foto's] (Permission denied)
> [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
>  get_lanman2_dir_entry:Couldn't stat 
> [./HITCHHIKER'S_GUIDE_TO_THE_GALAXY.TXT] (Permission denied)
> [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
>  get_lanman2_dir_entry:Couldn't stat [./LAST_CHANCE_TO_SEE.TXT] 
> (Permission denied)
> [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
>  get_lanman2_dir_entry:Couldn't stat [./Martijn] (Permission denied)
> [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
>  get_lanman2_dir_entry:Couldn't stat [./MOSTLY_HARMLESS.TXT] (Permission 
> denied)
> [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
>  get_lanman2_dir_entry:Couldn't stat [./recycled] (Permission denied)
> [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
>  get_lanman2_dir_entry:Couldn't stat 
> [./RESTAURANT_END_OF_THE_UNIVERSE.TXT] (Permission denied)
> [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
>  get_lanman2_dir_entry:Couldn't stat [./STARSHIP_TITANIC.TXT] 
> (Permission denied)
> [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
>  get_lanman2_dir_entry:Couldn't stat [./temp] (Permission denied)
> [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
>  get_lanman2_dir_entry:Couldn't stat [./Video] (Permission denied)
> [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
>  get_lanman2_dir_entry:Couldn't stat [./YOUNG_ZAPHOD_PLAYS_IT_SAFE.TXT] 
> (Permission denied)
> [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
>  get_lanman2_dir_entry:Couldn't stat [./Fotos] (Permission denied)
> [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
>  get_lanman2_dir_entry:Couldn't stat [./.Trash-pepijn] (Permission denied)
> [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
>  get_lanman2_dir_entry:Couldn't stat [./.Trash-500] (Permission denied)
> [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
>  get_lanman2_dir_entry:Couldn't stat [./volumeid.zbx] (Permission denied)
> [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
>  get_lanman2_dir_entry:Couldn't stat [./XXX] (Permission denied)
> [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1255)
>  get_lanman2_dir_entry found ./test.txt fname=test.txt
> [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1255)
>  get_lanman2_dir_entry found ./test2.txt fname=test2.txt
> [2008/05/21 15:27:05, 5] smbd/trans2.c:call_trans2findfirst(1890)
>  call_trans2findfirst - (2) closing dptr_num 256
> [2008/05/21 15:27:05, 4] smbd/dir.c:dptr_close_internal(238)
>  closing dptr key 256
> 
> The "Permission denied"s correspond exactly to the files and directories 
> that are missing. As you can see, it somehow can't stat (whatever that 
> is) the existing files, but it can the new files. Which is bizarre, 
> since their permissions are the same. We need a real Samba internals 
> guru.

Re: [Samba] Existing files don't show up in share, new files do

2008-05-21 Thread Pepijn Schmitz
I tried commenting out the write list = pepijn line and adding a guest 
ok = yes line, but it made no difference, both when logging in as pepijn 
or when logging in as guest.


Kind regards,
Pepijn Schmitz

Jason Waters wrote:

Remove any restrictions on the shares.  Like valid user and that sort of
thing.

Jason Waters


-Original Message-
From: Pepijn Schmitz [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 21, 2008 10:08 AM

To: Rubin Bennett
Cc: Jason Waters; samba@lists.samba.org
Subject: Re: [Samba] Existing files don't show up in share, new files do

I'm slightly closer to finding the cause of this problem. I set the smbd 
log level to 7 and found the following entries when trying to list the 
contents of the share:


[2008/05/21 15:27:05, 5] smbd/uid.c:change_to_user(273)
  change_to_user uid=(500,500) gid=(0,500)
[2008/05/21 15:27:05, 3] smbd/trans2.c:call_trans2findfirst(1704)
  call_trans2findfirst: dirtype = 16, maxentries = 1366, 
close_after_first=0, close_if_end = 2 requires_resume_key = 4 level = 
0x104, max_data_bytes = 16644

[2008/05/21 15:27:05, 5] smbd/filename.c:unix_convert(147)
  unix_convert called on file "*"
[2008/05/21 15:27:05, 5] smbd/filename.c:unix_convert(246)
  unix_convert begin: name = *, dirpath = , start = *
[2008/05/21 15:27:05, 5] smbd/trans2.c:call_trans2findfirst(1769)
  dir=./, mask = *
[2008/05/21 15:27:05, 5] smbd/dir.c:dptr_create(392)
  dptr_create dir=./
[2008/05/21 15:27:05, 3] smbd/dir.c:dptr_create(515)
  creating new dirptr 256 for path ./, expect_close = 1
[2008/05/21 15:27:05, 4] smbd/trans2.c:call_trans2findfirst(1837)
  dptr_num is 256, wcard = *, attr = 22
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1255)
  get_lanman2_dir_entry found ./. fname=.
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1255)
  get_lanman2_dir_entry found ./.. fname=..
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./Audio] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat 
[./DIRK_GENTLY'S_HOLISTIC_DETECTIVE_AGENCY.TXT] (Permission denied)

[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./Foto's] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat 
[./HITCHHIKER'S_GUIDE_TO_THE_GALAXY.TXT] (Permission denied)

[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./LAST_CHANCE_TO_SEE.TXT] 
(Permission denied)

[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./Martijn] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./MOSTLY_HARMLESS.TXT] 
(Permission denied)

[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./recycled] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat 
[./RESTAURANT_END_OF_THE_UNIVERSE.TXT] (Permission denied)

[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./STARSHIP_TITANIC.TXT] 
(Permission denied)

[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./temp] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./Video] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./YOUNG_ZAPHOD_PLAYS_IT_SAFE.TXT] 
(Permission denied)

[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./Fotos] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./.Trash-pepijn] (Permission
denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./.Trash-500] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./volumeid.zbx] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./XXX] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1255)
  get_lanman2_dir_entry found ./test.txt fname=test.txt
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1255)
  get_lanman2_dir_entry found ./test2.txt fname=test2.txt
[2008/05/21 15:27:05, 5] smbd/trans2.c:call_trans2findfirst(1890)
  call_trans2findfirst - (2) closing dptr_num 256
[2008/05/21 15:27:05, 4] smbd/dir.c:dptr_close_internal(238)
  closing dptr key 256

The "Permission denied"s correspond exactly to 

RE: [Samba] Existing files don't show up in share, new files do

2008-05-21 Thread stephane . purnelle
It's the unix right which is incorrect.

what is the unix right of the file on the server ?


---
Stéphane PURNELLE [EMAIL PROTECTED]
Service Informatique   Corman S.A.   Tel : 00 32 087/342467

[EMAIL PROTECTED] a écrit sur 
21/05/2008 16:18:41 :

> Remove any restrictions on the shares.  Like valid user and that sort of
> thing.
> 
> Jason Waters
> 
> 
> -Original Message-
> From: Pepijn Schmitz [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, May 21, 2008 10:08 AM
> To: Rubin Bennett
> Cc: Jason Waters; samba@lists.samba.org
> Subject: Re: [Samba] Existing files don't show up in share, new files do
> 
> I'm slightly closer to finding the cause of this problem. I set the smbd 

> log level to 7 and found the following entries when trying to list the 
> contents of the share:
> 
> [2008/05/21 15:27:05, 5] smbd/uid.c:change_to_user(273)
>   change_to_user uid=(500,500) gid=(0,500)
> [2008/05/21 15:27:05, 3] smbd/trans2.c:call_trans2findfirst(1704)
>   call_trans2findfirst: dirtype = 16, maxentries = 1366, 
> close_after_first=0, close_if_end = 2 requires_resume_key = 4 level = 
> 0x104, max_data_bytes = 16644
> [2008/05/21 15:27:05, 5] smbd/filename.c:unix_convert(147)
>   unix_convert called on file "*"
> [2008/05/21 15:27:05, 5] smbd/filename.c:unix_convert(246)
>   unix_convert begin: name = *, dirpath = , start = *
> [2008/05/21 15:27:05, 5] smbd/trans2.c:call_trans2findfirst(1769)
>   dir=./, mask = *
> [2008/05/21 15:27:05, 5] smbd/dir.c:dptr_create(392)
>   dptr_create dir=./
> [2008/05/21 15:27:05, 3] smbd/dir.c:dptr_create(515)
>   creating new dirptr 256 for path ./, expect_close = 1
> [2008/05/21 15:27:05, 4] smbd/trans2.c:call_trans2findfirst(1837)
>   dptr_num is 256, wcard = *, attr = 22
> [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1255)
>   get_lanman2_dir_entry found ./. fname=.
> [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1255)
>   get_lanman2_dir_entry found ./.. fname=..
> [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
>   get_lanman2_dir_entry:Couldn't stat [./Audio] (Permission denied)
> [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
>   get_lanman2_dir_entry:Couldn't stat 
> [./DIRK_GENTLY'S_HOLISTIC_DETECTIVE_AGENCY.TXT] (Permission denied)
> [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
>   get_lanman2_dir_entry:Couldn't stat [./Foto's] (Permission denied)
> [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
>   get_lanman2_dir_entry:Couldn't stat 
> [./HITCHHIKER'S_GUIDE_TO_THE_GALAXY.TXT] (Permission denied)
> [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
>   get_lanman2_dir_entry:Couldn't stat [./LAST_CHANCE_TO_SEE.TXT] 
> (Permission denied)
> [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
>   get_lanman2_dir_entry:Couldn't stat [./Martijn] (Permission denied)
> [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
>   get_lanman2_dir_entry:Couldn't stat [./MOSTLY_HARMLESS.TXT] 
> (Permission denied)
> [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
>   get_lanman2_dir_entry:Couldn't stat [./recycled] (Permission denied)
> [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
>   get_lanman2_dir_entry:Couldn't stat 
> [./RESTAURANT_END_OF_THE_UNIVERSE.TXT] (Permission denied)
> [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
>   get_lanman2_dir_entry:Couldn't stat [./STARSHIP_TITANIC.TXT] 
> (Permission denied)
> [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
>   get_lanman2_dir_entry:Couldn't stat [./temp] (Permission denied)
> [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
>   get_lanman2_dir_entry:Couldn't stat [./Video] (Permission denied)
> [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
>   get_lanman2_dir_entry:Couldn't stat [./YOUNG_ZAPHOD_PLAYS_IT_SAFE.TXT] 

> (Permission denied)
> [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
>   get_lanman2_dir_entry:Couldn't stat [./Fotos] (Permission denied)
> [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
>   get_lanman2_dir_entry:Couldn't stat [./.Trash-pepijn] (Permission
> denied)
> [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
>   get_lanman2_dir_entry:Couldn't stat [./.Trash-500] (Permission denied)
> [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
>   get_lanman2_dir_entry:Couldn't stat [./volumeid.zbx] (Permission 
denied)
> [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
>   get_lanman2_dir_entry:Couldn't stat [./XXX] (Permission denied)
> [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1255)
>   get_lanman2_dir_entry found ./test.txt fname=test.txt
> [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1255)
>   get_lanman2_dir_entry found ./test2.txt fname=te

RE: [Samba] Existing files don't show up in share, new files do

2008-05-21 Thread Jason Waters
Remove any restrictions on the shares.  Like valid user and that sort of
thing.

Jason Waters


-Original Message-
From: Pepijn Schmitz [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 21, 2008 10:08 AM
To: Rubin Bennett
Cc: Jason Waters; samba@lists.samba.org
Subject: Re: [Samba] Existing files don't show up in share, new files do

I'm slightly closer to finding the cause of this problem. I set the smbd 
log level to 7 and found the following entries when trying to list the 
contents of the share:

[2008/05/21 15:27:05, 5] smbd/uid.c:change_to_user(273)
  change_to_user uid=(500,500) gid=(0,500)
[2008/05/21 15:27:05, 3] smbd/trans2.c:call_trans2findfirst(1704)
  call_trans2findfirst: dirtype = 16, maxentries = 1366, 
close_after_first=0, close_if_end = 2 requires_resume_key = 4 level = 
0x104, max_data_bytes = 16644
[2008/05/21 15:27:05, 5] smbd/filename.c:unix_convert(147)
  unix_convert called on file "*"
[2008/05/21 15:27:05, 5] smbd/filename.c:unix_convert(246)
  unix_convert begin: name = *, dirpath = , start = *
[2008/05/21 15:27:05, 5] smbd/trans2.c:call_trans2findfirst(1769)
  dir=./, mask = *
[2008/05/21 15:27:05, 5] smbd/dir.c:dptr_create(392)
  dptr_create dir=./
[2008/05/21 15:27:05, 3] smbd/dir.c:dptr_create(515)
  creating new dirptr 256 for path ./, expect_close = 1
[2008/05/21 15:27:05, 4] smbd/trans2.c:call_trans2findfirst(1837)
  dptr_num is 256, wcard = *, attr = 22
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1255)
  get_lanman2_dir_entry found ./. fname=.
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1255)
  get_lanman2_dir_entry found ./.. fname=..
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./Audio] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat 
[./DIRK_GENTLY'S_HOLISTIC_DETECTIVE_AGENCY.TXT] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./Foto's] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat 
[./HITCHHIKER'S_GUIDE_TO_THE_GALAXY.TXT] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./LAST_CHANCE_TO_SEE.TXT] 
(Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./Martijn] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./MOSTLY_HARMLESS.TXT] 
(Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./recycled] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat 
[./RESTAURANT_END_OF_THE_UNIVERSE.TXT] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./STARSHIP_TITANIC.TXT] 
(Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./temp] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./Video] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./YOUNG_ZAPHOD_PLAYS_IT_SAFE.TXT] 
(Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./Fotos] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./.Trash-pepijn] (Permission
denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./.Trash-500] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./volumeid.zbx] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./XXX] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1255)
  get_lanman2_dir_entry found ./test.txt fname=test.txt
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1255)
  get_lanman2_dir_entry found ./test2.txt fname=test2.txt
[2008/05/21 15:27:05, 5] smbd/trans2.c:call_trans2findfirst(1890)
  call_trans2findfirst - (2) closing dptr_num 256
[2008/05/21 15:27:05, 4] smbd/dir.c:dptr_close_internal(238)
  closing dptr key 256

The "Permission denied"s correspond exactly to the files and directories 
that are missing. As you can see, it somehow can't stat (whatever that 
is) the existing files, but it can the new files. Which is bizarre, 
since their permissions are the same. We need a real Samba internals 

Re: [Samba] Existing files don't show up in share, new files do

2008-05-21 Thread Pepijn Schmitz
I'm slightly closer to finding the cause of this problem. I set the smbd 
log level to 7 and found the following entries when trying to list the 
contents of the share:


[2008/05/21 15:27:05, 5] smbd/uid.c:change_to_user(273)
change_to_user uid=(500,500) gid=(0,500)
[2008/05/21 15:27:05, 3] smbd/trans2.c:call_trans2findfirst(1704)
call_trans2findfirst: dirtype = 16, maxentries = 1366, 
close_after_first=0, close_if_end = 2 requires_resume_key = 4 level = 
0x104, max_data_bytes = 16644

[2008/05/21 15:27:05, 5] smbd/filename.c:unix_convert(147)
unix_convert called on file "*"
[2008/05/21 15:27:05, 5] smbd/filename.c:unix_convert(246)
unix_convert begin: name = *, dirpath = , start = *
[2008/05/21 15:27:05, 5] smbd/trans2.c:call_trans2findfirst(1769)
dir=./, mask = *
[2008/05/21 15:27:05, 5] smbd/dir.c:dptr_create(392)
dptr_create dir=./
[2008/05/21 15:27:05, 3] smbd/dir.c:dptr_create(515)
creating new dirptr 256 for path ./, expect_close = 1
[2008/05/21 15:27:05, 4] smbd/trans2.c:call_trans2findfirst(1837)
dptr_num is 256, wcard = *, attr = 22
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1255)
get_lanman2_dir_entry found ./. fname=.
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1255)
get_lanman2_dir_entry found ./.. fname=..
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
get_lanman2_dir_entry:Couldn't stat [./Audio] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
get_lanman2_dir_entry:Couldn't stat 
[./DIRK_GENTLY'S_HOLISTIC_DETECTIVE_AGENCY.TXT] (Permission denied)

[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
get_lanman2_dir_entry:Couldn't stat [./Foto's] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
get_lanman2_dir_entry:Couldn't stat 
[./HITCHHIKER'S_GUIDE_TO_THE_GALAXY.TXT] (Permission denied)

[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
get_lanman2_dir_entry:Couldn't stat [./LAST_CHANCE_TO_SEE.TXT] 
(Permission denied)

[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
get_lanman2_dir_entry:Couldn't stat [./Martijn] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
get_lanman2_dir_entry:Couldn't stat [./MOSTLY_HARMLESS.TXT] (Permission 
denied)

[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
get_lanman2_dir_entry:Couldn't stat [./recycled] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
get_lanman2_dir_entry:Couldn't stat 
[./RESTAURANT_END_OF_THE_UNIVERSE.TXT] (Permission denied)

[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
get_lanman2_dir_entry:Couldn't stat [./STARSHIP_TITANIC.TXT] 
(Permission denied)

[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
get_lanman2_dir_entry:Couldn't stat [./temp] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
get_lanman2_dir_entry:Couldn't stat [./Video] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
get_lanman2_dir_entry:Couldn't stat [./YOUNG_ZAPHOD_PLAYS_IT_SAFE.TXT] 
(Permission denied)

[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
get_lanman2_dir_entry:Couldn't stat [./Fotos] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
get_lanman2_dir_entry:Couldn't stat [./.Trash-pepijn] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
get_lanman2_dir_entry:Couldn't stat [./.Trash-500] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
get_lanman2_dir_entry:Couldn't stat [./volumeid.zbx] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
get_lanman2_dir_entry:Couldn't stat [./XXX] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1255)
get_lanman2_dir_entry found ./test.txt fname=test.txt
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1255)
get_lanman2_dir_entry found ./test2.txt fname=test2.txt
[2008/05/21 15:27:05, 5] smbd/trans2.c:call_trans2findfirst(1890)
call_trans2findfirst - (2) closing dptr_num 256
[2008/05/21 15:27:05, 4] smbd/dir.c:dptr_close_internal(238)
closing dptr key 256

The "Permission denied"s correspond exactly to the files and directories 
that are missing. As you can see, it somehow can't stat (whatever that 
is) the existing files, but it can the new files. Which is bizarre, 
since their permissions are the same. We need a real Samba internals 
guru. What exactly is it trying to stat, and how is it possible for that 
to succeed for some files but fail for others while having the same 
permissions?


Kind regards,
Pepijn Schmitz

Rubin Bennett wrote:

Unless I missed it there was no further discussion of ACLs?

Run mount on the linux box and look to see if that filesystem is mounted
with the acl option.  If it was, you can either remou

[Samba] [Slightly OT] Mac and Samba

2008-05-21 Thread Rubin Bennett
Hello all...
I have a question that is outside the realm of my experience but that
has come up several times recently.

I have a mixed network (some Macs, some PCs) that needs a server.  I'm
going through the standard process of deciding between Samba and a
Windows domain controller, my strong preference being to install
Linux/Samba server.  The sticking point seems to be that the Mac users
need to be able to run Access and Quickbooks, recent versions, neither
of which are ported to the Mac as I understand it.

So my question is this:  When faced with this situation, what do folks
out there do?  Install a Terminal server of some flavor (out of reach
for this tiny non-profit)?  Or is there some simple thing I could do
that would bridge the gap in a cost effective and reasonably easy to
administer way?

Thanks very much in advance,
Rubin
-- 
Rubin Bennett
RB Technologies
http://thatitguy.com
[EMAIL PROTECTED]
(802)223-4448

"They that can give up essential liberty to obtain a little
temporary security deserve neither liberty nor safety"
  --Benjamin Franklin, Historical Review of Pennsylvania, 1759


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


Re: [Samba] Existing files don't show up in share, new files do

2008-05-21 Thread Pepijn Schmitz
I tried getfacl on both the share directory and the files within it, but 
it showed only the regular UNIX permissions, no access control lists. 
Nevertheless I tried mounting the filesystem that contains 
/mnt/data/multimedia with noacl, but it made no difference...


Kind regards,
Pepijn Schmitz

Rubin Bennett wrote:

Unless I missed it there was no further discussion of ACLs?

Run mount on the linux box and look to see if that filesystem is mounted
with the acl option.  If it was, you can either remountit without ACLs
or reset the ACLs on the filesystem.

Run getfacl on the directory and see if there's anything out of bounds
there; that's quite frankly the only thing I can think of that would
cause this behaviour.  Disappearing files have *always* been due to a
mismatch between Samba permissions and those set by the underlying
filesystem in my experience (10+ years of Samba and counting).  Not to
say that it's impossible you've found something new and different, but
statistics say it's very likely a permissions/ acl issue.

HTH,
Rubin


On Wed, 2008-05-21 at 09:11 -0400, Jason Waters wrote:
  

What about settings windows to view hidden files and system files.  Do
they show up then?

Jason Waters


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Greene, Joe
Sent: Wednesday, May 21, 2008 8:42 AM
To: samba@lists.samba.org
Subject: RE: [Samba] Existing files don't show up in share, new files do


His directory is already 777 and the 500 is the UID of pepijn on the
serve unless I miss my guess. I also had him check all permissions on
the directories above it to make sure they were at least 755 and they
were. 
BTW Pepijn, you might want o make sure that your userid is the same on

all of your linux boxes.. just check /etc/passwd to make sure username
Pepijn is userid 500, then on any system you have to change it, I
recommend running (as root) 'find / -user  -exec chown 500 {}
\;'
This may or may not have any affect on this problem. also check the
usermapping, maybe there is something there. 


Joe Greene
UNIX Systems Administrator
Phone 317-707-2730
Fax 317-707-2397
Hours M-F 7am-4pm

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Jason Waters
Sent: Wednesday, May 21, 2008 8:09 AM
To: samba@lists.samba.org
Subject: RE: [Samba] Existing files don't show up in share, new files do


Let's see if it's permissions(which is what I think it is).  chmod 777 *
in that directory and then see if it works.  Then we can figure out what
went on.  The uid of 500 of the new file seems strange.

 


Jason Waters

 

From: Pepijn Schmitz [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 21, 2008 7:56 AM

To: Jason Waters
Cc: samba@lists.samba.org
Subject: Re: [Samba] Existing files don't show up in share, new files do

 

Jason Waters wrote: 


What parameters are set on the share?  Anything like map system, map
hidden?

This is the share definition:

[multimedia]
comment = Multimedia Files
path = /mnt/data/multimedia
public = yes
writable = yes
printable = no
write list = pepijn

So no map system or map hidden. I should also note that neither the
share
definition nor the contents of the directory have changed. The only
thing
that happened was that the server, which used to be my router and
firewall
also, is now only a file server and no longer has a static IP address.



Are you using ACL's?

I don't think so. How can I tell?



What about giving us an ls -l of a
directory that isn't showing files.

Here's the ouput of ls -al on /mnt/data/multimedia:

total 2260
drwxrwxrwx 11 pepijn pepijn   4096 2008-05-17 14:13 .
drwxr-xr-x 10 root   root 4096 2008-05-16 19:58 ..
drwxr-xr-x  6 pepijn pepijn   4096 2008-05-17 14:16 Audio
-rw-rw-r--  1 pepijn pepijn 468919 2004-09-18 08:40
DIRK_GENTLY'S_HOLISTIC_DETECTIVE_AGENCY.TXT
lrwxrwxrwx  1 pepijn pepijn  6 2005-01-17 22:13 Fotos -> Foto's
drwxrwxr-x 41 pepijn pepijn   4096 2008-03-15 23:27 Foto's
-rw-rw-r--  1 pepijn pepijn 292097 2004-09-18 08:40
HITCHHIKER'S_GUIDE_TO_THE_GALAXY.TXT
-rw-rw-r--  1 pepijn pepijn 396618 2004-09-18 08:40
LAST_CHANCE_TO_SEE.TXT
drwxrwxr-x  4 pepijn pepijn   4096 2002-07-01 02:32 Martijn
-rw-rw-r--  1 pepijn pepijn 372140 2004-09-18 08:40 MOSTLY_HARMLESS.TXT
drwxrwxr-x  2 pepijn pepijn   4096 2002-03-31 04:48 recycled
-rw-rw-r--  1 pepijn pepijn 333862 2004-09-18 08:40
RESTAURANT_END_OF_THE_UNIVERSE.TXT
-rw-rw-r--  1 pepijn pepijn 296645 2004-09-18 08:40 STARSHIP_TITANIC.TXT
drwxrwxr-x  2 pepijn pepijn   4096 2004-11-28 17:00 temp
-rwxr--r--  1 pepijn pepijn  5 2008-05-17 14:13 test2.txt
-rwxr--r--  1 pepijn pepijn  6 2008-05-17 14:08 test.txt
drwx--  4 pepijn pepijn   4096 2005-07-02 16:17 .Trash-500
drwx--  2 pepijn pepijn   4096 2005-04-02 13:54 .Trash-pepijn
drwxrwxr-x 10 pepijn pepijn   4096 2008-03-15 23:31 Video
-r-xr--r--  1 pepijn pepijn 80 2005-07-10 19:07 volumeid.zbx
drwxr-xr-x  4 

RE: [Samba] Existing files don't show up in share, new files do

2008-05-21 Thread Rubin Bennett
Unless I missed it there was no further discussion of ACLs?

Run mount on the linux box and look to see if that filesystem is mounted
with the acl option.  If it was, you can either remountit without ACLs
or reset the ACLs on the filesystem.

Run getfacl on the directory and see if there's anything out of bounds
there; that's quite frankly the only thing I can think of that would
cause this behaviour.  Disappearing files have *always* been due to a
mismatch between Samba permissions and those set by the underlying
filesystem in my experience (10+ years of Samba and counting).  Not to
say that it's impossible you've found something new and different, but
statistics say it's very likely a permissions/ acl issue.

HTH,
Rubin


On Wed, 2008-05-21 at 09:11 -0400, Jason Waters wrote:
> What about settings windows to view hidden files and system files.  Do
> they show up then?
> 
> Jason Waters
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> Greene, Joe
> Sent: Wednesday, May 21, 2008 8:42 AM
> To: samba@lists.samba.org
> Subject: RE: [Samba] Existing files don't show up in share, new files do
> 
> 
> His directory is already 777 and the 500 is the UID of pepijn on the
> serve unless I miss my guess. I also had him check all permissions on
> the directories above it to make sure they were at least 755 and they
> were. 
> BTW Pepijn, you might want o make sure that your userid is the same on
> all of your linux boxes.. just check /etc/passwd to make sure username
> Pepijn is userid 500, then on any system you have to change it, I
> recommend running (as root) 'find / -user  -exec chown 500 {}
> \;'
> This may or may not have any affect on this problem. also check the
> usermapping, maybe there is something there. 
> 
> Joe Greene
> UNIX Systems Administrator
> Phone 317-707-2730
> Fax 317-707-2397
> Hours M-F 7am-4pm
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Jason Waters
> Sent: Wednesday, May 21, 2008 8:09 AM
> To: samba@lists.samba.org
> Subject: RE: [Samba] Existing files don't show up in share, new files do
> 
> 
> Let's see if it's permissions(which is what I think it is).  chmod 777 *
> in that directory and then see if it works.  Then we can figure out what
> went on.  The uid of 500 of the new file seems strange.
> 
>  
> 
> Jason Waters
> 
>  
> 
> From: Pepijn Schmitz [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, May 21, 2008 7:56 AM
> To: Jason Waters
> Cc: samba@lists.samba.org
> Subject: Re: [Samba] Existing files don't show up in share, new files do
> 
>  
> 
> Jason Waters wrote: 
> 
> What parameters are set on the share?  Anything like map system, map
> hidden?
> 
> This is the share definition:
> 
> [multimedia]
> comment = Multimedia Files
> path = /mnt/data/multimedia
> public = yes
> writable = yes
> printable = no
> write list = pepijn
> 
> So no map system or map hidden. I should also note that neither the
> share
> definition nor the contents of the directory have changed. The only
> thing
> that happened was that the server, which used to be my router and
> firewall
> also, is now only a file server and no longer has a static IP address.
> 
> 
> 
> Are you using ACL's?
> 
> I don't think so. How can I tell?
> 
> 
> 
> What about giving us an ls -l of a
> directory that isn't showing files.
> 
> Here's the ouput of ls -al on /mnt/data/multimedia:
> 
> total 2260
> drwxrwxrwx 11 pepijn pepijn   4096 2008-05-17 14:13 .
> drwxr-xr-x 10 root   root 4096 2008-05-16 19:58 ..
> drwxr-xr-x  6 pepijn pepijn   4096 2008-05-17 14:16 Audio
> -rw-rw-r--  1 pepijn pepijn 468919 2004-09-18 08:40
> DIRK_GENTLY'S_HOLISTIC_DETECTIVE_AGENCY.TXT
> lrwxrwxrwx  1 pepijn pepijn  6 2005-01-17 22:13 Fotos -> Foto's
> drwxrwxr-x 41 pepijn pepijn   4096 2008-03-15 23:27 Foto's
> -rw-rw-r--  1 pepijn pepijn 292097 2004-09-18 08:40
> HITCHHIKER'S_GUIDE_TO_THE_GALAXY.TXT
> -rw-rw-r--  1 pepijn pepijn 396618 2004-09-18 08:40
> LAST_CHANCE_TO_SEE.TXT
> drwxrwxr-x  4 pepijn pepijn   4096 2002-07-01 02:32 Martijn
> -rw-rw-r--  1 pepijn pepijn 372140 2004-09-18 08:40 MOSTLY_HARMLESS.TXT
> drwxrwxr-x  2 pepijn pepijn   4096 2002-03-31 04:48 recycled
> -rw-rw-r--  1 pepijn pepijn 333862 2004-09-18 08:40
> RESTAURANT_END_OF_THE_UNIVERSE.TXT
> -rw-rw-r--  1 pepijn pepijn 296645 2004-09-18 08:40 STARSHIP_TITANIC.TXT
> drwxrwxr-x  2 pepijn pepijn   4096 2004-11-28 17:00 temp
> -rwxr--r--  1 pepijn pepijn  5 2008-05-17 14:13 test2.txt
> -rwxr--r--  1 pepijn pepijn  6 2008-05-17 14:08 test.txt
> drwx--  4 pepijn pepijn   4096 2005-07-02 16:17 .Trash-500
> drwx--  2 pepijn pepijn   4096 2005-04-02 13:54 .Trash-pepijn
> drwxrwxr-x 10 pepijn pepijn   4096 2008-03-15 23:31 Video
> -r-xr--r--  1 pepijn pepijn 80 2005-07-10 19:07 volumeid.zbx
> drwxr-xr-x  4 pepijn pepijn   4096 2007-12-07 22:15 XXX
> -rw-rw-r--  1 pepijn pepijn  24247 2004-09

RE: [Samba] Existing files don't show up in share, new files do

2008-05-21 Thread Jason Waters
What about settings windows to view hidden files and system files.  Do
they show up then?

Jason Waters


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Greene, Joe
Sent: Wednesday, May 21, 2008 8:42 AM
To: samba@lists.samba.org
Subject: RE: [Samba] Existing files don't show up in share, new files do


His directory is already 777 and the 500 is the UID of pepijn on the
serve unless I miss my guess. I also had him check all permissions on
the directories above it to make sure they were at least 755 and they
were. 
BTW Pepijn, you might want o make sure that your userid is the same on
all of your linux boxes.. just check /etc/passwd to make sure username
Pepijn is userid 500, then on any system you have to change it, I
recommend running (as root) 'find / -user  -exec chown 500 {}
\;'
This may or may not have any affect on this problem. also check the
usermapping, maybe there is something there. 

Joe Greene
UNIX Systems Administrator
Phone 317-707-2730
Fax 317-707-2397
Hours M-F 7am-4pm

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Jason Waters
Sent: Wednesday, May 21, 2008 8:09 AM
To: samba@lists.samba.org
Subject: RE: [Samba] Existing files don't show up in share, new files do


Let's see if it's permissions(which is what I think it is).  chmod 777 *
in that directory and then see if it works.  Then we can figure out what
went on.  The uid of 500 of the new file seems strange.

 

Jason Waters

 

From: Pepijn Schmitz [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 21, 2008 7:56 AM
To: Jason Waters
Cc: samba@lists.samba.org
Subject: Re: [Samba] Existing files don't show up in share, new files do

 

Jason Waters wrote: 

What parameters are set on the share?  Anything like map system, map
hidden?

This is the share definition:

[multimedia]
comment = Multimedia Files
path = /mnt/data/multimedia
public = yes
writable = yes
printable = no
write list = pepijn

So no map system or map hidden. I should also note that neither the
share
definition nor the contents of the directory have changed. The only
thing
that happened was that the server, which used to be my router and
firewall
also, is now only a file server and no longer has a static IP address.



Are you using ACL's?

I don't think so. How can I tell?



What about giving us an ls -l of a
directory that isn't showing files.

Here's the ouput of ls -al on /mnt/data/multimedia:

total 2260
drwxrwxrwx 11 pepijn pepijn   4096 2008-05-17 14:13 .
drwxr-xr-x 10 root   root 4096 2008-05-16 19:58 ..
drwxr-xr-x  6 pepijn pepijn   4096 2008-05-17 14:16 Audio
-rw-rw-r--  1 pepijn pepijn 468919 2004-09-18 08:40
DIRK_GENTLY'S_HOLISTIC_DETECTIVE_AGENCY.TXT
lrwxrwxrwx  1 pepijn pepijn  6 2005-01-17 22:13 Fotos -> Foto's
drwxrwxr-x 41 pepijn pepijn   4096 2008-03-15 23:27 Foto's
-rw-rw-r--  1 pepijn pepijn 292097 2004-09-18 08:40
HITCHHIKER'S_GUIDE_TO_THE_GALAXY.TXT
-rw-rw-r--  1 pepijn pepijn 396618 2004-09-18 08:40
LAST_CHANCE_TO_SEE.TXT
drwxrwxr-x  4 pepijn pepijn   4096 2002-07-01 02:32 Martijn
-rw-rw-r--  1 pepijn pepijn 372140 2004-09-18 08:40 MOSTLY_HARMLESS.TXT
drwxrwxr-x  2 pepijn pepijn   4096 2002-03-31 04:48 recycled
-rw-rw-r--  1 pepijn pepijn 333862 2004-09-18 08:40
RESTAURANT_END_OF_THE_UNIVERSE.TXT
-rw-rw-r--  1 pepijn pepijn 296645 2004-09-18 08:40 STARSHIP_TITANIC.TXT
drwxrwxr-x  2 pepijn pepijn   4096 2004-11-28 17:00 temp
-rwxr--r--  1 pepijn pepijn  5 2008-05-17 14:13 test2.txt
-rwxr--r--  1 pepijn pepijn  6 2008-05-17 14:08 test.txt
drwx--  4 pepijn pepijn   4096 2005-07-02 16:17 .Trash-500
drwx--  2 pepijn pepijn   4096 2005-04-02 13:54 .Trash-pepijn
drwxrwxr-x 10 pepijn pepijn   4096 2008-03-15 23:31 Video
-r-xr--r--  1 pepijn pepijn 80 2005-07-10 19:07 volumeid.zbx
drwxr-xr-x  4 pepijn pepijn   4096 2007-12-07 22:15 XXX
-rw-rw-r--  1 pepijn pepijn  24247 2004-09-18 08:40
YOUNG_ZAPHOD_PLAYS_IT_SAFE.TXT

When I mount the share on another Linux system using this command:

sudo mount -t cifs -o user=pepijn //10.0.0.163/multimedia roadrunner/

And then perform an ls -al in the roadrunner directory the output is as
follows:

total 2052
drwxrwxrwx 115005000 2008-05-17 14:13 .
drwxr-xr-x 22 pepijn pepijn 4096 2008-05-21 13:50 ..
-rwxr--r--  15005005 2008-05-17 14:13 test2.txt
-rwxr--r--  15005006 2008-05-17 14:08 test.txt

As you can see it only show the two test files I created since this
problem started.



Is it just files or does it happen to
folders too.
  

It happens with both.

Kind regards,
Pepijn Schmitz



 
Jason Waters
 
 
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Pepijn Schmitz
Sent: Wednesday, May 21, 2008 7:38 AM
To: samba@lists.samba.org
Subject: Re: [Samba] Existing files don't show up in share, new files do
 
*Bump*
 
Does this ring a bell with anyone? I'm still at a loss and so it s

RE: [Samba] Existing files don't show up in share, new files do

2008-05-21 Thread Greene, Joe

His directory is already 777 and the 500 is the UID of pepijn on the
serve unless I miss my guess. I also had him check all permissions on
the directories above it to make sure they were at least 755 and they
were. 
BTW Pepijn, you might want o make sure that your userid is the same on
all of your linux boxes.. just check /etc/passwd to make sure username
Pepijn is userid 500, then on any system you have to change it, I
recommend running (as root) 'find / -user  -exec chown 500 {}
\;'
This may or may not have any affect on this problem. also check the
usermapping, maybe there is something there. 

Joe Greene
UNIX Systems Administrator
Phone 317-707-2730
Fax 317-707-2397
Hours M-F 7am-4pm

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Jason Waters
Sent: Wednesday, May 21, 2008 8:09 AM
To: samba@lists.samba.org
Subject: RE: [Samba] Existing files don't show up in share, new files do


Let's see if it's permissions(which is what I think it is).  chmod 777 *
in that directory and then see if it works.  Then we can figure out what
went on.  The uid of 500 of the new file seems strange.

 

Jason Waters

 

From: Pepijn Schmitz [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 21, 2008 7:56 AM
To: Jason Waters
Cc: samba@lists.samba.org
Subject: Re: [Samba] Existing files don't show up in share, new files do

 

Jason Waters wrote: 

What parameters are set on the share?  Anything like map system, map
hidden?

This is the share definition:

[multimedia]
comment = Multimedia Files
path = /mnt/data/multimedia
public = yes
writable = yes
printable = no
write list = pepijn

So no map system or map hidden. I should also note that neither the
share
definition nor the contents of the directory have changed. The only
thing
that happened was that the server, which used to be my router and
firewall
also, is now only a file server and no longer has a static IP address.



Are you using ACL's?

I don't think so. How can I tell?



What about giving us an ls -l of a
directory that isn't showing files.

Here's the ouput of ls -al on /mnt/data/multimedia:

total 2260
drwxrwxrwx 11 pepijn pepijn   4096 2008-05-17 14:13 .
drwxr-xr-x 10 root   root 4096 2008-05-16 19:58 ..
drwxr-xr-x  6 pepijn pepijn   4096 2008-05-17 14:16 Audio
-rw-rw-r--  1 pepijn pepijn 468919 2004-09-18 08:40
DIRK_GENTLY'S_HOLISTIC_DETECTIVE_AGENCY.TXT
lrwxrwxrwx  1 pepijn pepijn  6 2005-01-17 22:13 Fotos -> Foto's
drwxrwxr-x 41 pepijn pepijn   4096 2008-03-15 23:27 Foto's
-rw-rw-r--  1 pepijn pepijn 292097 2004-09-18 08:40
HITCHHIKER'S_GUIDE_TO_THE_GALAXY.TXT
-rw-rw-r--  1 pepijn pepijn 396618 2004-09-18 08:40
LAST_CHANCE_TO_SEE.TXT
drwxrwxr-x  4 pepijn pepijn   4096 2002-07-01 02:32 Martijn
-rw-rw-r--  1 pepijn pepijn 372140 2004-09-18 08:40 MOSTLY_HARMLESS.TXT
drwxrwxr-x  2 pepijn pepijn   4096 2002-03-31 04:48 recycled
-rw-rw-r--  1 pepijn pepijn 333862 2004-09-18 08:40
RESTAURANT_END_OF_THE_UNIVERSE.TXT
-rw-rw-r--  1 pepijn pepijn 296645 2004-09-18 08:40 STARSHIP_TITANIC.TXT
drwxrwxr-x  2 pepijn pepijn   4096 2004-11-28 17:00 temp
-rwxr--r--  1 pepijn pepijn  5 2008-05-17 14:13 test2.txt
-rwxr--r--  1 pepijn pepijn  6 2008-05-17 14:08 test.txt
drwx--  4 pepijn pepijn   4096 2005-07-02 16:17 .Trash-500
drwx--  2 pepijn pepijn   4096 2005-04-02 13:54 .Trash-pepijn
drwxrwxr-x 10 pepijn pepijn   4096 2008-03-15 23:31 Video
-r-xr--r--  1 pepijn pepijn 80 2005-07-10 19:07 volumeid.zbx
drwxr-xr-x  4 pepijn pepijn   4096 2007-12-07 22:15 XXX
-rw-rw-r--  1 pepijn pepijn  24247 2004-09-18 08:40
YOUNG_ZAPHOD_PLAYS_IT_SAFE.TXT

When I mount the share on another Linux system using this command:

sudo mount -t cifs -o user=pepijn //10.0.0.163/multimedia roadrunner/

And then perform an ls -al in the roadrunner directory the output is as
follows:

total 2052
drwxrwxrwx 115005000 2008-05-17 14:13 .
drwxr-xr-x 22 pepijn pepijn 4096 2008-05-21 13:50 ..
-rwxr--r--  15005005 2008-05-17 14:13 test2.txt
-rwxr--r--  15005006 2008-05-17 14:08 test.txt

As you can see it only show the two test files I created since this
problem started.



Is it just files or does it happen to
folders too.
  

It happens with both.

Kind regards,
Pepijn Schmitz



 
Jason Waters
 
 
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Pepijn Schmitz
Sent: Wednesday, May 21, 2008 7:38 AM
To: samba@lists.samba.org
Subject: Re: [Samba] Existing files don't show up in share, new files do
 
*Bump*
 
Does this ring a bell with anyone? I'm still at a loss and so it seems 
is everyone else... :-)
 
In short: on one of my existing Samba 3.0 shares (Linux server, ext3 
filesystem) all existing files have suddenly become invisible, but it is

still possible to create, modify and delete new files (and I see no 
differences between these new files and the existing ones). This happens

with Windows XP, Windows Vi

RE: [Samba] Existing files don't show up in share, new files do

2008-05-21 Thread Jason Waters
Let's see if it's permissions(which is what I think it is).  chmod 777 *
in that directory and then see if it works.  Then we can figure out what
went on.  The uid of 500 of the new file seems strange.

 

Jason Waters

 

From: Pepijn Schmitz [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 21, 2008 7:56 AM
To: Jason Waters
Cc: samba@lists.samba.org
Subject: Re: [Samba] Existing files don't show up in share, new files do

 

Jason Waters wrote: 

What parameters are set on the share?  Anything like map system, map
hidden?

This is the share definition:

[multimedia]
comment = Multimedia Files
path = /mnt/data/multimedia
public = yes
writable = yes
printable = no
write list = pepijn

So no map system or map hidden. I should also note that neither the share
definition nor the contents of the directory have changed. The only thing
that happened was that the server, which used to be my router and firewall
also, is now only a file server and no longer has a static IP address.



Are you using ACL's?

I don't think so. How can I tell?



What about giving us an ls -l of a
directory that isn't showing files.

Here's the ouput of ls -al on /mnt/data/multimedia:

total 2260
drwxrwxrwx 11 pepijn pepijn   4096 2008-05-17 14:13 .
drwxr-xr-x 10 root   root 4096 2008-05-16 19:58 ..
drwxr-xr-x  6 pepijn pepijn   4096 2008-05-17 14:16 Audio
-rw-rw-r--  1 pepijn pepijn 468919 2004-09-18 08:40
DIRK_GENTLY'S_HOLISTIC_DETECTIVE_AGENCY.TXT
lrwxrwxrwx  1 pepijn pepijn  6 2005-01-17 22:13 Fotos -> Foto's
drwxrwxr-x 41 pepijn pepijn   4096 2008-03-15 23:27 Foto's
-rw-rw-r--  1 pepijn pepijn 292097 2004-09-18 08:40
HITCHHIKER'S_GUIDE_TO_THE_GALAXY.TXT
-rw-rw-r--  1 pepijn pepijn 396618 2004-09-18 08:40 LAST_CHANCE_TO_SEE.TXT
drwxrwxr-x  4 pepijn pepijn   4096 2002-07-01 02:32 Martijn
-rw-rw-r--  1 pepijn pepijn 372140 2004-09-18 08:40 MOSTLY_HARMLESS.TXT
drwxrwxr-x  2 pepijn pepijn   4096 2002-03-31 04:48 recycled
-rw-rw-r--  1 pepijn pepijn 333862 2004-09-18 08:40
RESTAURANT_END_OF_THE_UNIVERSE.TXT
-rw-rw-r--  1 pepijn pepijn 296645 2004-09-18 08:40 STARSHIP_TITANIC.TXT
drwxrwxr-x  2 pepijn pepijn   4096 2004-11-28 17:00 temp
-rwxr--r--  1 pepijn pepijn  5 2008-05-17 14:13 test2.txt
-rwxr--r--  1 pepijn pepijn  6 2008-05-17 14:08 test.txt
drwx--  4 pepijn pepijn   4096 2005-07-02 16:17 .Trash-500
drwx--  2 pepijn pepijn   4096 2005-04-02 13:54 .Trash-pepijn
drwxrwxr-x 10 pepijn pepijn   4096 2008-03-15 23:31 Video
-r-xr--r--  1 pepijn pepijn 80 2005-07-10 19:07 volumeid.zbx
drwxr-xr-x  4 pepijn pepijn   4096 2007-12-07 22:15 XXX
-rw-rw-r--  1 pepijn pepijn  24247 2004-09-18 08:40
YOUNG_ZAPHOD_PLAYS_IT_SAFE.TXT

When I mount the share on another Linux system using this command:

sudo mount -t cifs -o user=pepijn //10.0.0.163/multimedia roadrunner/

And then perform an ls -al in the roadrunner directory the output is as
follows:

total 2052
drwxrwxrwx 115005000 2008-05-17 14:13 .
drwxr-xr-x 22 pepijn pepijn 4096 2008-05-21 13:50 ..
-rwxr--r--  15005005 2008-05-17 14:13 test2.txt
-rwxr--r--  15005006 2008-05-17 14:08 test.txt

As you can see it only show the two test files I created since this
problem started.



Is it just files or does it happen to
folders too.
  

It happens with both.

Kind regards,
Pepijn Schmitz



 
Jason Waters
 
 
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Pepijn Schmitz
Sent: Wednesday, May 21, 2008 7:38 AM
To: samba@lists.samba.org
Subject: Re: [Samba] Existing files don't show up in share, new files do
 
*Bump*
 
Does this ring a bell with anyone? I'm still at a loss and so it seems 
is everyone else... :-)
 
In short: on one of my existing Samba 3.0 shares (Linux server, ext3 
filesystem) all existing files have suddenly become invisible, but it is 
still possible to create, modify and delete new files (and I see no 
differences between these new files and the existing ones). This happens 
with Windows XP, Windows Vista, Linux CIFS and Linux smclient clients, 
so it is likely to be a server problem. I'm stuck and I'm hoping a 
bright mind from this list will be able to help!
 
Kind regards,
Pepijn Schmitz
 
Pepijn Schmitz wrote:
  

I found out this bizarre problem also occurs when I mount the share 
from another Linux system, so it does not appear to be related to 
Windows.
 
To recap: one of my Samba shares suddenly mysteriously hides all 
existing files, while still working completely normally with any newly 
created files.
 
The shared directory (/mnt/data/multimedia) looks like this:
 
drwxrwxrwx 11 pepijn pepijn   4096 2008-05-17 14:08 .
drwxr-xr-x 10 root   root 4096 2008-05-16 19:58 ..
drwxr-xr-x  6 pepijn pepijn   4096 2006-07-02 15:49 Audio
lrwxrwxrwx  1 pepijn pepijn  6 2005-01-17 22:13 Fotos -> Foto's
drwxrwxr-x 41 pepijn pepijn   4096 2008-03-15 23:27 Foto's
drwxrwxr-x  4 pepijn pepijn   4096 2002-07-01 02:32 Martijn
d

Re: [Samba] Existing files don't show up in share, new files do

2008-05-21 Thread Pepijn Schmitz

Jason Waters wrote:

What parameters are set on the share?  Anything like map system, map
hidden?

This is the share definition:

   [multimedia]
   comment = Multimedia Files
   path = /mnt/data/multimedia
   public = yes
   writable = yes
   printable = no
   write list = pepijn

So no map system or map hidden. I should also note that neither the 
share definition nor the contents of the directory have changed. The 
only thing that happened was that the server, which used to be my router 
and firewall also, is now only a file server and no longer has a static 
IP address.

Are you using ACL's?

I don't think so. How can I tell?

What about giving us an ls -l of a
directory that isn't showing files.

Here's the ouput of ls -al on /mnt/data/multimedia:

total 2260
drwxrwxrwx 11 pepijn pepijn   4096 2008-05-17 14:13 .
drwxr-xr-x 10 root   root 4096 2008-05-16 19:58 ..
drwxr-xr-x  6 pepijn pepijn   4096 2008-05-17 14:16 Audio
-rw-rw-r--  1 pepijn pepijn 468919 2004-09-18 08:40 
DIRK_GENTLY'S_HOLISTIC_DETECTIVE_AGENCY.TXT

lrwxrwxrwx  1 pepijn pepijn  6 2005-01-17 22:13 Fotos -> Foto's
drwxrwxr-x 41 pepijn pepijn   4096 2008-03-15 23:27 Foto's
-rw-rw-r--  1 pepijn pepijn 292097 2004-09-18 08:40 
HITCHHIKER'S_GUIDE_TO_THE_GALAXY.TXT

-rw-rw-r--  1 pepijn pepijn 396618 2004-09-18 08:40 LAST_CHANCE_TO_SEE.TXT
drwxrwxr-x  4 pepijn pepijn   4096 2002-07-01 02:32 Martijn
-rw-rw-r--  1 pepijn pepijn 372140 2004-09-18 08:40 MOSTLY_HARMLESS.TXT
drwxrwxr-x  2 pepijn pepijn   4096 2002-03-31 04:48 recycled
-rw-rw-r--  1 pepijn pepijn 333862 2004-09-18 08:40 
RESTAURANT_END_OF_THE_UNIVERSE.TXT

-rw-rw-r--  1 pepijn pepijn 296645 2004-09-18 08:40 STARSHIP_TITANIC.TXT
drwxrwxr-x  2 pepijn pepijn   4096 2004-11-28 17:00 temp
-rwxr--r--  1 pepijn pepijn  5 2008-05-17 14:13 test2.txt
-rwxr--r--  1 pepijn pepijn  6 2008-05-17 14:08 test.txt
drwx--  4 pepijn pepijn   4096 2005-07-02 16:17 .Trash-500
drwx--  2 pepijn pepijn   4096 2005-04-02 13:54 .Trash-pepijn
drwxrwxr-x 10 pepijn pepijn   4096 2008-03-15 23:31 Video
-r-xr--r--  1 pepijn pepijn 80 2005-07-10 19:07 volumeid.zbx
drwxr-xr-x  4 pepijn pepijn   4096 2007-12-07 22:15 XXX
-rw-rw-r--  1 pepijn pepijn  24247 2004-09-18 08:40 
YOUNG_ZAPHOD_PLAYS_IT_SAFE.TXT


When I mount the share on another Linux system using this command:

sudo mount -t cifs -o user=pepijn //10.0.0.163/multimedia roadrunner/

And then perform an ls -al in the roadrunner directory the output is as 
follows:


total 2052
drwxrwxrwx 115005000 2008-05-17 14:13 .
drwxr-xr-x 22 pepijn pepijn 4096 2008-05-21 13:50 ..
-rwxr--r--  15005005 2008-05-17 14:13 test2.txt
-rwxr--r--  15005006 2008-05-17 14:08 test.txt

As you can see it only show the two test files I created since this 
problem started.

Is it just files or does it happen to
folders too.
  

It happens with both.

Kind regards,
Pepijn Schmitz

Jason Waters


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Pepijn Schmitz
Sent: Wednesday, May 21, 2008 7:38 AM
To: samba@lists.samba.org
Subject: Re: [Samba] Existing files don't show up in share, new files do

*Bump*

Does this ring a bell with anyone? I'm still at a loss and so it seems 
is everyone else... :-)


In short: on one of my existing Samba 3.0 shares (Linux server, ext3 
filesystem) all existing files have suddenly become invisible, but it is 
still possible to create, modify and delete new files (and I see no 
differences between these new files and the existing ones). This happens 
with Windows XP, Windows Vista, Linux CIFS and Linux smclient clients, 
so it is likely to be a server problem. I'm stuck and I'm hoping a 
bright mind from this list will be able to help!


Kind regards,
Pepijn Schmitz

Pepijn Schmitz wrote:
  
I found out this bizarre problem also occurs when I mount the share 
from another Linux system, so it does not appear to be related to 
Windows.


To recap: one of my Samba shares suddenly mysteriously hides all 
existing files, while still working completely normally with any newly 
created files.


The shared directory (/mnt/data/multimedia) looks like this:

drwxrwxrwx 11 pepijn pepijn   4096 2008-05-17 14:08 .
drwxr-xr-x 10 root   root 4096 2008-05-16 19:58 ..
drwxr-xr-x  6 pepijn pepijn   4096 2006-07-02 15:49 Audio
lrwxrwxrwx  1 pepijn pepijn  6 2005-01-17 22:13 Fotos -> Foto's
drwxrwxr-x 41 pepijn pepijn   4096 2008-03-15 23:27 Foto's
drwxrwxr-x  4 pepijn pepijn   4096 2002-07-01 02:32 Martijn
drwxrwxr-x  2 pepijn pepijn   4096 2002-03-31 04:48 recycled
drwxrwxr-x  2 pepijn pepijn   4096 2004-11-28 17:00 temp
-rwxr--r--  1 pepijn pepijn  6 2008-05-17 14:08 test.txt
drwx--  4 pepijn pepijn   4096 2005-07-02 16:17 .Trash-500
drwx--  2 pepijn pepijn   4096 2005-04-02 13:54 .Trash-pepijn
drwxrwxr-x 10 pepijn pepijn   4096 2008-03-15 23:31 Video
-r-xr--r--  1 pepijn pepijn 80 2005-07-10 19:07 volumeid.zbx
drwxr-xr

RE: [Samba] Existing files don't show up in share, new files do

2008-05-21 Thread Jason Waters
What parameters are set on the share?  Anything like map system, map
hidden?  Are you using ACL's?  What about giving us an ls -l of a
directory that isn't showing files.  Is it just files or does it happen to
folders too.

Jason Waters


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Pepijn Schmitz
Sent: Wednesday, May 21, 2008 7:38 AM
To: samba@lists.samba.org
Subject: Re: [Samba] Existing files don't show up in share, new files do

*Bump*

Does this ring a bell with anyone? I'm still at a loss and so it seems 
is everyone else... :-)

In short: on one of my existing Samba 3.0 shares (Linux server, ext3 
filesystem) all existing files have suddenly become invisible, but it is 
still possible to create, modify and delete new files (and I see no 
differences between these new files and the existing ones). This happens 
with Windows XP, Windows Vista, Linux CIFS and Linux smclient clients, 
so it is likely to be a server problem. I'm stuck and I'm hoping a 
bright mind from this list will be able to help!

Kind regards,
Pepijn Schmitz

Pepijn Schmitz wrote:
> I found out this bizarre problem also occurs when I mount the share 
> from another Linux system, so it does not appear to be related to 
> Windows.
>
> To recap: one of my Samba shares suddenly mysteriously hides all 
> existing files, while still working completely normally with any newly 
> created files.
>
> The shared directory (/mnt/data/multimedia) looks like this:
>
> drwxrwxrwx 11 pepijn pepijn   4096 2008-05-17 14:08 .
> drwxr-xr-x 10 root   root 4096 2008-05-16 19:58 ..
> drwxr-xr-x  6 pepijn pepijn   4096 2006-07-02 15:49 Audio
> lrwxrwxrwx  1 pepijn pepijn  6 2005-01-17 22:13 Fotos -> Foto's
> drwxrwxr-x 41 pepijn pepijn   4096 2008-03-15 23:27 Foto's
> drwxrwxr-x  4 pepijn pepijn   4096 2002-07-01 02:32 Martijn
> drwxrwxr-x  2 pepijn pepijn   4096 2002-03-31 04:48 recycled
> drwxrwxr-x  2 pepijn pepijn   4096 2004-11-28 17:00 temp
> -rwxr--r--  1 pepijn pepijn  6 2008-05-17 14:08 test.txt
> drwx--  4 pepijn pepijn   4096 2005-07-02 16:17 .Trash-500
> drwx--  2 pepijn pepijn   4096 2005-04-02 13:54 .Trash-pepijn
> drwxrwxr-x 10 pepijn pepijn   4096 2008-03-15 23:31 Video
> -r-xr--r--  1 pepijn pepijn 80 2005-07-10 19:07 volumeid.zbx
> drwxr-xr-x  4 pepijn pepijn   4096 2007-12-07 22:15 XXX
>
> When I mount the share on another Linux system using mount -t cifs, 
> the contents look like this:
>
> drwxrwxrwx 11  500  5000 2008-05-17 14:08 .
> drwxr-xr-x  4 root root 4096 2008-05-17 14:06 ..
> -rwxr--r--  1  500  5006 2008-05-17 14:08 test.txt
>
> The test.txt is a file I created since this problem started and as you 
> can see it's the only one visible. I can change its contents on the 
> file server and see the changes on the client. I can manipulate the 
> file on the client, even create new files, it all works perfectly. But 
> I can't see any of the existing files or directories. It's utterly 
> bizarre to me.
>
> I tried using smbclient, and it displays the same behaviour, so it 
> really looks like the problem is on the server side. I tried 
> "touch"ing the existing directories but that made no difference either.
>
> Does anyone know what might cause this strange behaviour?
>
> Kind regards,
> Pepijn Schmitz
>
> Pepijn Schmitz wrote:
>> I am suddenly no longer able to see any existing files on one of my
>> shares, from my Windows clients.
>>
>> I have a Linux server (Fedora Core 8) which used to be my firewall and
>> router as well as file and print server. There are two Samba shares on
>> it I have mounted on various Windows clients: my home directory and a
>> multimedia directory with my music and videos, etc. I mount the former
>> as H: on all my Windows machines and the latter as M:.
>>
>> Recently I installed a new server to be router and firewall. I kept the
>> existing server as file server though, only it now no longer has a
fixed
>> IP address, and it is no longer configured to be be the master browser.
>>
>> Since this change, my Windows clients no longer see the existing files
>> on the multimedia share! Some strange features of the problem are:
>>
>> * It occurs on my Windows Vista Home Premium 64-bit machine, as well as
>> on my Windows XP SP2 machine, in exactly the same way.
>> * My home directory share doesn't have the problem, I can still see all
>> the existing files there.
>> * There are no errors connecting to the share from the Windows side,
nor
>> do I see strange things in the logs on the file server.
>> * I can still create new files on the share from Windows! The new file
>> will show up locally on the file server (as verified by logging in with
>> SSH and checking the shared directory), and my other Windows client
will
>> see the new file as well.
>> * I can also create new files locally on the file server, and these
will
>> also show up on the Windows clients.
>> * I can see no difference between the existing files and any new files
>

Re: [Samba] Existing files don't show up in share, new files do

2008-05-21 Thread Pepijn Schmitz

*Bump*

Does this ring a bell with anyone? I'm still at a loss and so it seems 
is everyone else... :-)


In short: on one of my existing Samba 3.0 shares (Linux server, ext3 
filesystem) all existing files have suddenly become invisible, but it is 
still possible to create, modify and delete new files (and I see no 
differences between these new files and the existing ones). This happens 
with Windows XP, Windows Vista, Linux CIFS and Linux smclient clients, 
so it is likely to be a server problem. I'm stuck and I'm hoping a 
bright mind from this list will be able to help!


Kind regards,
Pepijn Schmitz

Pepijn Schmitz wrote:
I found out this bizarre problem also occurs when I mount the share 
from another Linux system, so it does not appear to be related to 
Windows.


To recap: one of my Samba shares suddenly mysteriously hides all 
existing files, while still working completely normally with any newly 
created files.


The shared directory (/mnt/data/multimedia) looks like this:

drwxrwxrwx 11 pepijn pepijn   4096 2008-05-17 14:08 .
drwxr-xr-x 10 root   root 4096 2008-05-16 19:58 ..
drwxr-xr-x  6 pepijn pepijn   4096 2006-07-02 15:49 Audio
lrwxrwxrwx  1 pepijn pepijn  6 2005-01-17 22:13 Fotos -> Foto's
drwxrwxr-x 41 pepijn pepijn   4096 2008-03-15 23:27 Foto's
drwxrwxr-x  4 pepijn pepijn   4096 2002-07-01 02:32 Martijn
drwxrwxr-x  2 pepijn pepijn   4096 2002-03-31 04:48 recycled
drwxrwxr-x  2 pepijn pepijn   4096 2004-11-28 17:00 temp
-rwxr--r--  1 pepijn pepijn  6 2008-05-17 14:08 test.txt
drwx--  4 pepijn pepijn   4096 2005-07-02 16:17 .Trash-500
drwx--  2 pepijn pepijn   4096 2005-04-02 13:54 .Trash-pepijn
drwxrwxr-x 10 pepijn pepijn   4096 2008-03-15 23:31 Video
-r-xr--r--  1 pepijn pepijn 80 2005-07-10 19:07 volumeid.zbx
drwxr-xr-x  4 pepijn pepijn   4096 2007-12-07 22:15 XXX

When I mount the share on another Linux system using mount -t cifs, 
the contents look like this:


drwxrwxrwx 11  500  5000 2008-05-17 14:08 .
drwxr-xr-x  4 root root 4096 2008-05-17 14:06 ..
-rwxr--r--  1  500  5006 2008-05-17 14:08 test.txt

The test.txt is a file I created since this problem started and as you 
can see it's the only one visible. I can change its contents on the 
file server and see the changes on the client. I can manipulate the 
file on the client, even create new files, it all works perfectly. But 
I can't see any of the existing files or directories. It's utterly 
bizarre to me.


I tried using smbclient, and it displays the same behaviour, so it 
really looks like the problem is on the server side. I tried 
"touch"ing the existing directories but that made no difference either.


Does anyone know what might cause this strange behaviour?

Kind regards,
Pepijn Schmitz

Pepijn Schmitz wrote:

I am suddenly no longer able to see any existing files on one of my
shares, from my Windows clients.

I have a Linux server (Fedora Core 8) which used to be my firewall and
router as well as file and print server. There are two Samba shares on
it I have mounted on various Windows clients: my home directory and a
multimedia directory with my music and videos, etc. I mount the former
as H: on all my Windows machines and the latter as M:.

Recently I installed a new server to be router and firewall. I kept the
existing server as file server though, only it now no longer has a fixed
IP address, and it is no longer configured to be be the master browser.

Since this change, my Windows clients no longer see the existing files
on the multimedia share! Some strange features of the problem are:

* It occurs on my Windows Vista Home Premium 64-bit machine, as well as
on my Windows XP SP2 machine, in exactly the same way.
* My home directory share doesn't have the problem, I can still see all
the existing files there.
* There are no errors connecting to the share from the Windows side, nor
do I see strange things in the logs on the file server.
* I can still create new files on the share from Windows! The new file
will show up locally on the file server (as verified by logging in with
SSH and checking the shared directory), and my other Windows client will
see the new file as well.
* I can also create new files locally on the file server, and these will
also show up on the Windows clients.
* I can see no difference between the existing files and any new files
created locally or through a Windows client. The file permissions are
all the same.
* The only difference between the two shares is that my home directory
is on the root filesystem (ext3) and the multimedia share
(/mnt/data/multimedia) is on a mounted ext3 file system (/mnt/data). But
this hasn't changed!
* While googling the problem I found some references to a "directory
name cache size" option which might be related, so I added a "directory
name cache size = 0" to my smb.conf, but that made no difference.

I've attached my smb.conf (I've removed all the comments for brevity).
I'll provide any log, trace or debug info if someone tells 

RE: [Samba] squid + samba error

2008-05-21 Thread Jason Waters
How many users do you have?  It says you reached your max for mapping.
Try changing

winbind uid = 1-2
winbind gid = 1-2

To

winbind uid = 1-3
winbind gid = 1-3

Jason Waters


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Wilson A. Galafassi Jr.
Sent: Tuesday, May 20, 2008 11:58 PM
To: samba@lists.samba.org
Subject: [Samba] squid + samba error

Hello to all.

I´m using squid + samba to authenticate my users with active directory.

The error occour only in the first time i authenticate an user.

All works fine, but i have this is my logs:

==> /var/log/samba/log.winbindd <==
[2008/05/21 00:32:36, 2] nsswitch/winbindd_util.c:add_trusted_domain(171)
  Added domain BUILTIN  S-1-5-32
[2008/05/21 00:32:37, 2]
libsmb/cliconnect.c:cli_session_setup_kerberos(615)
  Doing kerberos session setup
[2008/05/21 00:35:56, 1] nsswitch/winbindd_sid.c:winbindd_sid_to_gid(312)
  Could not get convert sid  from string
[2008/05/21 00:47:01, 1] nsswitch/winbindd_sid.c:winbindd_sid_to_gid(312)
  Could not get convert sid  from string
[2008/05/21 00:48:57, 1] nsswitch/winbindd_sid.c:winbindd_sid_to_gid(312)
  Could not get convert sid  from string

==> /var/log/samba/log.winbindd-idmap <==
[2008/05/21 00:47:01, 2] nsswitch/idmap.c:idmap_new_mapping(957)
  gid allocation failed! Can't create mapping
[2008/05/21 00:47:01, 1] nsswitch/idmap_tdb.c:idmap_tdb_allocate_id(470)
  Fatal Error: GID range full!! (max: 2)
[2008/05/21 00:47:01, 2] nsswitch/idmap.c:idmap_new_mapping(957)
  gid allocation failed! Can't create mapping
[2008/05/21 00:47:01, 1] nsswitch/idmap_tdb.c:idmap_tdb_allocate_id(470)
  Fatal Error: GID range full!! (max: 2)
[2008/05/21 00:47:01, 2] nsswitch/idmap.c:idmap_new_mapping(957)
  gid allocation failed! Can't create mapping

my smb.conf

workgroup = DIGITALSTORAGESD
password server = SERVER2003
realm = DIGITALSTORAGESD.LOCAL
security = ADS
netbios name = netserver

# Definiçs do winbind
bind interfaces only = yes
winbind separator = /
winbind uid = 1-2
winbind gid = 1-2
winbind enum users = yes
winbind enum groups = yes
winbind enum groups = yes
winbind use default domain = yes

log file = /var/log/samba/log.%m
log level = 2
max log size = 1000

my samba version: samba-3.0.28a-0

What i can to solve that error?

Thanks,
Wilson Galafassi

--
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


[Samba] Fwd: permissions

2008-05-21 Thread solarflow99
I guess not many people use this on here?  perhaps the cups list is a better
place to ask this?


-- Forwarded message --
From: solarflow99 <[EMAIL PROTECTED]>
Date: May 20, 2008 11:53 AM
Subject: permissions
To: samba@lists.samba.org


Hi, I am trying to run the cupsaddsmb command which uses: smbclient,
rpcclient, adddriver, setdriver commands to do its work.  It seems like it
expects be be root, since it has to write to various places:
/var/spool/cups/tmp/ and /usr/share/cups/drivers.  My question is since I am
using LDAP as the backend, root can't easily be used; does anyone have any
recommendations on how this can be done?

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


Re: [Samba] Write Once Read Many share with samba

2008-05-21 Thread Björn Jacke
On 2008-05-18 at 19:03 +1000 Jean-Yves Avenard sent off:
> I am trying to simulate a Write Once Read Many (WORM) drive using Samba.
> Eg. Anyone can write on a drive, but once the file has been written no
> one can delete or modify the file.

try making the shared directory be owned by root:root and mode 1777 and set
the "WORM" share settings like this:

read only = no
inherit owner = yes
force create mode = 0644
force directory mode = 1777
nt acl support = no

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