[linux-cifs-client] Re: cifs mounts but no read/write
Harry Putnam
reader at newsguy.com
Fri Mar 5 17:56:16 GMT 2004
Steven French <sfrench at us.ibm.com> writes:
>> I'm mounting shares on a win-XP (pro) machine but am not able to
>> write to them.
>
>> I'm running fedora FC2 test1 software for the most part and a stock
>> (redhat) kernel kernel-2.6.3-1.97
>
> I checked the source and found that when authenticated as a guest the
> text"Guest login" will get logged by the cifs session setup to the kernel message log
> (dmesg) but only when cifs debugging is enabled (echo 1 >
> /proc/fs/cifs/cifsFYI) but this is unlikely to be the problem given the id
> that you are using and the output from the "net session" command on the
> server.
Steven, I missed your reply since it was originally a private thread
and I wasn't aware of this list.
I have a litte additional info to supply here but let me say that in
view of your comments above about possible fixes...
Sounds like something I could compile into my kernel... if so please
give me a tip or two... if it is something as simple as editing cifs*
before kernel build... I can probably handle that.
Current setup is fedora core2 fc1... not fully up to latest updates.
Kernel=kernel-2.6.1-1.65 But rebuilt to enable smbfs. Just used the
standard fedora spec file and edited std
config
samba-3.0.2a-1
mount.cifs 1.1 (not used in mount actions below)
parameters listed in /etc/fstab"
//exp-xp/J-ahn-d /mnt/J-ahn-d cifs username=reader,password="" 0 0
# //exp-xp/J-ahn-d /mnt/J-ahn-d smbfs username=reader,password="" 0 0
For testing I comment one and use the other ...test then reverse.
The windows box is 2003 xp pro
`cacls' on the winbox isn't available for this since it is fat 32
Smbcacls shows:
# smbcacls //exp-xp/J-ahn-d download
Password:
REVISION:1
OWNER:\Everyone
GROUP:\Everyone
What I see here is mounting smbfs allows write and cifs does
not. (using the parameters above)
(with smbfs uncommented)
1) mount /mnt/J-ahn-d
<no feedback>
2) mount:
[...]
/dev/hdb3 on /arch type ext3 (rw)
/dev/hdb10 on /var/www type ext3 (rw)
//exp-xp/J-ahn-d on /mnt/J-ahn-d type smbfs (0)
3) touch touch /mnt/J-ahn-d/file
<no feedback>
4) rm /mnt/J-ahn-d/file
rm: remove regular empty file `/mnt/J-ahn-d/file'? y
<no feedback>
5) umount /mnt/J-ahn-d
========================
edit /etc/fstab so the cifs line is uncommented.
echo 1 > /proc/fs/cifs/cifsFYI
( oops .. where does the debug info go... for reading
nothing appears in syslog (except when smbfs is a parameter)
1) mount /mnt/J-ahn-d
<no feedback>
2) mount:
/dev/hdb3 on /arch type ext3 (rw)
/dev/hdb10 on /var/www type ext3 (rw)
//exp-xp/J-ahn-d on /mnt/J-ahn-d type cifs (0)
3) touch touch /mnt/J-ahn-d/file
touch: cannot touch `/mnt/J-ahn-d/file': Permission denied
More information about the linux-cifs-client
mailing list