LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-26-2005, 04:36 PM   #1
burnt_toast
Member
 
Registered: Aug 2003
Distribution: RedHat (What else?)
Posts: 36

Rep: Reputation: 15
SMB Client Problem


I've been struggling with a problem I'm having with accessing a share located on a Windows 2000 Server box. Smbmount successfully mounts the share, but only about half of the folders are listed in nautilus. I try accessing the share through a terminal (with ls -al) and it says that there are no folders or files.

The share contains about 200 folders directly underneath the root of the share. SMB will access the share just fine if I decrease the amount of folders in the root of the share, but I don't want to modify my windows filesystem to get linux to see all the folders in the share. I've also googled and searched the smb documentation/bugs for this problem, and oddly enough I can't find a trace of it. I can't believe that no one else has had this problem.

Here are my specs:
Suse 9.2, w/ stock version of Gnome
Kernel ver 2.6.5
Samba-Client version 3.0.4

Command I use to mount the share:
mount -t smbfs -o username=my_win_username //server/share /local_mount_point

Any help would be appreciated
 
Old 06-27-2005, 09:49 AM   #2
Satriani
Member
 
Registered: Mar 2003
Location: The Netherlands
Distribution: Red Hat 7.3, Red Hat 9, Solaris8, Slackware 10, Slax on USB, AIX, FreeBSD, WinXP, AIX, Ubuntu
Posts: 418

Rep: Reputation: 30
Maybe its the NTFS rights on the folder?
Check if there is a difference it the permissions of folders you can see, and folders you cannot see.
 
Old 06-28-2005, 02:59 PM   #3
burnt_toast
Member
 
Registered: Aug 2003
Distribution: RedHat (What else?)
Posts: 36

Original Poster
Rep: Reputation: 15
I've tried various logons, even the administrator account (with full control of all folders). It's the same every time. I've even tried resetting the share permissions to everyone->full control which doesn't work.
 
Old 06-29-2005, 04:33 AM   #4
Satriani
Member
 
Registered: Mar 2003
Location: The Netherlands
Distribution: Red Hat 7.3, Red Hat 9, Solaris8, Slackware 10, Slax on USB, AIX, FreeBSD, WinXP, AIX, Ubuntu
Posts: 418

Rep: Reputation: 30
Have you checked if there are different rights on the folders? (Not on the share but on the folders itself?)
 
Old 06-29-2005, 12:27 PM   #5
burnt_toast
Member
 
Registered: Aug 2003
Distribution: RedHat (What else?)
Posts: 36

Original Poster
Rep: Reputation: 15
The only rights that should matter are the ones belonging to the user that I'm using to login to the share. I really doubt that it's a permissions problem, as I'm able to read/write files just fine. And, I can move the files which are visible out of the folder, and then the remaining ones (which didn't show up before) appear.

I've also tried other file managers (mc, gmc, kde, and a terminal window)...all of them besides the terminal window gives a partial listing of files. The terminal window simply shows that there are no files at all.
 
Old 06-29-2005, 02:02 PM   #6
Satriani
Member
 
Registered: Mar 2003
Location: The Netherlands
Distribution: Red Hat 7.3, Red Hat 9, Solaris8, Slackware 10, Slax on USB, AIX, FreeBSD, WinXP, AIX, Ubuntu
Posts: 418

Rep: Reputation: 30
I guess you missed the point here... (Or i did...)

If you have different permissions on the (sub)folders on your windows machine, it doesn't matter if you use other clients whatsoever... It just still uses the same credentials...

Bare with me here:
You have a windows machine, with a folder AAA.
Folder AAA has NTFS userrights: UserA: Full Control

In this folder you have folders: XXX YYY and ZZZ
folder XXX and ZZZ have ntfs rights: UserA: Full Control
folder YYY has ntfs rights: OtherUser: Full Control

Now, you share folder AAA, with sharepermissions of UserA: Full Control, or even Everyone: Full control.
The effective rights are that everyone can connect to the share, but only UserA can actually access XXX and ZZZ.
OtherUser can access the share, and can access YYY, but not XXX and ZZZ.

So, are youre NTFS right in order (Not your Share Rights)?
(Maybe being a bit tutorish, but, right-click the folder, select properties, and then select tab Security, check this, or make clear you did check them!)
 
Old 06-29-2005, 02:25 PM   #7
burnt_toast
Member
 
Registered: Aug 2003
Distribution: RedHat (What else?)
Posts: 36

Original Poster
Rep: Reputation: 15
Well I think you just confused me more than ever as to what you were trying to say, but I'm telling you it's not a permissions problem. Permissions for the folder I'm sharing (as well as all of it's subfolders) have inherited permissions turned on from the root folder of the drive. Effectlively, the same permissions for all folders are set on every folder on this drive.

The reason I know for certain that it is not a permissions problem is because I can access all of the subfolders of this share without a problem using the same credentials on a Windows box. So logic tells me that it's a configuration issue with SMB on linux (or a bug).

By the way, no need to get into tutor mode. I'm an MCSE hehehehe (I probably shouldn't admit that on this message board, should I? ) so I sort of already know my way around windows security. Although If you have advice that points to linux, I wouldn't consider myself a novice by any means, but would probably need a bit more explanation on that front.

Also, aI didn't mention it before, but all in all, this share contains about 4,000 mp3 files (each album in a subfolder) and is located on a win2k domain controller. I don't know if any of that makes a difference to Samba or not, but I thought it was worth mentioning.
 
Old 06-29-2005, 02:39 PM   #8
Satriani
Member
 
Registered: Mar 2003
Location: The Netherlands
Distribution: Red Hat 7.3, Red Hat 9, Solaris8, Slackware 10, Slax on USB, AIX, FreeBSD, WinXP, AIX, Ubuntu
Posts: 418

Rep: Reputation: 30
Whaahahahhaahhaaa, not to offend you in anyway (Or actually a well, just a little bit.. LOL) but what do they teach you these days if i just confused you more with this basic MSCE theory on how permissions on NTFS work???

I tried to explain that File/Folder priviliges are NOT the same as Share-priviliges...

Anyway, as i can assume you know your way in the M$ environment then, lets assume its a SMB problem...

Are the folders you cannot see through the smb-share visible from another windows machine?
Are there any specifics on these folders? Like very long names, special characters? Path exceeding 256 characters for example?
 
Old 06-29-2005, 07:25 PM   #9
burnt_toast
Member
 
Registered: Aug 2003
Distribution: RedHat (What else?)
Posts: 36

Original Poster
Rep: Reputation: 15
heheheh...I was just saying that the way you explained it confused me...that's all

Yeah, I have a really good grasp on the difference between share and ntfs folder/file perms. Actually, they test the heck out of that during the certification...one of the seven tests is devoted to windows security. With that, and the questions that they ask on security during the networking and OS exams, about half of the certification is devoted to security.

Anyway, there's nothing out of the ordinary about this share except for the amount of data in it. Appx 200 subfolders directly beneath the root of the share, containing approximately 4000 files. A total of about 40gb. The folders and files have pretty normal filenames (no special characters, none longer than say 20 characters, etc).

I've tried just about everything. On the windows front I've:
  • Mounted the share on a windows xp client using the same credentials (works fine)
  • Recreated the share with a different name
  • Looked for permission issues (as you already know hehehe)
  • Moved the folders that weren't showing into a second share. This allowed me to see those folders, but I want to be able to see them all in the same share, not two different shares.

On the linux front I've:
  • Upgraded to the latest version of the samba client
  • Tried mounting the share from a different linux box (same OS -- SuSE 9.2). Does the same thing.
 
Old 06-30-2005, 03:43 AM   #10
Satriani
Member
 
Registered: Mar 2003
Location: The Netherlands
Distribution: Red Hat 7.3, Red Hat 9, Solaris8, Slackware 10, Slax on USB, AIX, FreeBSD, WinXP, AIX, Ubuntu
Posts: 418

Rep: Reputation: 30
Well, i guess my tutoring skills need some polishing then...

However, this is indeed a strange problem... Haven't seen it before, other then with the mentioned permissionproblems...

I will try to think of something usefull, but don't get your hopes up... There should be a reasonable explanation for it, but i haven't got it (yet)... If I manage to figure it out, I will let you know! (And if you figure it out, please write the solution here also ? )

Anyone with other suggestions, or the ability to figure this one out, please do so... Im not giving up, but this one goes a bit out of my league at the moment...
 
Old 06-30-2005, 04:01 AM   #11
TheAce
LQ Newbie
 
Registered: Jun 2005
Location: Indonesia
Distribution: Mepis, Debian Sarge
Posts: 15

Rep: Reputation: 0
the only thing I can think of is that for what ever reason, the smb client hits a time out on querying the folder contents of the windows share so it only lists out the folders it finds before the timeout occured.
Check the Syslog or whatever the log smb uses. I'm sure the error is listed there.
 
Old 06-30-2005, 12:13 PM   #12
Satriani
Member
 
Registered: Mar 2003
Location: The Netherlands
Distribution: Red Hat 7.3, Red Hat 9, Solaris8, Slackware 10, Slax on USB, AIX, FreeBSD, WinXP, AIX, Ubuntu
Posts: 418

Rep: Reputation: 30
can you post your smb.conf here?
 
Old 06-30-2005, 12:53 PM   #13
burnt_toast
Member
 
Registered: Aug 2003
Distribution: RedHat (What else?)
Posts: 36

Original Poster
Rep: Reputation: 15
Unfortunately, I'm away from my linux box this week, but I'll look at the logs and post my smb.conf when I get back next week.
 
Old 06-30-2005, 04:25 PM   #14
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 33
you wrote you were using nautilus. rather than mounting the shares with the mount command try 'browsing' to smb:/// or smb://server or smb://server/share
also: upgrade to latest stable versions of your samba clients (and nautilus)

if all still fails, do a step by step setup, starting of with creating a new share on your windows box, and rather than just copying files across, create the subdirs manually (or try sharing a fat partition)

i am not all that familiar with shares on windows, but from linux to linux using samba i know that the mount command will not actually mount the share but the filesystem! (also the reason why i wrote to try smb:/// 'cause this will brouse the share)

nicer idea still: use ssh to copy everything to your linux box, and setup the shares from the other side - this eliminates any windows errors :-)
 
Old 06-30-2005, 10:42 PM   #15
burnt_toast
Member
 
Registered: Aug 2003
Distribution: RedHat (What else?)
Posts: 36

Original Poster
Rep: Reputation: 15
I actually have tried brousing via nautilus using smb:// and this does show all the folders. Unfortunately, when I double click a file to open it, it gives an error saying it can't open files located on SMB shares. That leaves me with an option of mounting the share (which we know doesn't work) and with copying the files directly.

I guess this tells me that it is a problem with the way my kernel handles ntfs rather than a SMB problem. I have no clue about what ntfs support is compiled in, because it's a stock kernel. Does anyone have any clue what modules I would need to compile into the kernel for the proper NTFS support? No need to explain the kernel recompilation process...I've got that one covered
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SMB Client cookie_ie Linux - Software 3 10-29-2005 11:31 AM
SMB Client sn0rg Linux - Newbie 2 12-06-2004 03:31 AM
smb client fay Linux - Software 25 08-10-2004 09:41 AM
making smb shares viewable from smb client via web browser scottpioso General 3 11-10-2003 04:25 PM
SMB client not working under RH9 nodger Linux - Newbie 1 10-18-2003 06:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration