|
1541.
|
|
|
File Permissions
|
|
|
|
Filtilganger
|
|
Translated by
Matthew East
|
|
|
|
Located in
serverguide/C/samba.xml:527(title)
|
|
1542.
|
|
|
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.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/samba.xml:529(para)
|
|
1543.
|
|
|
For example, if you have defined a Samba share called <emphasis>share</emphasis> and wish to give <emphasis role="italic">read-only</emphasis> permissions to the group of users known as <emphasis role="italic">qa</emphasis>, but wanted to allow writing to the share by the group called <emphasis role="italic">sysadmin</emphasis> and the user named <emphasis role="italic">vincent</emphasis>, then you could edit the <filename>/etc/samba/smb.conf</filename> file, and add the following entries under the <emphasis>[share]</emphasis> entry:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/samba.xml:535(para)
|
|
1544.
|
|
|
read list = @qa
write list = @sysadmin, vincent
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/samba.xml:544(programlisting)
|
|
1545.
|
|
|
Another possible Samba permission is to declare <emphasis>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.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/samba.xml:549(para)
|
|
1546.
|
|
|
For example, if you wanted to give the user <emphasis role="italic">melissa</emphasis> administrative permissions to the <emphasis role="italic">share</emphasis> example, you would edit the <filename>/etc/samba/smb.conf</filename> file, and add the following line under the <emphasis>[share]</emphasis> entry:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/samba.xml:555(para)
|
|
1547.
|
|
|
admin users = melissa
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/samba.xml:562(programlisting)
|
|
1548.
|
|
|
After editing <filename>/etc/samba/smb.conf</filename>, restart Samba for the changes to take effect:
|
|
|
|
Etter du har endret filename>/etc/samba/smb.conf</filename>, start Samba på nytt for at endringene skal tre i kraft:
|
|
Translated by
Matthew East
|
|
|
|
Located in
serverguide/C/samba.xml:566(para)
|
|
1549.
|
|
|
For the <emphasis>read list</emphasis> and <emphasis>write list</emphasis> to work the Samba security mode must <emphasis>not</emphasis> be set to <emphasis role="italic">security = share</emphasis>
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/samba.xml:575(para)
|
|
1550.
|
|
|
Now that Samba has been configured to limit which groups have access to the shared directory, the filesystem permissions need to be updated.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/samba.xml:581(para)
|