[Samba] Re: Can't see all of the directories in a share with 2.2.7a-1 & RH8...but older version/kernel can

Joe Gerkman joe.gerkman at gartner.com
Fri Jan 31 16:39:20 GMT 2003


Here's an update from the problem end :-)

On Thu, 2003-01-30 at 18:56, Chris de Vidal wrote:
> To the list: We've been having some off-list
> conversation and I wanted to clue you in here.  Our
> thread might be useful for posterity's (Google's?)
> sake.
> 
> /dev/idal
> 
> --- Joe Gerkman <joe.gerkman at gartner.com> wrote:
> > We're using the following command (from a shell
> > script):
> 
> First (this isn't your fix but a nicety), it's easier
> when this is in /etc/fstab instead of with a script. 
> It can be done automatically at boot (RedHat
> recognizes smbfs types and waits til network is
> started) or manually with the noauto option.  Then,
> you can just run
> mount /blahblah/Data
> 
> If you put your password in a credentials file (see
> below), you can protect your password.
> Again, not a fix for your issue but I thought you'd
> like to know that.

Thanks Chris, we were aware of that...but alas, this is one of those
things that was set in place before I got here, and something we just
left in place.  Fortunately, the user account used in this case is
properly sandboxed.

> > mount -f -t smbfs -o
> 
> Second, I had to look up -f.  man mount:
> -f     Causes everything to be done except for the
> actual system call; if it's not obvious, this
> ``fakes'' mount-ing  the  file  system.  This option
> is useful in conjunction with the -v flag to determine
> what the mount command is trying to do. It can also be
> used to add entries for devices that were mounted
> earlier with the -n option.
> 
> I have little confidence this will fix your problem,
> but please try it without that flag anyway.
> 
> It's just a shot in the dark...

Tried it with no flags and with reduced options, e.g. 

	mount -t smbfs -o username=xxxxxxx,password=xxxxxxx //blahblah/Data
/blahblah/data

No change...

> 
> >
> username=xxxxxxx,password=xxxxxxx,uid=xxx,gid=xxxxxxxxx,fmask=770,dmask=770
> > //blahblah/Data /blahblah/Data
> 
> Another nicety; use this option with mount or in your
> fstab:
> credentials=/some/file/chown/root.root/chmod/600
> with
> username = someuser
> password = somepassword
> inside that file.  I like to put mine in
> /etc/smb_passwd and I run chown 0.0/chmod 600 against
> it.
> 
> This lets you avoid putting the password in the
> (world-readable) fstab.  Just a suggestion.
> 
> > Same command we've been using for a while now (>1
> > year)...but then
> > again, maybe one of the options could have been
> > deprecated????
> > 
> > Also, we installed Samba via the RPMs from
> > samba.org...but I've also
> > tried building from source (both SRPMs and plain
> > source)...neither
> > changed anything...
> > 
> > Thanks again for your help Chris....
> 
> Don't thank me until I can confirm or deny it from a
> RH 7.3 and 8.0 box to an NT and 2000 Pro (no
> Server/Advanced) share (:
> 

Let me know if you find anything new...and thanks again (everyone,
especially Chris and Kurt for your suggestions and assistance...very
much appreciated).

-Joe

> /dev/idal
> 
> 
> 
> > On Thu, 2003-01-30 at 17:45, Chris de Vidal wrote:
> > > Whoa, really strange.  Might be something you're
> > > doing, but I'll post my results to you and the
> > list
> > > tomorrow and we can see if it's a consistent
> > problem
> > > with RedHat 7+ and 2000.
> > > 
> > > You are using smbmount or mount smbfs in fstab,
> > > correct?
> > > 
> > > Also, how did you install Samba?  I got an RPM
> > from
> > > Samba.org (well, an SRPM so I could tweak the
> > > ./configure line).
> > > 
> > > /dev/idal
> > > 
> > > --- Joe Gerkman <joe.gerkman at gartner.com> wrote:
> > > > Update...
> > > > 
> > > > See 554 files on rh8.0/2.2.7a machine, 627 on
> > the
> > > > rh6.2/2.0.6-9 machine
> > > > (the latter being the true number).  
> > > > 
> > > > Tried copying over the same smb.conf file (which
> > I
> > > > thought I'd done
> > > > before)...no change/luck.  Also tried the same
> > > > version of samba on a 7.3
> > > > as well as a 7.1 box (same smb.conf file
> > too)...no
> > > > luck there
> > > > either...oh, all had 2.4.x kernel, well except
> > for
> > > > the working machine
> > > > (if that matters).
> > > > 
> > > > On Thu, 2003-01-30 at 14:05, Chris de Vidal
> > wrote:
> > > > > You're using smbmount, right?  Sounds like
> > you're
> > > > > seeing only 512 files.. do ls | wc -l.  512 is
> > a
> > > > nice
> > > > > round binary number and is probably what
> > you're
> > > > > seeing.
> > > > > 
> > > > > I don't have a direct answer, but I'm under
> > the
> > > > > impression that there are many broken things
> > in
> > > > RedHat
> > > > > 8.0 (RedHat 7.0 also had many broken things..
> > > > > cooincidence??).  I wrote earlier this week
> > about
> > > > a
> > > > > RedHat 8-specific problem "cannot find name
> > for
> > > > group
> > > > > ID XXXXX".  Others with RedHat 8 have shared
> > > > similar
> > > > > stories, and I'm having no issues with the
> > same
> > > > exact
> > > > > version of Samba on a RedHat 7.3 box.  I've
> > been
> > > > using
> > > > > RH8 on my main workstation since introduction
> > and
> > > > I've
> > > > > found other weirdness.
> > > > > 
> > > > > I'm not near my RH8 box at the moment but when
> > I
> > > > get
> > > > > back to work tomorrow I'll test an SMB mount
> > of a
> > > > > Windows NT box.  I could try a 2000 box if
> > > > necessary. 
> > > > > I'll do a wc -l and see what happens.  I do
> > recall
> > > > > having no problems with a Samba server (2000+
> > > > > directories) and I can confirm that tomorrow.
> > > > > 
> > > > > First, try copying the smb.conf from the 6.2
> > box. 
> > > > > Smbmount seems to read a few lines from it,
> > and
> > > > there
> > > > > is a chance you have differences.
> > > > > 
> > > > > If you have a RedHat 7.3 box handy, install
> > the
> > > > same
> > > > > version of Samba (I agree it doesn't sound
> > > > > version-specific) and try it.. it'd probably
> > work
> > > > > fine.  I'll try to do the same.
> > > > > 
> > > > > 
> > > > > /dev/idal
> > > > > 
> > > > > --- Joe Gerkman <joe.gerkman at gartner.com>
> > wrote:
> > > > > > Hi all,
> > > > > > 
> > > > > > Hoping someone might be able to steer me in
> > the
> > > > > > right direction and/or
> > > > > > help me solve my problem.
> > > > > > 
> > > > > > We have a number of Linux servers (RH6.2 ->
> > RH8)
> > > > > > which connect to the
> > > > > > same share on a Win2000 Server.  We've been
> > > > working
> > > > > > kinda hard to get
> > > > > > everything upgraded to either RH7.3 or RH8.0
> > > > since
> > > > > > we rarely get the
> > > > > > opportunity.  2 similar servers (one dev,
> > one
> > > > prod)
> > > > > > access this same
> > > > > > window share, which has a large number of
> > > > > > directories (about 620-650),
> > > > > > and the share itself is for a 180GB volume.
> > > > > > 
> > > > > > Just recently we discovered that our dev
> > server
> > > > > > (RH6.2/2.2.14-5.0 with
> > > > > > samba 2.0.6-9) can see all of the
> > > > directories/files
> > > > > > at the root of this
> > > > > > share, but the prod server
> > (RH8.0/2.4.18-19.8.0
> > > > with
> > > > > > samba 2.2.x ->
> > > > > > 2.2.7a-1) can not, it can however see a good
> > > > portion
> > > > > > of them (about
> > > > > > 554). 
> > > > > > 
> > > > > > There doesn't seem to be anything in common
> > > > about
> > > > > > these "missing"
> > > > > > directories...have checked time, size,
> > > > etc...nada in
> > > > > > common that we can
> > > > > > determine.  We did try quite a few crazy
> > things,
> > > > > > like deleting a few
> > > > > > directories to see if we saw more, but nope.
> > 
> > > > And I
> > > > > > should note that the
> > > > > > directories are there, you just can't see
> > > > them...I
> > > > > > can 'cd' into them
> > > > > > with no problem.
> > > > > > 
> > > > > > Oh, and I've tried going back to the earlier
> > > > version
> > > > > > of samba (same as
> > > > > > on the dev machine - 2.0.6-9), but no luck.
> > > > > > 
> > > > > > Any ideas?  Anyone?  Please...
> > > > > > 
> > > > > > -J
> > > > > > 
> > > > > > -- 
> > > > > > To unsubscribe from this list go to the
> > > > following
> > > > > > URL and read the
> > > > > > instructions: 
> > > > > http://lists.samba.org/mailman/listinfo/samba
> > > > > 
> > > > > 
> > > > > 
> > > > >
> > __________________________________________________
> > > > > Do you Yahoo!?
> > > > > Yahoo! Mail Plus - Powerful. Affordable. Sign
> > up
> > > > now.
> > > > > http://mailplus.yahoo.com
> > > > -- 
> > > > Joe Gerkman
> > > > UNIX/Linux Systems Engineer
> > > > Gartner
> > > > 308 SW First Avenue
> > > > Portland, OR  97204
> > > > phone:  503-241-8036 x427
> > > > fax:    503-241-8716
> > > > pager:  800-217-4529 -or- 8002174529 at skytel.com
> > > 
> > > 
> > > __________________________________________________
> > > Do you Yahoo!?
> > > Yahoo! Mail Plus - Powerful. Affordable. Sign up
> > now.
> > > http://mailplus.yahoo.com
> > -- 
> > Joe Gerkman
> > UNIX/Linux Systems Engineer
> > Gartner
> > 308 SW First Avenue
> > Portland, OR  97204
> > phone:  503-241-8036 x427
> > fax:    503-241-8716
> > pager:  800-217-4529 -or- 8002174529 at skytel.com
> 
> 
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
-- 
Joe Gerkman
UNIX/Linux Systems Engineer
Gartner
308 SW First Avenue
Portland, OR  97204
phone:  503-241-8036 x427
fax:    503-241-8716
pager:  800-217-4529 -or- 8002174529 at skytel.com


More information about the samba mailing list