OVH Cloud OVH Cloud

soucis mount smbfs

1 réponse
Avatar
BULOT Grégory
Bonjour,=20

je me permets de poster ici, un probl=E8me samba entre 2=A0=A0debian/testing
mon soucis est qu'avec smbclient j'acc=E8de au partage (lire/se d=E9placer =
dans
les r=E9pertoires/=E9crire), aors qu'un mount sur le m=EAme partage ne me p=
ermet
que de lire le r=E9pertoire de base distant !


$ smbclient //annonce/web
=2D-authentication-file /etc/credentialSMBFS/wwwannonce
Domain=3D[ANNONCE001] OS=3D[Unix] Server=3D[Samba 3.0.10-Debian]
smb: \> ls
=A0=A0Annonces=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0D=A0=A0=A0=A0=A0=A0=A0=A00=A0=A0Thu=A0Mar=A017=A016=
:28:05=A02005
smb: \> cd Annonces
smb: \Annonces\> ls
=A0.=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0D=A0=A0=A0=A0=A0=A0=A0=A00=A0=A0Thu=A0M=
ar=A017=A016:28:05=A02005
=A0..=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0D=A0=A0=A0=A0=A0=A0=A0=A00=A0=A0Thu=A0Mar=
=A017=A016:28:11=A02005
=A0index.php=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0A=A0=A0=A0=A0=A0=A0200=A0=A0Fri=A0Feb=A018=A017:14:50=A02=
005
=A0main.php=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0A=A0=A0=A0=A0=A03024=A0=A0Thu=A0Jan=A013=A017:12:34=A0=
2005
smb: \Annonces\> put testweb.sh
putting file testweb.sh as \Annonces\testweb.sh (11,7 kb/s) (average 11,7
kb/s)
smb: \Annonces\> ls testweb*
=A0=A0testweb.sh=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0A=A0=A0=A0=A0=A0=A0240=A0=A0Sat=A0Mar=A019=A008:04:46=
=A02005

maintenant, mon etc/fstab
//annonce/web /mnt/annonce/web smbfs
noauto,users,credentials=3D/etc/credentialSMBFS/wwwannonce

$ mount /mnt/annonce/web
$ ls -la /mnt/annonce/web
drwxrwx---=A0=A01=A0www-data=A0www-data=A0=A0=A0=A00=A02005-03-19=A008:04=
=A0Annonces
$ cd /mnt/annonce/web/Annonces/
bash: cd: /mnt/annonce/web/Annonces/: Permission non accord=E9e

sur PC 'annonce'

$ tail -6 log.192.168.0.107 log.morpheus
=3D=3D> log.192.168.0.107 <=3D=3D avec mount
[2005/03/19 07:55:08, 1] smbd/service.c:make_connection_snum(648)
192.168.0.107 (192.168.0.107) connect to service web initially as user=20
wwwannonce (uid=3D1001, gid=3D33) (pid 13734)
[2005/03/19 07:55:08, 1] smbd/service.c:close_cnum(836)
192.168.0.107 (192.168.0.107) closed connection to service web
[2005/03/19 08:07:16, 1] smbd/service.c:make_connection_snum(648)
192.168.0.107 (192.168.0.107) connect to service web initially as user=20
wwwannonce (uid=3D1001, gid=3D33) (pid 13749)

=3D=3D> log.morpheus <=3D=3D avec smbclient
[2005/03/11 14:04:11, 1] smbd/service.c:close_cnum(836)
morpheus (192.168.0.107) closed connection to service web
[2005/03/19 07:56:34, 1] smbd/service.c:make_connection_snum(648)
morpheus (192.168.0.107) connect to service web initially as user wwwanno=
nce=20
(uid=3D1001, gid=3D33) (pid 13737)
[2005/03/19 08:05:35, 1] smbd/service.c:close_cnum(836)
morpheus (192.168.0.107) closed connection to service web

1 réponse

Avatar
Thomas Sondag
BULOT Grégory a écrit :

Bonjour,

je me permets de poster ici, un problème samba entre 2 debian/testing
mon soucis est qu'avec smbclient j'accède au partage (lire/se déplacer dans
les répertoires/écrire), aors qu'un mount sur le même partage ne me permet
que de lire le répertoire de base distant !


$ smbclient //annonce/web
--authentication-file /etc/credentialSMBFS/wwwannonce
Domain=[ANNONCE001] OS=[Unix] Server=[Samba 3.0.10-Debian]
smb: > ls
Annonces D 0 Thu Mar 17 16:28:05 2005
smb: > cd Annonces
smb: Annonces> ls
. D 0 Thu Mar 17 16:28:05 2005
.. D 0 Thu Mar 17 16:28:11 2005
index.php A 200 Fri Feb 18 17:14:50 2005
main.php A 3024 Thu Jan 13 17:12:34 2005
smb: Annonces> put testweb.sh
putting file testweb.sh as Annoncestestweb.sh (11,7 kb/s) (average 11,7
kb/s)
smb: Annonces> ls testweb*
testweb.sh A 240 Sat Mar 19 08:04:46 2005

maintenant, mon etc/fstab
//annonce/web /mnt/annonce/web smbfs
noauto,users,credentials=/etc/credentialSMBFS/wwwannonce

$ mount /mnt/annonce/web
$ ls -la /mnt/annonce/web
drwxrwx--- 1 www-data www-data 0 2005-03-19 08:04 Annonces
$ cd /mnt/annonce/web/Annonces/
bash: cd: /mnt/annonce/web/Annonces/: Permission non accordée

sur PC 'annonce'

$ tail -6 log.192.168.0.107 log.morpheus
==> log.192.168.0.107 <== avec mount
[2005/03/19 07:55:08, 1] smbd/service.c:make_connection_snum(648)
192.168.0.107 (192.168.0.107) connect to service web initially as user
wwwannonce (uid01, gid3) (pid 13734)
[2005/03/19 07:55:08, 1] smbd/service.c:close_cnum(836)
192.168.0.107 (192.168.0.107) closed connection to service web
[2005/03/19 08:07:16, 1] smbd/service.c:make_connection_snum(648)
192.168.0.107 (192.168.0.107) connect to service web initially as user
wwwannonce (uid01, gid3) (pid 13749)

==> log.morpheus <== avec smbclient
[2005/03/11 14:04:11, 1] smbd/service.c:close_cnum(836)
morpheus (192.168.0.107) closed connection to service web
[2005/03/19 07:56:34, 1] smbd/service.c:make_connection_snum(648)
morpheus (192.168.0.107) connect to service web initially as user wwwannonce
(uid01, gid3) (pid 13737)
[2005/03/19 08:05:35, 1] smbd/service.c:close_cnum(836)
morpheus (192.168.0.107) closed connection to service web







Salut,

Si tu as un 2.6.8.1 regarde toujours ça :
http://www.ussg.iu.edu/hypermail/linux/kernel/0409.2/1344.html
Je pense que dans le cas du mount il y a tentative de "translation" uid
gid et embrouillage de pinceaux, avec un 2.6.10 chez moi ça marche.

Cordialement,

Thomas




--
Pensez à lire la FAQ de la liste avant de poser une question :
http://wiki.debian.net/?DebianFrench

Pensez à rajouter le mot ``spam'' dans vos champs "From" et "Reply-To:"

To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact