I posted the issue at first on 03 Dec 2010.
http://www.murga-linux.com/puppy/viewto ... 451#473451
Actually, the file is copied successfully. The problem is only the error message.Copying /mnt/sda3/tmp/some.txt as /mnt/network/SHINOBAR/video/public/tmp/some.txt
cp: failed to preserve ownership for `/mnt/network/SHINOBAR/video/public/tmp/some.txt': Permission denied
Failed to copy '/mnt/sda3/tmp/some.txt'
At last, i have found that the key was the 'acl'.I saw the mount command:
//192.168.11.2/video on /mnt/network/SHINOBAR/video type cifs (rw,mand,relatime,unc=\192.168.11.2\video,username=guest,uid=0,noforceuid,gid=0,noforcegid,addr=192.168.11.2,serverino,acl,rsize=16384,wsize=57344)
Next is fine.
(//192.168.11.2/video is a samba share)# mount -t cifs
//192.168.11.2/video on /mnt/network/SHINOBAR/video type cifs (rw,mand,relatime,unc=\\192.168.11.2\video,username=root,uid=0,noforceuid,gid=0,noforcegid,addr=192.168.11.2,file_mode=0755,dir_mode=0755,rsize=16384,wsize=57344)
The solution is simple. The 'nounix' option for mount.cifs.
http://linux.die.net/man/8/mount.cifs
nounix
Disable the CIFS Unix Extensions for this mount. This can be useful in order to turn off multiple settings at once. This includes POSIX acls, POSIX locks, POSIX paths, symlink support and retrieving uids/gids/mode from the server. This can also be useful to work around a bug in a server that supports Unix Extensions.
I have attached a patch against the curf_pnethood-0.6.8.1.
Or, you can get a test package pnethood-0.6.8.9.pet from http://shino.pos.to/party/bridge.cgi?puppy/test/.
It has more tweaks:
#23mar2012 shinobar: use mount.cifs with 'nounix' option(func_mount), UTF-8 encording default
# mount.cifs accepts 'guest' option (rcrsn51)
Tested on 431JPreturns2012, Wary-511-01j, lupu-528-04, slacko-5.3.2.7p. Shared folder without password is at Windows 7 and samba.