[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: soucis mount smbfs



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 \Annonces\testweb.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 (uid=1001, gid=33) (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 (uid=1001, gid=33) (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 (uid=1001, gid=33) (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





Reply to: