|
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:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../generic/serverguide/C/windows-networking.xml:217(para)
|
|
46.
|
|
|
read list = @planning
|
|
|
|
read list =@planning
|
|
Translated by
unikob
|
|
Reviewed by
Toni Lähdekorpi
|
|
|
|
Located in
../generic/serverguide/C/windows-networking.xml:227(emphasis)
|
|
47.
|
|
|
write list = @authors, richard
|
|
|
|
write list =@authors, richard
|
|
Translated by
unikob
|
|
Reviewed by
Toni Lähdekorpi
|
|
|
|
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.
|
|
|
|
Tallenna <filename>/etc/samba/smb.conf</filename>-tiedosto muutosten voimaantulemiseksi.
|
|
Translated and reviewed by
Toni Lähdekorpi
|
|
|
|
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:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../generic/serverguide/C/windows-networking.xml:235(para)
|
|
50.
|
|
|
admin users = melissa
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../generic/serverguide/C/windows-networking.xml:242(emphasis)
|
|
51.
|
|
|
Clients
|
|
|
|
Päätteet
|
|
Translated by
Elias Julkunen
|
|
|
|
Located in
../generic/serverguide/C/windows-networking.xml:250(title)
|
|
52.
|
|
|
Ubuntu includes client applications and capabilities for accessing network resources shared with the SMB protocol. For example, a utility called <application>smbclient</application> allows for accessing remote shared file-systems, in a manner similar to a File Transfer Protocol (FTP) client. To access a shared folder resource known as <emphasis role="italic">documents</emphasis> offered by a remote Windows computer named <emphasis role="italic">bill</emphasis> using <application>smbclient</application> for example, one would enter a command similar to the following at the prompt:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../generic/serverguide/C/windows-networking.xml:251(para)
|
|
53.
|
|
|
smbclient //bill/documents -U <username>
|
|
|
|
smbclient //bill/documents -U <käyttäjänimesi>
|
|
Translated by
Elias Julkunen
|
|
|
|
Located in
../generic/serverguide/C/windows-networking.xml:260(command)
|
|
54.
|
|
|
You will then be prompted for the password for the user name specified after the -U switch, and upon successful authentication, will be presented with a prompt where commands may be entered for manipulating and transferring files in a syntax similar to that used by non-graphical FTP clients. For more information on the <application>smbclient</application> utility, read the utility's manual page with the command: <screen>
<command>man smbclient</command>
</screen>
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
(no translation yet)
|
|
|