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 root root 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 users 0 2008-04-28 20:23 TEST
drwxrwxrwx 3 identd users 0 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 libsmbiosxml1 0.13.13-1
Provide XML access to (SM)BIOS information -
ii smbclient 3.0.28a-1 a
LanManager-like simple client for Unix
ii smbfs 3.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 user 0 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 root root 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 rado e parlo ancora meno/07 Se tu mi tenti.mp3
Esco di rado e parlo ancora meno/08 Africa.mp3
Esco di rado e parlo ancora meno/09 Io sono un uomo libero.mp3
Esco di rado e parlo ancora meno/10 Le stesse cose.mp3
Esco di rado e parlo ancora meno/11 Il figlio del dolore.mp3
Esco di rado e parlo ancora meno/12 Index.mp3
rsync: mkstemp "/mnt/share/TEST1/Esco di rado e parlo ancora meno/.01 Per
averti.mp3.nGMjkb" failed: Operation not permitted (1)
rsync: mkstemp "/mnt/share/TEST1/Esco di rado e parlo ancora meno/.02 Apri il
cuore.mp3.Bk8kaX" failed: Operation not permitted (1)
rsync: mkstemp "/mnt/share/TEST1/Esco di rado e parlo ancora meno/.03 Lago
rosso.mp3.rQLkUK" failed: Operation not permitted (1)
rsync: mkstemp "/mnt/share/TEST1/Esco di rado e parlo ancora meno/.04 Quello
che non ti ho detto mai.mp3.1Il6tA" failed: Operation not permitted (1)
rsync: mkstemp "/mnt/share/TEST1/Esco di rado e parlo ancora meno/.05 Ti
prendero.mp3.b7XPzr" failed: Operation not permitted (1)
rsync: mkstemp "/mnt/share/TEST1/Esco di rado e parlo ancora meno/.06
Tir.mp3.dyGffk" failed: Operation not permitted (1)
rsync: mkstemp "/mnt/share/TEST1/Esco di rado e parlo ancora meno/.07 Se tu mi
tenti.mp3.dPRBte" failed: Operation not permitted (1)
rsync: mkstemp "/mnt/share/TEST1/Esco di rado e parlo ancora meno/.08
Africa.mp3.VEHs79" failed: Operation not permitted (1)
rsync: mkstemp "/mnt/share/TEST1/Esco di rado e parlo ancora meno/.09 Io sono
un uomo libero.mp3.jyjUi7" failed: Operation not permitted (1)
rsync: mkstemp "/mnt/share/TEST1/Esco di rado e parlo ancora meno/.10 Le
stesse cose.mp3.jmPpv6" failed: Operation not permitted (1)
rsync: mkstemp "/mnt/share/TEST1/Esco di rado e parlo ancora meno/.11 Il
figlio del dolore.mp3.jU2Fn7" failed: Operation not permitted (1)
rsync: mkstemp "/mnt/share/TEST1/Esco di rado e parlo ancora meno/.12
Index.mp3.pyfdma" failed: Operation not permitted (1)
sent 72751396 bytes received 244 bytes 3932521.08 bytes/sec
total size is 72726016 speedup is 1.00
rsync error: some files could not be transferred (code 23) at main.c(1049)
[sender=3.0.2]
>
> --
> 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.
--
C. Hurschler
-------------------------------------------------------
--
C. Hurschler
Reply to: