Re: problem setting user and group on mounting a cifs share - Please help
On Monday 28 April 2008, NN_il_Confusionario wrote: > On Mon, Apr 28, 2008 at 09:05:37PM +0200, Chris wrote: > > The server is a Buffalo Link-Stateion (Firmware 1.06). I don't think > > it has logging that is normally accesible. > > from what I understand by reading > > Linkname: Buffalo network-attached storage series - Wikipedia, the free > encyclopedia URL: > http://en.wikipedia.org/wiki/Buffalo_network-attached_storage_series > > it is Linux based, so it should have a syslog, so it is quite possible > that its syslog can be configured for remote logging (in combination > with a configuration of your local syslog on debian to accept logs from > that server) > > However, that link also says that the device supports NFS, so I would > use NFS insted of cifs > > If you still want to use cifs, > >Linkname: mount.cifs(8) - Linux man page > URL: http://linux.die.net/man/8/mount.cifs > > says (with an example) that there is a --verbose option; this might be > useful to obtain debug information. > > > but why does the same /etc/fstab entry > > > > //192.168.178.27/candj /mnt/candj cifs > > user,noauto,credentials=/etc/cred,uid=1000,gid=1000 0 0 > > > > give completely different results on different machines? > > quite probably there is a difference between the two machines (something > in /etc/ ? the cifs kernel module ? some other package ? the way that > the "server" treats the two machines and their users ?) > > In any case this is the reason I asked for debugging info in the logs. > > > Especially when I explicitly give the uid and gid, these seem to be > > is ignored when mounting. > > the man page I cited above explains that uid "is ignored when the > target server supports the CIFS Unix extensions." (the same for gid) The mount problem does in fact have to do with CIFS Linux Extensions. See my respone to Mark Clarkson in this thread. I also googled aroung alot to try to find out what the rsync errors were but didn't get to far. Thanks anyway for your extensive suggestions! Chris -- C. Hurschler -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: problem setting user and group on mounting a cifs share - Please help
On Mon, Apr 28, 2008 at 09:05:37PM +0200, Chris wrote: > The server is a Buffalo Link-Stateion (Firmware 1.06). I don't think > it has logging that is normally accesible. from what I understand by reading Linkname: Buffalo network-attached storage series - Wikipedia, the free encyclopedia URL: http://en.wikipedia.org/wiki/Buffalo_network-attached_storage_series it is Linux based, so it should have a syslog, so it is quite possible that its syslog can be configured for remote logging (in combination with a configuration of your local syslog on debian to accept logs from that server) However, that link also says that the device supports NFS, so I would use NFS insted of cifs If you still want to use cifs, Linkname: mount.cifs(8) - Linux man page URL: http://linux.die.net/man/8/mount.cifs says (with an example) that there is a --verbose option; this might be useful to obtain debug information. > but why does the same /etc/fstab entry > > //192.168.178.27/candj /mnt/candj cifs > user,noauto,credentials=/etc/cred,uid=1000,gid=1000 0 0 > > give completely different results on different machines? quite probably there is a difference between the two machines (something in /etc/ ? the cifs kernel module ? some other package ? the way that the "server" treats the two machines and their users ?) In any case this is the reason I asked for debugging info in the logs. > Especially when I explicitly give the uid and gid, these seem to be > is ignored when mounting. the man page I cited above explains that uid "is ignored when the target server supports the CIFS Unix extensions." (the same for gid) > thus after mounting the mount point has > > drwxrwxrwx 9 rootroot 0 2008-04-28 20:30 share > > and all the sudirectories inlcuding of the examples of rsync usage I give > below have > > drwxrwxrwx 3 identd users0 2008-04-28 20:23 TEST > drwxrwxrwx 3 identd users0 2008-04-28 20:30 TEST1 > > where uid=1000 is not "identd" and gid=1000 is not "users" Supposing that on your device the (samba) "target server supports the CIFS Unix extensions" I expect that the owner/group/permissions are determined by that (in the same way as when mounting a filesystem as / in debian, the filesystem itself contains owner/group/permissions for, say, / and /tmp) Perhaps file_mode dir_mode noperm noacl or other options from the man page might be more useful. > ii libsmbclient 3.0.28a-1 > shared library that allows applications to t > ii libsmbiosxml10.13.13-1 > Provide XML access to (SM)BIOS information - > ii smbclient3.0.28a-1a > LanManager-like simple client for Unix > ii smbfs3.0.28a-1 > mount and umount commands for the smbfs (for both clientes have these same packages (which seem not to be the current ones for testing and unstable, which heve 1:3.0.28a-2, or for stable which has 3.0.24-6etch9) and the same kernel? The really important package should be only smbfs <$> zgrep bin/mount.cifs ~/ftp.it.debian.org/debian/dists/Debian4.0r3/Contents-i386.gz sbin/mount.cifsotherosfs/smbfs > > which is the exact rsync command that you give? > > On which host you give the rsync command, and as which user? > > What is the error message which rsync gives? > > On the share with > > drwxrwxrwx 8 user user0 2008-04-28 20:23 share > > rsync works fine: > > rsync -avz > /mnt/hdb1/Music/OnFidelio/Adriano_Celentano-Esco_di_rado_e_parlo_ancora_meno > /mnt/share/TEST > > sending incremental file list > created directory /mnt/share/TEST > Adriano_Celentano-Esco_di_rado_e_parlo_ancora_meno/ > Adriano_Celentano-Esco_di_rado_e_parlo_ancora_meno/01.Per_averti.mp3 > Adriano_Celentano-Esco_di_rado_e_parlo_ancora_meno/02.Apri_il_cuore.mp3 > Adriano_Celentano-Esco_di_rado_e_parlo_ancora_meno/03.Lago_rosso.mp3 > Adriano_Celentano-Esco_di_rado_e_parlo_ancora_meno/04.Quello_che_non_ti_ho_detto_mai.mp3 > Adriano_Celentano-Esco_di_rado_e_parlo_ancora_meno/05.Ti_prendero.mp3 > Adriano_Celentano-Esco_di_rado_e_parlo_ancora_meno/06.Tir.mp3 > Adriano_Celentano-Esco_di_rado_e_parlo_ancora_meno/07.Se_tu_mi_tenti.mp3 > Adriano_Celentano-Esco_di_rado_e_parlo_ancora_meno/08.Africa.mp3 > Adriano_Celentano-Esco_di_rado_e_parlo_ancora_meno/09.Io_sono_un_uomo_libero.mp3 > Adriano_Celentano-Esco_di_rado_e_parlo_ancora_meno/10.Le_stesse_cose.mp3 > Adriano_Celentano-Esco_di_rado_e_parlo_ancora_meno/11.Il_figlio_del_dolore.mp3 > Adriano_Celentano-Esco_di_rado_e_parlo_ancora_meno/12.Index.mp3 > > sent 72755233 bytes received 244 bytes 4693901.74 bytes/sec > total size is 72729880 speedup is 1.00 If I understand correctly you are coping files from your debian machine to the (remotely mounted) directory drwxrwxrwx 3 identd users0 2008-04-28 20:23 TEST where y
Fwd: Re: problem setting user and group on mounting a cifs share - Please help
On Monday 28 April 2008, NN_il_Confusionario wrote: > On Mon, Apr 28, 2008 at 07:33:39AM +0200, Chris wrote: > > On Sunday 27 April 2008, NN_il_Confusionario wrote: > > > To debug the problem, logs on both the clients and the server would be > > > useful. > > > > I'm not seeing any messages in /var/log/syslog or messages, which logs > > exactly do you mean? > > even if on the client side there are no logs, there might be logs on the > server side (the machine which shares the directory). If it is a windows > machine (as opposed to a samba machine), you shold ask for assistence to > a experienced windows user. The server is a Buffalo Link-Stateion (Firmware 1.06). I don't think it has logging that is normally accesible. > > I have also seen the bahaviour > > > > -- drwxrwxrwx 8 root root 0 2008-04-26 20:42 share > > > > of the share, and > > > > drwxrwxrwx 461 identd users 0 2008-01-21 17:57 music > > > > of the subdirectories on another machine, I'm not even sure if thats not > > "normal". > > In general, for any kind of mount, the mountpoint and its subdirectory > might, but need not, have the same owner/group/permissions. but why does the same /etc/fstab entry //192.168.178.27/candj /mnt/candj cifs user,noauto,credentials=/etc/cred,uid=1000,gid=1000 0 0 give completely different results on different machines? Especially when I explicitly give the uid and gid, these seem to be is ignored when mounting. thus after mounting the mount point has drwxrwxrwx 9 rootroot 0 2008-04-28 20:30 share and all the sudirectories inlcuding of the examples of rsync usage I give below have drwxrwxrwx 3 identd users0 2008-04-28 20:23 TEST drwxrwxrwx 3 identd users0 2008-04-28 20:30 TEST1 where uid=1000 is not "identd" and gid=1000 is not "users" ii libsmbclient 3.0.28a-1 shared library that allows applications to t ii libsmbiosxml10.13.13-1 Provide XML access to (SM)BIOS information - ii smbclient3.0.28a-1a LanManager-like simple client for Unix ii smbfs3.0.28a-1 mount and umount commands for the smbfs (for > But what I previously understood was that the problem was that two > different machines show different owner/group/permissions, not that on > the same machine the owner/group/permissions are different for the > mountpoint and its subdirectories. well both, just as I'm posting. That's what I am seeing. > > > That's why I'm posting to this list. > > Those user and group rights let me otherwise work normaly on the share > > (like in Konqueror etc). Rsync does not like them for some reason. > > which is the exact rsync command that you give? > On which host you give the rsync command, and as which user? > What is the error message which rsync gives? On the share with drwxrwxrwx 8 user user0 2008-04-28 20:23 share rsync works fine: rsync -avz /mnt/hdb1/Music/OnFidelio/Adriano_Celentano-Esco_di_rado_e_parlo_ancora_meno /mnt/share/TEST sending incremental file list created directory /mnt/share/TEST Adriano_Celentano-Esco_di_rado_e_parlo_ancora_meno/ Adriano_Celentano-Esco_di_rado_e_parlo_ancora_meno/01.Per_averti.mp3 Adriano_Celentano-Esco_di_rado_e_parlo_ancora_meno/02.Apri_il_cuore.mp3 Adriano_Celentano-Esco_di_rado_e_parlo_ancora_meno/03.Lago_rosso.mp3 Adriano_Celentano-Esco_di_rado_e_parlo_ancora_meno/04.Quello_che_non_ti_ho_detto_mai.mp3 Adriano_Celentano-Esco_di_rado_e_parlo_ancora_meno/05.Ti_prendero.mp3 Adriano_Celentano-Esco_di_rado_e_parlo_ancora_meno/06.Tir.mp3 Adriano_Celentano-Esco_di_rado_e_parlo_ancora_meno/07.Se_tu_mi_tenti.mp3 Adriano_Celentano-Esco_di_rado_e_parlo_ancora_meno/08.Africa.mp3 Adriano_Celentano-Esco_di_rado_e_parlo_ancora_meno/09.Io_sono_un_uomo_libero.mp3 Adriano_Celentano-Esco_di_rado_e_parlo_ancora_meno/10.Le_stesse_cose.mp3 Adriano_Celentano-Esco_di_rado_e_parlo_ancora_meno/11.Il_figlio_del_dolore.mp3 Adriano_Celentano-Esco_di_rado_e_parlo_ancora_meno/12.Index.mp3 sent 72755233 bytes received 244 bytes 4693901.74 bytes/sec total size is 72729880 speedup is 1.00 On the machine with drwxrwxrwx 9 rootroot 0 2008-04-28 20:30 share I get errors: rsync -avz /home/user/music/Adriano\ Celentano/Esco\ di\ rado\ e\ parlo\ ancora\ meno /mnt/share/TEST1 sending incremental file list created directory /mnt/share/TEST Esco di rado e parlo ancora meno/ rsync: failed to set times on "/mnt/share/TEST1/Esco di rado e parlo ancora meno": Operation not permitted (1) Esco di rado e parlo ancora meno/01 Per averti.mp3 Esco di rado e parlo ancora meno/02 Apri il cuore.mp3 Esco di rado e parlo ancora meno/03 Lago rosso.mp3 Esco di rado e parlo ancora meno/04 Quello che non ti ho detto mai.mp3 Esco di rado e parlo ancora meno/05 Ti prendero.mp3 Esco di rado e parlo ancora meno/06 Tir.mp3 Esco di r
Re: problem setting user and group on mounting a cifs share - Please help
On Mon, Apr 28, 2008 at 07:33:39AM +0200, Chris wrote: > On Sunday 27 April 2008, NN_il_Confusionario wrote: > > To debug the problem, logs on both the clients and the server would be > > useful. > > I'm not seeing any messages in /var/log/syslog or messages, which logs > exactly do you mean? even if on the client side there are no logs, there might be logs on the server side (the machine which shares the directory). If it is a windows machine (as opposed to a samba machine), you shold ask for assistence to a experienced windows user. > I have also seen the bahaviour > > -- drwxrwxrwx 8 root root 0 2008-04-26 20:42 share > > of the share, and > > drwxrwxrwx 461 identd users 0 2008-01-21 17:57 music > > of the subdirectories on another machine, I'm not even sure if thats not > "normal". In general, for any kind of mount, the mountpoint and its subdirectory might, but need not, have the same owner/group/permissions. But what I previously understood was that the problem was that two different machines show different owner/group/permissions, not that on the same machine the owner/group/permissions are different for the mountpoint and its subdirectories. > That's why I'm posting to this list. > Those user and group rights let me otherwise work normaly on the share > (like in Konqueror etc). Rsync does not like them for some reason. which is the exact rsync command that you give? On which host you give the rsync command, and as which user? What is the error message which rsync gives? -- Chi usa software non libero avvelena anche te. Digli di smettere. Informatica=arsenico: minime dosi in rari casi patologici, altrimenti letale. Informatica=bomba: intelligente solo per gli stupidi che ci credono. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: problem setting user and group on mounting a cifs share - Please help
On Sun, Apr 27, 2008 at 02:35:33PM +0200, Chris wrote: > All I really want to do is use rsync to backup a file-tree on this > machine as a temporary solution, you can rsync the tree from the machine where the net mount works to the machine where it does not work. (Or perhaps also use rsync directly, by installing ssh and rsync also on the server machine: cygwin has them) To debug the problem, logs on both the clients and the server would be useful. -- Chi usa software non libero avvelena anche te. Digli di smettere. Informatica=arsenico: minime dosi in rari casi patologici, altrimenti letale. Informatica=bomba: intelligente solo per gli stupidi che ci credono. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: problem setting user and group on mounting a cifs share - Please help
On Sunday 27 April 2008, NN_il_Confusionario wrote: > > * From: Chris <[EMAIL PROTECTED]> > >I have two different machines on which I am mouting a cifs share > >Tanks for any suggestion, > > when you umount and mount the share, do the logs in /var/log say > something ? > Do the same happen when mounting shares from other machines ? I am not seeing anything in syslog or messages after mounting. I read some howto's and tried a more direct fstab entry: //192.168.178.27/share /mnt/share cifs user,noauto,credentials=/etc/cred,uid=1000,gid=1000 0 0 on one machine it works fine, uid and gid of the share and all subdirectories are set correctly, on the other the result is as I posted i.e. -- drwxrwxrwx 8 rootroot 0 2008-04-26 20:42 share of the share, and drwxrwxrwx 461 identd users 0 2008-01-21 17:57 music of the subdirectories. The machine where it works is in same LAN, wired, the machine where it doesn't work has a wireless connection. I'm not a linux pro, and this has me stumped. All I really want to do is use rsync to backup a file-tree on this machine - sigh. C Bodenstedtstr. 13 D-30173 Hannover -- C. Hurschler