pnethood 0.6.8 - samba share mounter

Configuration wizards, scanners, remote desktop, etc.
Post Reply
Message
Author
User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

[SOLVED] failed to preserve ownership

#16 Post by shinobar »

At last, the solution :D

I posted the issue at first on 03 Dec 2010.
http://www.murga-linux.com/puppy/viewto ... 451#473451
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'
Actually, the file is copied successfully. The problem is only the error message.
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)
At last, i have found that the key was the 'acl'.
Next is fine.
# 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)
(//192.168.11.2/video is a samba share)

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.
Attachments
pnethood-0.6.8.1-nounix.patch.gz
a patch against the curf_pnethood-0.6.8.1. the root is /usr/local/apps.
(2.02 KiB) Downloaded 737 times
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

pnethood-0.6.9

#17 Post by shinobar »

UPDATED:
#23mar2012 shinobar: use mount.cifs with 'nounix' option(func_mount), UTF-8 encording default
#17may2012 shinobar: extracting sharename
#20jun2012 shinobar: export GTKDIALOG for other func

pnethood-0.6.9.pet
pnethood-0.6.9.i18n.pet (I18N'ed)
http://shino.pos.to/party/bridge.cgi?puppy/opt/

NOTE: both do not contain nbtscan, do support gtkdialog3 or gtkdialog4.
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

pnethood-0.7

#18 Post by shinobar »

pnethood-0.7.i18n.pet
http://shino.pos.to/party/bridge.cgi?puppy/opt/
NOTE: does not contain nbtscan.

#12jan2011 shinobar: refresh button, scanspeed 2 seconds, check if the rcfile exists
#23mar2012 shinobar: use mount.cifs with 'nounix' option(func_mount), UTF-8 encording default
#17may2012 shinobar: extracting sharename
#17may2012 shinobar: i18n
#20jun2012 shinobar: export GTKDIALOG for other func
#5jul2012 shinobar: fix was failed on Dpup Exprimo
http://www.murga-linux.com/puppy/viewto ... &start=595
(servernetbiosname in func_mount)
VERSION=0.7.i18n #shinobar
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

Post Reply