|
42.
|
|
|
sudo smbpasswd -a -m COMPUTER_NAME
|
|
|
|
sudo smbpasswd -a -m NOME_COMPUTER
|
|
Translated and reviewed by
Roberto Di Girolamo
|
|
|
|
Located in
../generic/serverguide/C/windows-networking.xml:206(command)
|
|
43.
|
|
|
Be sure to replace the token COMPUTER_NAME in the example above with the actual name of the specific computer you wish to add a machine account for.
|
|
|
|
Assicurarsi di sostituire il token NOME_COMPUTER, utilizzato nell'esempio precedente, con il nome del computer per il quale si vuole creare un account.
|
|
Translated and reviewed by
Milo Casagrande
|
|
|
|
Located in
../generic/serverguide/C/windows-networking.xml:210(para)
|
|
44.
|
|
|
File Permissions
|
|
|
|
Permessi dei file
|
|
Translated and reviewed by
Luca Ferretti
|
|
|
|
Located in
serverguide/C/windows-networking.xml:526(title)
|
|
45.
|
|
|
File Permissions define the explicit rights a computer or user has to a particular directory, file, or set of files. Such permissions may be defined by editing the <filename>/etc/samba/smb.conf</filename> file and specifying the explicit permissions of a defined file share. For example, if you have defined a SAMBA share called <emphasis role="italic">sourcedocs</emphasis> and wish to give <emphasis role="italic">read-only</emphasis> permissions to the group of users known as <emphasis role="italic">planning</emphasis>, but wanted to allow writing to the share by the group called <emphasis role="italic">authors</emphasis> and the user named <emphasis role="italic">richard</emphasis>, then you could edit the <filename>/etc/samba/smb.conf</filename> file, and add the following entries under the <emphasis role="italic">[sourcedocs]</emphasis> entry:
|
|
|
|
I permessi di accesso ai file indicano esplicitamente le operazioni consentite a un computer o a un utente su una particolare directory, un determinato file oppure un insieme di file. Questi permessi possono essere definiti modificando il file <filename>/etc/samba/smb.conf</filename> e specificando i permessi per una condivisione. Ad esempio, se l'utente ha definito una condivisione SAMBA chiamata <emphasis role="italic">sourcedocs</emphasis> e desidera concedere i permessi di <emphasis role="italic">sola lettura</emphasis> al gruppo <emphasis role="italic">pianificazione</emphasis>, concedendo però i permessi di <emphasis role="italic">scrittura</emphasis> al gruppo <emphasis role="italic">autori</emphasis> e all'utente <emphasis role="italic">mario</emphasis>, è necessario modificare il file <filename>/etc/samba/smb.conf</filename>, aggiungendo le seguenti righe al di sotto di <emphasis role="italic">[sourcedocs]</emphasis>:
|
|
Translated and reviewed by
Milo Casagrande
|
|
|
|
Located in
../generic/serverguide/C/windows-networking.xml:217(para)
|
|
46.
|
|
|
read list = @planning
|
|
|
|
read list = @pianificazione
|
|
Translated and reviewed by
Luca Ferretti
|
|
|
|
Located in
../generic/serverguide/C/windows-networking.xml:227(emphasis)
|
|
47.
|
|
|
write list = @authors, richard
|
|
|
|
write list = @autori, mario
|
|
Translated and reviewed by
Luca Ferretti
|
|
|
|
Located in
../generic/serverguide/C/windows-networking.xml:230(emphasis)
|
|
48.
|
|
|
Save the <filename>/etc/samba/smb.conf</filename> for the changes to take effect.
|
|
|
|
Salvare il file <filename>/etc/samba/smb.conf</filename> affinché i cambiamenti abbiano effetto.
|
|
Translated and reviewed by
Luca Ferretti
|
|
|
|
Located in
../generic/serverguide/C/windows-networking.xml:232(para) ../generic/serverguide/C/windows-networking.xml:244(para)
|
|
49.
|
|
|
Another possible permission is to declare <emphasis role="italic">administrative</emphasis> permissions to a particular shared resource. Users having administrative permissions may read, write, or modify any information contained in the resource the user has been given explicit administrative permissions to. For example, if you wanted to give the user <emphasis role="italic">melissa</emphasis> administrative permissions to the example <emphasis role="italic">sourcedocs</emphasis> share, you would edit the <filename>/etc/samba/smb.conf</filename> file, and add the following line under the <emphasis role="italic">[sourcedocs]</emphasis> entry:
|
|
|
|
È inoltre possibile concedere permessi <emphasis role="italic">amministrativi</emphasis> per una particolare risorsa condivisa. Gli utenti che possiedono permessi amministrativi possono leggere, scrivere o modificare tutte le informazioni della risorsa per la quale hanno ottenuto i permessi. Per esempio, se si desidera concedere all'utente <emphasis role="italic">melissa</emphasis> i permessi amministrativi sulla condivisione <emphasis role="italic">sourcedocs</emphasis>, è necessario modificare il file <filename>/etc/samba/smb.conf</filename> aggiungendo le seguenti righe al di sotto di <emphasis role="italic">[sourcedocs]</emphasis>:
|
|
Translated and reviewed by
Milo Casagrande
|
|
|
|
Located in
../generic/serverguide/C/windows-networking.xml:235(para)
|
|
50.
|
|
|
admin users = melissa
|
|
|
|
admin users = chiara
|
|
Translated by
Milo Casagrande
|
|
|
|
Located in
../generic/serverguide/C/windows-networking.xml:242(emphasis)
|
|
51.
|
|
|
Clients
|
|
|
|
Client
|
|
Translated and reviewed by
Milo Casagrande
|
|
|
|
Located in
../generic/serverguide/C/windows-networking.xml:250(title)
|