[linux-cifs-client] cifs vs smbfs are parameters different

Harry Putnam reader at newsguy.com
Mon Mar 8 20:51:08 GMT 2004


This info was posted in a previous message:
    Message-ID: <m3d67r41q7.fsf at newsguy.com>

But here I'm asking if the parameters for cifs and smbfs shown below
should work the same for either protocol.   Should the cifs mount
tested below have the same characteristics as the smbfs mount?

-----------------------
Kernel (Fedora testing) 2.6.3-1.118custom
 [ `Custom' in that smbfs is turned on ]
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
Message-ID: <m3d67r41q7.fsf at newsguy.com>




More information about the linux-cifs-client mailing list