|
39.
|
|
|
Computer Accounts
|
|
|
|
Datorkonton
|
|
Translated and reviewed by
Robin Sonefors
|
|
|
|
Located in
../generic/serverguide/C/windows-networking.xml:189(title)
|
|
40.
|
|
|
Computer Accounts are used in Directory Services to uniquely identify computer systems participating in a network, and are even treated in the same manner as users in terms of security. Computer accounts may have passwords just as user accounts do, and are subject to authorization to network resources in the same manner as user accounts. For example, if a network user, with a valid account for a particular network attempts to authenticate with a network resource from a computer which does not have a valid computer account, depending upon policies enforced on the network, the user may be denied access to the resource if the computer the user is attempting authentication from is considered to be an unauthorized computer.
|
|
|
|
Datorkonton används i katalogtjänster för att ge varje dator i nätverket en unik identitet, och de hanteras till och med på samma sätt som användare vad gäller säkerhet. Datorkonton kan ha lösenord precis som användarkonton, och måste identifiera sig för att komma åt nätverksresurser precis som användare. Till exempel, om en nätverksanvändare med ett giltigt konto för ett speciellt nätverk försöker identifiera sig mot en nätverksresurs från en dator som inte har ett giltigt datorkonto kan användaren komma att nekas tillgång till resursen, beroende på de policys som används på nätverket.
|
|
Translated and reviewed by
Robin Sonefors
|
|
|
|
Located in
../generic/serverguide/C/windows-networking.xml:190(para)
|
|
41.
|
|
|
A computer account may be added to the SAMBA password file, provided the name of the computer being added exists as a valid user account in the local password database first. The syntax for adding a computer or machine account to the SAMBA password file is to use the <application>smbpasswd</application> command from a terminal prompt as follows:
|
|
|
|
Ett datorkonto går att lägga till SAMBA:s lösenordsfil, förutsatt att namnet på datorn som läggs till redan är ett giltigt användarkonto i den lokala lösenordsdatabasen först. För att lägga till ett dator- eller maskinkonto till SAMBA:s lösenordsfil används kommandot <application>smbpasswd</application> i en terminal såhär:
|
|
Translated and reviewed by
Håkan Hagman
|
|
|
|
Located in
../generic/serverguide/C/windows-networking.xml:199(para)
|
|
42.
|
|
|
sudo smbpasswd -a -m COMPUTER_NAME
|
|
|
|
sudo smbpasswd -a -m DATORNAMN
|
|
Translated and reviewed by
Robin Sonefors
|
|
|
|
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.
|
|
|
|
Se till att ersätta DATORNAMN i ovanstående exempel med namnet på den dator du vill lägga till ett konto för.
|
|
Translated and reviewed by
Håkan Hagman
|
|
|
|
Located in
../generic/serverguide/C/windows-networking.xml:210(para)
|
|
44.
|
|
|
File Permissions
|
|
|
|
Filrättigheter
|
|
Translated and reviewed by
Robin Sonefors
|
|
|
|
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:
|
|
|
|
Filrättigheter definierar de uttryckliga rättigheter en dator eller användare har till en speciell katalog, fil eller uppsättning filer. Sådana rättigheter går att definiera genom att ändra på filen <filename>/etc/samba/smb.conf</filename> och specificerar de uttryckliga rättigheterna för respektive filutdelning. Om du till exempel har skapat en SAMBA-utdelning som heter <emphasis role="italic">sourcedocs</emphasis> och enbart vill dela ut läsrättigheter (<emphasis role="italic">read-only</emphasis>) till gruppen som heter <emphasis role="italic">planning</emphasis>, men vill ge gruppen <emphasis role="italic">authors</emphasis> och användaren <emphasis role="italic">richard</emphasis> skrivrättigheter skriver du följande rader under posten <emphasis role="italic">[sourcedocs]</emphasis>:
|
|
Translated and reviewed by
Håkan Hagman
|
|
|
|
Located in
../generic/serverguide/C/windows-networking.xml:217(para)
|
|
46.
|
|
|
read list = @planning
|
|
|
|
read list = @planning
|
|
Translated and reviewed by
Robin Sonefors
|
|
|
|
Located in
../generic/serverguide/C/windows-networking.xml:227(emphasis)
|
|
47.
|
|
|
write list = @authors, richard
|
|
|
|
write list = @authors, richard
|
|
Translated and reviewed by
Robin Sonefors
|
|
|
|
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.
|
|
|
|
Spara <filename>/etc/samba/smb.conf</filename> för att ändringarna skall verkställas.
|
|
Translated by
Håkan Hagman
|
Shared: |
|
Spara <filename>/etc/samba/smb.conf</filename> för att ändringarna ska verkställas.
|
|
|
Suggested by
Robin Sonefors
|
|
|
|
Located in
../generic/serverguide/C/windows-networking.xml:232(para) ../generic/serverguide/C/windows-networking.xml:244(para)
|