I have Debian Etch with Samba. I windows clients I do not get any errors when move files to the /mnt/videos on the server. However n Linux clients I do get some errors. (Using rox-filer or the mv command-line). 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.
On Thu, Jan 29, 2009 at 4:17 PM, Athunye <Athunye@gmail.com> wrote:> 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
Am Donnerstag, 29. Januar 2009 schrieb Athunye:> > I have Debian Etch with Samba. > I windows clients I do not get any errors when move files to the /mnt/videos > on the server. > However n Linux clients I do get some errors. (Using rox-filer or the mv > command-line). > > 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. >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
bash >>> modinfo cifs filename: /lib/modules/2.6.18-6-686/kernel/fs/cifs/cifs.ko author: Steve French <sfrench@us.ibm.com> license: GPL description: VFS to access servers complying with the SNIA CIFS Specification e.g. Samba and Windows version: 1.45 vermagic: 2.6.18-6-686 SMP mod_unload 686 REGPARM gcc-4.1 depends: srcversion: 7AD39A7ABC43BFDBC841ACC parm: cifs_max_pending:Simultaneous requests to server. Default: 50 Range: 2 to 256 (int) parm: cifs_min_small:Small network buffers in pool. Default: 30 Range: 2 to 256 (int) parm: cifs_min_rcv:Network buffers in pool. Default: 4 Range: 1 to 64 (int) parm: CIFSMaxBufSize:Network buffer size (not including header). Default: 16384 Range: 8192 to 130048 (int) -- View this message in context: http://www.nabble.com/mv-errors.-tp21712791p21739946.html Sent from the Samba - General mailing list archive at Nabble.com.
With the 'valid users = smbuser' directive, all users will be logging in as guest. Note that when you use 'cp' the copies end up being owned by smbuser. But smbuser can't change the datestamp of files it doesn't own -- the server's OS won't allow it. That's likely the cause of your problem. -----Original Message----- Date: Thursday, January 29, 2009 7:21:34 pm To: samba@lists.samba.org From: "Athunye" <Athunye@gmail.com> Subject: RE: [Samba] mv errors. [global] netbios name = Server workgroup = Grupo unix extensions = yes case sensitive = yes ea support = yes #msdfs root = no server string = Servidor Samba encrypt passwords = yes hosts allow = 192.168.1. interfaces = eth1 bind interfaces only = yes local master = yes os level = 100 preferred master = yes wins support = yes map to guest = bad user guest account = smbuser [docs] path = /mnt/docs writable = yes valid users = smbuser -- View this message in context: http://www.nabble.com/mv-errors.-tp21712791p21739237.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
Am Freitag, 30. Januar 2009 schrieb Athunye:> > bash >>> modinfo cifs > filename: /lib/modules/2.6.18-6-686/kernel/fs/cifs/cifs.ko > author: Steve French <sfrench@us.ibm.com> > license: GPL > description: VFS to access servers complying with the SNIA CIFS > Specification e.g. Samba and Windows > version: 1.45 > vermagic: 2.6.18-6-686 SMP mod_unload 686 REGPARM gcc-4.1 > depends: > srcversion: 7AD39A7ABC43BFDBC841ACC > parm: cifs_max_pending:Simultaneous requests to server. Default: > 50 Range: 2 to 256 (int) > parm: cifs_min_small:Small network buffers in pool. Default: 30 > Range: 2 to 256 (int) > parm: cifs_min_rcv:Network buffers in pool. Default: 4 Range: 1 to > 64 (int) > parm: CIFSMaxBufSize:Network buffer size (not including header). > Default: 16384 Range: 8192 to 130048 (int) > > -- > View this message in context: http://www.nabble.com/mv-errors.-tp21712791p21739946.html > Sent from the Samba - General mailing list archive at Nabble.com. >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
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.