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

Re: Problemi mount smb.




> > Ho un curioso problema nel mount di un filesystem "samba".
> > > > > 
> > > > > Se eseguo da root: 
> > > > > mount -t smbfs -o
> > > > > username=BNC\\valter.valenti,password='$pippo2009' //srvxxx/sharing 
> > > > /mnt/sharing
> > > > > 
> > > > >  
> > > > > il mount viene fatto correttamente.
> > > > > 
> > > > > Se invece inserisco nell' /etc/fstab la seguente riga:
> > > > > //srvxxx/sharing  /mnt/sharing  smbfs
> > > > > user,username=BNC\\valter.valenti,password='$pippo2009' 0  0 (tutto
> > > > > su una riga)
> > > > > 
> > > > > e provo a fare il mount sempre da root mi da un Permission Denaied.
> > > > > Dove sbaglio ?
> > > > >  
> > > > > I vari pezzi nell'fstab li copiato dalla linea di comando, non è
> > > > > quindi un problema di errori di battitura.
> > > > > 
> > > > > Walter
> > > > 
> > > >     Ciao,
> > > > 
> > > > prova a specificare le credenziali di accesso in un file a parte[1], lo
> > > > puoi fare in /etc/fstab con una riga simile a questa:
> > > >   //server/share /mnt/point cifs rw,uid=1000,file_mode=0600, \\
> > > >     dir_mode=0700,credentials=/path/to/credentials/file 0 0
> > > > 
> > > > il formato del file delle credenziali è
> > > >   username=user
> > > >   password=pass
> > > > 
> > 
> > > 
> > > Niente, stesso problema, non capisco se sia il catettere "$" nella passord a 
> 
> > > dargli fastidio o cosa.
> > > 
> > >
> > 
> > Il kernel.log vedo:
> > 
> > Jul 10 17:13:49 oinophilos kernel: [28886.610783]  CIFS VFS: Unexpected SMB 
> > signature
> > 
> > Jul 10 17:13:49 oinophilos kernel: [28886.610909] Status code returned 
> > 0xc000006d NT_STATUS_LOGON_FAILURE
> > 
> > Jul 10 17:13:49 oinophilos kernel: [28886.610988]  CIFS VFS: Send error in 
> > SessSetup = -13
> > 
> > Jul 10 17:13:49 oinophilos kernel: [28886.611126]  CIFS VFS: cifs_mount failed 
> 
> > w/return code = -13
> > 
> > 
> 
> 
> Trovato: era il "\\" di BNC\\valter.valenti.
> 
> 
> Walter


Ho parlato troppo presto: funziona da root ma non da utente normale.
Ottengo infatti:
mount error: permission denied or not superuser and mount.cifs not installed SUID

mount.cifs è SUID 
-rwsr-xr-x 1 root root 26536  7 lug 20:55 /sbin/mount.cifs
 e viene eseguito effetivamete come root.

Ho provato allora ad eseguire  mount.cifs da linea di comando:
/sbin/mount.cifs  //srvxxx/sharing /mnt/sharing -o user=BNC\\valter.valenti,password=pippoebasta
(tutto su una linea)

da utente normale mi da l'errore di sopra, da root funziona.

Boh...





Reply to: