Re: problème autorisation accès dossier!
Posté : jeu. 5 mai 2022 20:41
Bon, je refais le point sur mes différents dossier :
j'ai sur le bureau de mon PC un dossier nommé Sauvegarde_Raspberry2 qui est partagé avec tout le monde en contrôle total.
Sur le Raspberry j'ai
un dossier /mnt/partage
dans le fichier /ect/fstab j'ai :
//PCBUREAUGILLES/Sauvegarde_Raspberry2 /mnt/partage cifs username=[rxyz@orange.fr],password=[monmotdepasse],iocharset=utf8 0 0
les deux machines ont été rebooté.
Si je vais une commande
pi@raspberrypi:~ $ sudo mount.cifs //PCBUREAUGILLES/Sauvegarde_Raspberry2 /mnt/partage cifs -o username=[rxyz@orange.fr]
Password for [rxyz@orange.fr]@//PCBUREAUGILLES/Sauvegarde_Raspberry2: ***********
mount error(115): Operation now in progress
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
pi@raspberrypi:~ $
ici pour le mot de passe j'ai des étoiles...Il me semblait bien en avoir vu quelques part...
Et si je fais la commande :
pi@raspberrypi:~ $ smbclient "\\\\192.168.1.11\\Sauvegarde_Raspberry2" -U rxyz@orange.fr -d 4
lp_load_ex: refreshing parameters
Initialising global parameters
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[global]"
doing parameter workgroup = WORKGROUP
doing parameter log file = /var/log/samba/log.%m
doing parameter max log size = 1000
doing parameter logging = file
doing parameter panic action = /usr/share/samba/panic-action %d
doing parameter server role = standalone server
doing parameter obey pam restrictions = yes
doing parameter unix password sync = yes
doing parameter passwd program = /usr/bin/passwd %u
doing parameter passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
doing parameter pam password change = yes
doing parameter map to guest = bad user
doing parameter usershare allow guests = yes
pm_process() returned Yes
mkdir failed on directory /var/run/samba/msg.lock: Permission non accordée
cmdline_messaging_context: Unable to initialize messaging context.
Unable to initialize messaging context
lp_load_ex: refreshing parameters
Initialising global parameters
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[global]"
doing parameter workgroup = WORKGROUP
doing parameter log file = /var/log/samba/log.%m
doing parameter max log size = 1000
doing parameter logging = file
doing parameter panic action = /usr/share/samba/panic-action %d
doing parameter server role = standalone server
doing parameter obey pam restrictions = yes
doing parameter unix password sync = yes
doing parameter passwd program = /usr/bin/passwd %u
doing parameter passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
doing parameter pam password change = yes
doing parameter map to guest = bad user
doing parameter usershare allow guests = yes
pm_process() returned Yes
added interface wlan0 ip=2a01:cb11:3fa:a400:63a1:9df9:58b6:4232 bcast= netmask=ffff:ffff:ffff:ffff::
added interface eth0 ip=2a01:cb11:3fa:a400:f43d:6b0d:d58c:f7d0 bcast= netmask=ffff:ffff:ffff:ffff::
added interface wlan0 ip=192.168.1.47 bcast=192.168.1.255 netmask=255.255.255.0
added interface eth0 ip=192.168.1.57 bcast=192.168.1.255 netmask=255.255.255.0
Client started (version 4.9.5-Debian).
Connecting to 192.168.1.11 at port 445
session request ok
negotiated dialect[SMB3_11] against server[192.168.1.11]
got OID=1.3.6.1.4.1.311.2.2.30
got OID=1.3.6.1.4.1.311.2.2.10
Enter rxyz@orange.fr's password:
GENSEC backend 'gssapi_spnego' registered
GENSEC backend 'gssapi_krb5' registered
GENSEC backend 'gssapi_krb5_sasl' registered
GENSEC backend 'spnego' registered
GENSEC backend 'schannel' registered
GENSEC backend 'naclrpc_as_system' registered
GENSEC backend 'sasl-EXTERNAL' registered
GENSEC backend 'ntlmssp' registered
GENSEC backend 'ntlmssp_resume_ccache' registered
GENSEC backend 'http_basic' registered
GENSEC backend 'http_ntlm' registered
GENSEC backend 'http_negotiate' registered
GENSEC backend 'krb5' registered
GENSEC backend 'fake_gssapi_krb5' registered
Got challenge flags:
Got NTLMSSP neg_flags=0x628a8215
NTLMSSP_NEGOTIATE_UNICODE
NTLMSSP_REQUEST_TARGET
NTLMSSP_NEGOTIATE_SIGN
NTLMSSP_NEGOTIATE_NTLM
NTLMSSP_NEGOTIATE_ALWAYS_SIGN
NTLMSSP_TARGET_TYPE_SERVER
NTLMSSP_NEGOTIATE_EXTENDED_SESSIONSECURITY
NTLMSSP_NEGOTIATE_TARGET_INFO
NTLMSSP_NEGOTIATE_VERSION
NTLMSSP_NEGOTIATE_128
NTLMSSP_NEGOTIATE_KEY_EXCH
NTLMSSP: Set final flags:
Got NTLMSSP neg_flags=0x62088215
NTLMSSP_NEGOTIATE_UNICODE
NTLMSSP_REQUEST_TARGET
NTLMSSP_NEGOTIATE_SIGN
NTLMSSP_NEGOTIATE_NTLM
NTLMSSP_NEGOTIATE_ALWAYS_SIGN
NTLMSSP_NEGOTIATE_EXTENDED_SESSIONSECURITY
NTLMSSP_NEGOTIATE_VERSION
NTLMSSP_NEGOTIATE_128
NTLMSSP_NEGOTIATE_KEY_EXCH
NTLMSSP Sign/Seal - Initialising with flags:
Got NTLMSSP neg_flags=0x62088215
NTLMSSP_NEGOTIATE_UNICODE
NTLMSSP_REQUEST_TARGET
NTLMSSP_NEGOTIATE_SIGN
NTLMSSP_NEGOTIATE_NTLM
NTLMSSP_NEGOTIATE_ALWAYS_SIGN
NTLMSSP_NEGOTIATE_EXTENDED_SESSIONSECURITY
NTLMSSP_NEGOTIATE_VERSION
NTLMSSP_NEGOTIATE_128
NTLMSSP_NEGOTIATE_KEY_EXCH
SPNEGO login failed: The attempted logon is invalid. This is either due to a bad username or authentication information.
session setup failed: NT_STATUS_LOGON_FAILURE
L'adresse IP est bien celle de mon PC (IP fixe) le ping depuis le Raspberry est ok et pour moi le nom d'utilisateur de Windows (mon adresse mail ) est Ok ainsi que le mot de passe associé...
Je n'arrive pas à poster des images, l'icone image propos une URL et pas le chargement d'un fichier... sinon je t'aurais envoyé quelques copies d'écran...
Merci
j'ai sur le bureau de mon PC un dossier nommé Sauvegarde_Raspberry2 qui est partagé avec tout le monde en contrôle total.
Sur le Raspberry j'ai
un dossier /mnt/partage
dans le fichier /ect/fstab j'ai :
//PCBUREAUGILLES/Sauvegarde_Raspberry2 /mnt/partage cifs username=[rxyz@orange.fr],password=[monmotdepasse],iocharset=utf8 0 0
les deux machines ont été rebooté.
Si je vais une commande
pi@raspberrypi:~ $ sudo mount.cifs //PCBUREAUGILLES/Sauvegarde_Raspberry2 /mnt/partage cifs -o username=[rxyz@orange.fr]
Password for [rxyz@orange.fr]@//PCBUREAUGILLES/Sauvegarde_Raspberry2: ***********
mount error(115): Operation now in progress
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
pi@raspberrypi:~ $
ici pour le mot de passe j'ai des étoiles...Il me semblait bien en avoir vu quelques part...
Et si je fais la commande :
pi@raspberrypi:~ $ smbclient "\\\\192.168.1.11\\Sauvegarde_Raspberry2" -U rxyz@orange.fr -d 4
lp_load_ex: refreshing parameters
Initialising global parameters
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[global]"
doing parameter workgroup = WORKGROUP
doing parameter log file = /var/log/samba/log.%m
doing parameter max log size = 1000
doing parameter logging = file
doing parameter panic action = /usr/share/samba/panic-action %d
doing parameter server role = standalone server
doing parameter obey pam restrictions = yes
doing parameter unix password sync = yes
doing parameter passwd program = /usr/bin/passwd %u
doing parameter passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
doing parameter pam password change = yes
doing parameter map to guest = bad user
doing parameter usershare allow guests = yes
pm_process() returned Yes
mkdir failed on directory /var/run/samba/msg.lock: Permission non accordée
cmdline_messaging_context: Unable to initialize messaging context.
Unable to initialize messaging context
lp_load_ex: refreshing parameters
Initialising global parameters
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[global]"
doing parameter workgroup = WORKGROUP
doing parameter log file = /var/log/samba/log.%m
doing parameter max log size = 1000
doing parameter logging = file
doing parameter panic action = /usr/share/samba/panic-action %d
doing parameter server role = standalone server
doing parameter obey pam restrictions = yes
doing parameter unix password sync = yes
doing parameter passwd program = /usr/bin/passwd %u
doing parameter passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
doing parameter pam password change = yes
doing parameter map to guest = bad user
doing parameter usershare allow guests = yes
pm_process() returned Yes
added interface wlan0 ip=2a01:cb11:3fa:a400:63a1:9df9:58b6:4232 bcast= netmask=ffff:ffff:ffff:ffff::
added interface eth0 ip=2a01:cb11:3fa:a400:f43d:6b0d:d58c:f7d0 bcast= netmask=ffff:ffff:ffff:ffff::
added interface wlan0 ip=192.168.1.47 bcast=192.168.1.255 netmask=255.255.255.0
added interface eth0 ip=192.168.1.57 bcast=192.168.1.255 netmask=255.255.255.0
Client started (version 4.9.5-Debian).
Connecting to 192.168.1.11 at port 445
session request ok
negotiated dialect[SMB3_11] against server[192.168.1.11]
got OID=1.3.6.1.4.1.311.2.2.30
got OID=1.3.6.1.4.1.311.2.2.10
Enter rxyz@orange.fr's password:
GENSEC backend 'gssapi_spnego' registered
GENSEC backend 'gssapi_krb5' registered
GENSEC backend 'gssapi_krb5_sasl' registered
GENSEC backend 'spnego' registered
GENSEC backend 'schannel' registered
GENSEC backend 'naclrpc_as_system' registered
GENSEC backend 'sasl-EXTERNAL' registered
GENSEC backend 'ntlmssp' registered
GENSEC backend 'ntlmssp_resume_ccache' registered
GENSEC backend 'http_basic' registered
GENSEC backend 'http_ntlm' registered
GENSEC backend 'http_negotiate' registered
GENSEC backend 'krb5' registered
GENSEC backend 'fake_gssapi_krb5' registered
Got challenge flags:
Got NTLMSSP neg_flags=0x628a8215
NTLMSSP_NEGOTIATE_UNICODE
NTLMSSP_REQUEST_TARGET
NTLMSSP_NEGOTIATE_SIGN
NTLMSSP_NEGOTIATE_NTLM
NTLMSSP_NEGOTIATE_ALWAYS_SIGN
NTLMSSP_TARGET_TYPE_SERVER
NTLMSSP_NEGOTIATE_EXTENDED_SESSIONSECURITY
NTLMSSP_NEGOTIATE_TARGET_INFO
NTLMSSP_NEGOTIATE_VERSION
NTLMSSP_NEGOTIATE_128
NTLMSSP_NEGOTIATE_KEY_EXCH
NTLMSSP: Set final flags:
Got NTLMSSP neg_flags=0x62088215
NTLMSSP_NEGOTIATE_UNICODE
NTLMSSP_REQUEST_TARGET
NTLMSSP_NEGOTIATE_SIGN
NTLMSSP_NEGOTIATE_NTLM
NTLMSSP_NEGOTIATE_ALWAYS_SIGN
NTLMSSP_NEGOTIATE_EXTENDED_SESSIONSECURITY
NTLMSSP_NEGOTIATE_VERSION
NTLMSSP_NEGOTIATE_128
NTLMSSP_NEGOTIATE_KEY_EXCH
NTLMSSP Sign/Seal - Initialising with flags:
Got NTLMSSP neg_flags=0x62088215
NTLMSSP_NEGOTIATE_UNICODE
NTLMSSP_REQUEST_TARGET
NTLMSSP_NEGOTIATE_SIGN
NTLMSSP_NEGOTIATE_NTLM
NTLMSSP_NEGOTIATE_ALWAYS_SIGN
NTLMSSP_NEGOTIATE_EXTENDED_SESSIONSECURITY
NTLMSSP_NEGOTIATE_VERSION
NTLMSSP_NEGOTIATE_128
NTLMSSP_NEGOTIATE_KEY_EXCH
SPNEGO login failed: The attempted logon is invalid. This is either due to a bad username or authentication information.
session setup failed: NT_STATUS_LOGON_FAILURE
L'adresse IP est bien celle de mon PC (IP fixe) le ping depuis le Raspberry est ok et pour moi le nom d'utilisateur de Windows (mon adresse mail ) est Ok ainsi que le mot de passe associé...
Je n'arrive pas à poster des images, l'icone image propos une URL et pas le chargement d'un fichier... sinon je t'aurais envoyé quelques copies d'écran...
Merci