The time now is Thu 26 Apr 2018, 07:56
All times are UTC - 4 |
Page 2 of 2 [18 Posts] |
Goto page: Previous 1, 2 |
Author |
Message |
shinobar

Joined: 28 May 2009 Posts: 2664 Location: Japan
|
Posted: Thu 22 Mar 2012, 04:59 Post subject:
[SOLVED] failed to preserve ownership |
|
At last, the solution
I posted the issue at first on 03 Dec 2010.
http://www.murga-linux.com/puppy/viewtopic.php?p=473451#473451
Quote: | 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.
Quote: | 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.
Quote: | # 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
Quote: | 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.
Description |
a patch against the curf_pnethood-0.6.8.1. the root is /usr/local/apps.
|

Download |
Filename |
pnethood-0.6.8.1-nounix.patch.gz |
Filesize |
2.02 KB |
Downloaded |
567 Time(s) |
_________________ Downloads for Puppy Linux http://shino.pos.to/linux/downloads.html
|
Back to top
|
|
 |
shinobar

Joined: 28 May 2009 Posts: 2664 Location: Japan
|
Posted: Mon 02 Jul 2012, 22:34 Post subject:
pnethood-0.6.9 |
|
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 http://shino.pos.to/linux/downloads.html
|
Back to top
|
|
 |
shinobar

Joined: 28 May 2009 Posts: 2664 Location: Japan
|
Posted: Thu 05 Jul 2012, 06:34 Post subject:
pnethood-0.7 |
|
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/viewtopic.php?t=76247&start=595
(servernetbiosname in func_mount)
VERSION=0.7.i18n #shinobar
_________________ Downloads for Puppy Linux http://shino.pos.to/linux/downloads.html
|
Back to top
|
|
 |
|
Page 2 of 2 [18 Posts] |
Goto page: Previous 1, 2 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|