Link to home
Start Free TrialLog in
Avatar of aermongk
aermongk

asked on

problem reading CIFS mount

Hi,

I successfully mounted Windows 2003 to Linux FC-4 (using kernel 2.6.16.1) using CIFS but strangest
thing happened, I could write and delete but I could NOT read!!!  It gave me "Permission denied".
So I went back to Windows 2003 server and checked the shared directory permission and security.
I have it set to Full Control for Everyone (basically, everyone can r/w access to it).

I use autofs to mount this CIFS but it doesn't matter, I also try manual mount.  Here is my autofs
file "auto.server" :

# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# Details may be found in the autofs(5) manpage
scratch     -fstype=cifs,rw,credentials=/root/.credentials  ://w2ksvr/Scratch

I also try

mount.cifs //w2ksvr/Scratch /mnt -o user=xxx,password=xxx

Both were successful but could not read.  Is there anything else I need here?

I look at the menuconfig and here is what I have.

<M> MSDOS fs support
<M> VFAT (Windows-95) fs support
(437) Default codepage for FAT
(ascii) Default iocharset for FAT
<M> NTFS file system support
[ ]   NTFS debugging support
[*]   NTFS write support

Any suggestion is appreciated.

Thanks,
Adisorn.
Avatar of aermongk
aermongk

ASKER

Oops!! sorry for the mess.  I cut and paste from "make menuconfig".  The &#9472; is a border.
Avatar of rindi
Do you have a GUI installed on the FC4 Box? If so, can you try one of the included "filemanagers" (I like konqueror or krusader, but gnome should also have some that will work). Just enter smb://username@w2ksvr/scratch in the addressbar. Can you browse the w2k box then?
Hi Rindi,

Yes, I can read from GUI gnome.  But most of the time, I'll be using command line.
Is there parameter I have to add to auto.server to make it work?  I looked
at man page on mount.cifs, how about uid, gid, file_mode, etc.   Does the Windows 2003
support CIFS Unix extension?  

Thanks,
Adisorn.
I usually mount windows 2003 shares on linux the following way:

mount -t cifs -o username=NameOfUser //IPOfServer/ShareName /mnt/MountPoint1

and that usually works. Of course I need to be root to mount, and the mountpoint has to exist. Maybe you have some "funny" Samba Client version, run yum update to update your FC4 box, or go up to FC5.
BTW, I am currently using latest Kernel 2.6.16.1 (same as FC-5).

It seems that there is a fix for this problem but has not released yet.
I guess if anyone uses FC-4 or FC-5, they won't be able to read
Windows 2003 through CIFS.

Here is the thread I found.

http://www.redhat.com/archives/rhl-list/2006-April/msg03239.html

Hopefully, the kernel.org should release this soon.

Thanks anyway,
Adisorn.
Kernel version 2.6.16-15 is the latest.
SOLUTION
Avatar of Arty K
Arty K
Flag of Kazakhstan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
yum update (or using up2date) should update the kernel.
GranMod, there is a solution for this problem.
aermongk has kernel version 2.6.16.1 which is not current. Bug was fixed in 2.6.16.6.
And the most recent kernel stable version 2.6.16.15, which is recommended.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you for the pointer.  I have downloaded 2.6.16.15 and it has the fix in it.

Adisorn.
Hi GranMod,

The solution comes after I have posted for the deletion.  Please ignore my post
in the Community Support.  I have accepted the answers.

Thanks,
Adisorn.