Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sun 21 Dec 2014, 06:49
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Network
pnethood 0.6.8 - samba share mounter
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 2 [18 Posts]   Goto page: Previous 1, 2
Author Message
shinobar


Joined: 28 May 2009
Posts: 2631
Location: Japan

PostPosted: Thu 22 Mar 2012, 04:59    Post subject: [SOLVED] failed to preserve ownership  

At last, the solution Very Happy

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.
pnethood-0.6.8.1-nounix.patch.gz
Description  a patch against the curf_pnethood-0.6.8.1. the root is /usr/local/apps.
gz

 Download 
Filename  pnethood-0.6.8.1-nounix.patch.gz 
Filesize  2.02 KB 
Downloaded  396 Time(s) 

_________________
Google Chrome portable
Downloads for Puppy Linux http://shino.pos.to/linux/downloads.html
Back to top
View user's profile Send private message Visit poster's website 
shinobar


Joined: 28 May 2009
Posts: 2631
Location: Japan

PostPosted: 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.

_________________
Google Chrome portable
Downloads for Puppy Linux http://shino.pos.to/linux/downloads.html
Back to top
View user's profile Send private message Visit poster's website 
shinobar


Joined: 28 May 2009
Posts: 2631
Location: Japan

PostPosted: 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

_________________
Google Chrome portable
Downloads for Puppy Linux http://shino.pos.to/linux/downloads.html
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 2 of 2 [18 Posts]   Goto page: Previous 1, 2
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Network
Jump to:  

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
[ Time: 0.0522s ][ Queries: 13 (0.0055s) ][ GZIP on ]