[ubuntu-it] Re: samba e login da win

Matteo Bassi bagstheguitarist at gmail.com
Fri May 6 00:35:49 CDT 2005


Tommaso Cappello ha scritto:
> Alle 23:42, giovedì 5 maggio 2005, hai scritto:
> 
>>Tommaso Cappello ha scritto:
>>
>>>Alle 22:37, giovedì 5 maggio 2005, Matteo Bassi ha scritto:
>>>
>>>> ciao a tutti!
>>>>
>>>> ho configurato le cartelle condivise con SMB da linux e il tutto, da
>>>>
>>>> linux verso win funziona, visto che posso sfogliare le cartelle
>>>>
>>>> condivise degli altri pc win
>>>>
>>>>
>>>>
>>>> invece quando qualcuno prova ad accedere al mio sistema da win gli
>>>>
>>>> vengono chieste un nome utente e una passwd, quale deve mettere? ho
>>>>
>>>> provato quella dell'utente linux che ha il pc acceso ma nn funziona...
>>>>
>>>>
>>>>
>>>> potete aiutarmi?
>>>
>>>Sì,
>>>
>>>smbpasswd -a nome_utente
>>>
>>>e crei un'account (sempre se non l'hai già fatto). Alchè dovrebbe
>>>autenticarti anche da win. Attento però alle opzioni che hai impostato
>>>all'interno del tuo smb.conf: controlla force user, e force group se li
>>>hai dichiarati. Controlla i permessi e gli owner poi delle cartelle
>>>condivise.
>>>
>>>tomcap
>>>
>>>--
>>>
>>>-----------------------------------
>>>
>>>powered by Debian GNU/Linux
>>>
>>>-----------------------------------
>>
>>ho provato a fare quello che mi hai detto ma a quanto pare non funziona!
>>mi dice:
>>
>>bags a Matteo-Ubuntu:~$ su
>>Password:
>>root a Matteo-Ubuntu:/home/bags # smbpasswd -a smbuser
>>New SMB password:
>>Retype new SMB password:
>>Failed to initialise SAM_ACCOUNT for user smbuser. Does this user exist
>>in the UNIX password database ?
>>Failed to modify password entry for user smbuser
>>root a Matteo-Ubuntu:/home/bags # smbpasswd -a ospite
>>New SMB password:
>>Retype new SMB password:
>>Failed to initialise SAM_ACCOUNT for user ospite. Does this user exist
>>in the UNIX password database ?
>>Failed to modify password entry for user ospite
>>
>>ti allego la parte di autenticazione del file smb.conf, ho fatto una
>>ricerca e in tutto il file non ho trovato dichiarati nè force user nè
>>force group
>>
>>####### Authentication #######
>>
>># "security = user" is always a good idea. This will require a Unix account
>># in this server for every user accessing the server. See
>># /usr/share/doc/samba-doc/htmldocs/ServerType.html in the samba-doc
>># package for details.
>>;   security = user
>>
>># You may wish to use password encryption.  See the section on
>># 'encrypt passwords' in the smb.conf(5) manpage before enabling.
>>    encrypt passwords = true
>>
>># If you are using encrypted passwords, Samba will need to know what
>># password database type you are using.
>>    passdb backend = tdbsam guest
>>
>>    obey pam restrictions = yes
>>
>>;   guest account = nobody
>>    invalid users = root
>>
>># This boolean parameter controls whether Samba attempts to sync the Unix
>># password with the SMB password when the encrypted SMB password in the
>># passdb is changed.
>>;   unix password sync = no
>>
>># For Unix password sync to work on a Debian GNU/Linux system, the
>>following # parameters must be set (thanks to Augustin Luton
>><aluton a hybrigenics.fr> for
>># sending the correct chat script for the passwd program in Debian Potato).
>>    passwd program = /usr/bin/passwd %u
>>    passwd chat = *Enter\snew\sUNIX\spassword:* %n\n
>>*Retype\snew\sUNIX\spassword:* %n\n .
>>
>># This boolean controls whether PAM will be used for password changes
>># when requested by an SMB client instead of the program listed in
>># 'passwd program'. The default is 'no'.
>>;   pam password change = no
>>
>>c'è qualcosa che nn va? cosa posso fare per risolvere il problema?
>>
>>grazie mille
>>matteo
> 
> 
> molto semplicemente: gli user che utilizzi in smbpasswd devono essere user di 
> "Linux ". quelli insomma di /etc/shadow. Fai una prova con lo user del tuo 
> account, dovrebbe funzionare.
> ti allego la mia smb.conf e il link all'howto che ai tempi ho utilizzato per 
> configuarlo:
> http://us1.samba.org/samba/docs/man/Samba-HOWTO-Collection/FastStart.html
> 
> 
> #Parametri Globali
> [global]
> workgroup = OLIMPO
> netbios name = SERVER
> security = SHARE
> 
> [homes]
> comment = Home Directories
> valid users = %S
> read only = No
> browseable = No
> 
> [angelo]
> comment = Angelo Home
> path = /export/home/angelo
> #force user = angelo
> #force group = users
> guest ok = No
> read only = No
> 
> [annamaria]
> comment = Annamaria Home
> path = /export/home/annamaria
> #force user = annamaria
> #force group = users
> guest ok = No
> read only = No
> 
> [tomcap]
> comment = Tomcap Home
> path = /export/home/tomcap
> #force user = tomcap
> #force group = users
> guest ok = No
> read only = No
> 
> [common]
> comment = Common Read-Only Directory
> path = /export/home/common
> guest ok = Yes
> read only = Yes
> 
> In bocca al lupo,
> tomcap
> 
> 
ottimo!
puetroppo parto e sono via per 4 giorni, ma appena torno provo a fare 
quello che mi hai detto e ti so dire come è andata a finire!!

grazie mille!!!
ci sentiamo

matteo



More information about the ubuntu-it mailing list