This are the errors:
bash >>> mv post.txt share/
mv: preserving times for `share/post.txt': Invalid argument
mv: setting permissions for `share/post.txt': No such file or directory
Notice that if I cp I do not get those errors.
http://pastebin.com/f32cd160a Here is the pastebin of the server
/etc/samba/smb.conf and the /etc/fstab of the Linux client.
Also:
ls -l /mnt/drwxr-xr-x 2 root nando 4096 2009-01-26 22:56 videos
--
View this message in context: http://www.nabble.com/mv-errors.-tp21712791p21712791.html
Sent from the Samba - General mailing list archive at Nabble.com.
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
> Notice that if I cp I do not get those errors.
>
> <http://pastebin.com/f32cd160a> Also:
> ls -l /mnt/drwxr-xr-x 2 root nando 4096 2009-01-26 22:56 videos
>
Is your Linux user "root" or a member of the "nando" group? Since you can
cp but not mv, I think it could be a permissions issue on the origin file or
directory. You can read it - that's why cp works - but not write to it - mv
tries to delete the file after copying.
You don't get errors when moving Windows files to the /mnt/videos share
because they're allowed to write there. You get errors when you move a file
in Linux because you don't have permission to delete the original. It
concerns me, though, that your Windows clients are allowed to write to
/mnt/videos since that *should* mean that they're using root credentials...
That's my guess, anyway.
-Kyle
$ ls -l /mnt/
drwxrwxr-x 2 root docs 4096 2009-01-29 19:11 docs
$ groups smbuser
smbuser: smbuser docs
On the Linux client:
$ whoami
debuser
$ ls -l /mnt/
dr-xrwxr-x 2 root docs 4096 2009-01-29 10:49 docs
$ groups debuser
debuser : debuser dialout cdrom floppy audio video plugdev share arquivos
docs
Now see this:
$ mount /mnt/docs/
(no errors)
$ pwd
/home/debuser
$ touch test.txt
$ cp test.txt /mnt/docs/
(no errors)
$ touch test2.txt
$ mv test2.txt /mnt/docs/
mv: preserving times for `/mnt/docs/test2.txt': Operation not permitted
mv: setting permissions for `/mnt/docs/test2.txt': Operation not permitted
Since I'm moving a file I created myselfe, it must not be "permission to
delete the original".
And finaly, see this:
$ cd /mnt/docs/
$ pwd
/mnt/docs
$ touch
$ echo "test" > test3.txt
(no errors)
$ touch test4.txt
touch: setting times of `test4.txt': Permission denied
I can't understand what is going on...
--
View this message in context: http://www.nabble.com/mv-errors.-tp21712791p21736641.html
Sent from the Samba - General mailing list archive at Nabble.com.
--
-Kyle
--
One possible explaination is that each group is being given differing
permission types for the same volume.
- Avron
[docs]
path = /mnt/docs
writable = yes
valid users = smbuser
--
View this message in context: http://www.nabble.com/mv-errors.-tp21712791p21739237.html
what version of cifs vfs (i assume you use it for mounting on the clients) are you
using on your "n Linux clients" which are not working correctly?
Please post the outcome of 'modinfo cifs' done on your failing linux clients.
Cheers, Günter
--
View this message in context: http://www.nabble.com/mv-errors.-tp21712791p21739946.html
Sent from the Samba - General mailing list archive at Nabble.com.
--
--
View this message in context: http://www.nabble.com/mv-errors.-tp21712791p21739237.html
looks like cifs vfs (version 1.45) is failing here.
Do your not _failing_ linux clients use a more recent version of cifs vfs?
Cheers, Günter
--
View this message in context: http://www.nabble.com/mv-errors.-tp21712791p21744472.html
Günter Kukkukk-2 wrote:
>
>
> looks like cifs vfs (version 1.45) is failing here.
> Do your not _failing_ linux clients use a more recent version of cifs vfs?
>
>
I do not have not_failing_linux_clients because I only have four machines
with Debian Etch (wich are updated every two or three days).
--
View this message in context: http://www.nabble.com/mv-errors.-tp21712791p21744578.html
Sent from the Samba - General mailing list archive at Nabble.com.
--
What do guys have to say about that ?
--
View this message in context: http://www.nabble.com/mv-errors.-tp21712791p21745257.html
cifs vfs around version 1.45 had issues when setting file times and permissions
(and a mv cmd is preserving the original settings).
Can you please try the "preserving copy cmds":
'cp -p srcfile /mounted/samba/share/'
'cp -a srcfile /mounted/samba/share/'
Do they work ?
Cheers, Günter
Günter Kukkukk-2 wrote:
>
>
> Can you please try the "preserving copy cmds":
> 'cp -p srcfile /mounted/samba/share/'
> 'cp -a srcfile /mounted/samba/share/'
>
> Do they work ?
>
>
bash >>> pwd
/mnt/docs
bash >>> ls --all
. .. .Trash-1001
bash >>> cp -p ~/test.txt ./
cp: preserving times for `./test.txt': Operation not permitted
bash >>> cp -a ~/.vimrc ./
cp: preserving times for `./.vimrc': Operation not permitted
bash >>> pwd
/mnt/docs
bash >>> rm .vimrc
(no warnings)
bash >>> rm test.txt
rm: remove write-protected regular empty file `test.txt'?
--
View this message in context: http://www.nabble.com/mv-errors.-tp21712791p21754249.html
Sent from the Samba - General mailing list archive at Nabble.com.
--
that's what i've expected.
These cifs vfs bugs have been fixed in a later kernel release.
I was able to test that on a (somewhat more recent kernel than
yours) 2.6.22.18-0.2, which was shipped with cifs vfs version 1.49.
The 'mv' and 'cp -p' problems are fixed in there.
Btw - you can also expect cp -p errors, when ACLs are used and
the remote samba server is exporting a share on a *file system*
which does not support ACLs - or is not configured to do so.
(e.g. ext3 can be mounted with the "acl,user_xattr" option).
On the cifs client side one can use the cifs mount option "noacl"
to disable acls.
So i can only recommend to update the kernels on your linux clients.
Good luck! :-)
Cheers, Günter
Günter Kukkukk-2 wrote:
>
>
> that's what i've expected.
> These cifs vfs bugs have been fixed in a later kernel release.
> I was able to test that on a (somewhat more recent kernel than
> yours) 2.6.22.18-0.2, which was shipped with cifs vfs version 1.49.
> The 'mv' and 'cp -p' problems are fixed in there.
>
> Btw - you can also expect cp -p errors, when ACLs are used and
> the remote samba server is exporting a share on a *file system*
> which does not support ACLs - or is not configured to do so.
> (e.g. ext3 can be mounted with the "acl,user_xattr" option).
> On the cifs client side one can use the cifs mount option "noacl"
> to disable acls.
>
> So i can only recommend to update the kernels on your linux clients.
> Good luck! :-)
>
>
We use Fluxbox with Rox-filer in the machines. I tried to install Gnome and
with Nautilus it seems that the cp/mv warnings won't show up.
I'll follow your tips about ACLs and mount options.
I'm not sure whether I'm going to upgrade the kernel or not. (I'd have to
upgrade Etch to Lenny.)
Thanks a lot for your help, time and patience. (everyone)
--
View this message in context: http://www.nabble.com/mv-errors.-tp21712791p21759003.html
Sent from the Samba - General mailing list archive at Nabble.com.
--
I believe this kernel is in "etch-proposed-updates" Repository
> Thanks a lot for your help, time and patience. (everyone)
>
>
> --
> View this message in context:
> http://www.nabble.com/mv-errors.-tp21712791p21759003.html Sent from
> the Samba - General mailing list archive at Nabble.com.
--
Gruss
Harry Jede