|
96.
|
|
|
To match the Samba configuration above, the <emphasis>sysadmin</emphasis> group will be given read, write, and execute permissions to <filename>/srv/samba/share</filename>, the <emphasis>qa</emphasis> group will be given read and execute permissions, and the files will be owned by the username <emphasis>melissa</emphasis>. Enter the following in a terminal:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../docs/sharing/C/sharing.xml:560(para)
|
|
97.
|
|
|
sudo chown -R melissa /srv/samba/share/
|
|
|
|
sudo chown -R melissa /srv/samba/share/
|
|
Translated and reviewed by
abuyop
|
|
|
|
Located in
docs/sharing/C/sharing.xml:513(command)
|
|
98.
|
|
|
sudo chgrp -R sysadmin /srv/samba/share/
|
|
|
|
sudo chgrp -R sysadmin /srv/samba/share/
|
|
Translated and reviewed by
abuyop
|
|
|
|
Located in
docs/sharing/C/sharing.xml:514(command)
|
|
99.
|
|
|
sudo setfacl -R -m g:qa:rx /srv/samba/share/
|
|
|
|
sudo setfacl -R -m g:qa:rx /srv/samba/share/
|
|
Translated and reviewed by
abuyop
|
|
|
|
Located in
docs/sharing/C/sharing.xml:515(command)
|
|
100.
|
|
|
The <application>setfacl</application> command above gives <emphasis>execute</emphasis> permissions to all files in the <filename>/srv/samba/share</filename> directory, which may or may not be desirable.
|
|
|
|
Perintah <application>setfacl</application> diatas membolehkan keizinan above gives <emphasis>lakukan</emphasis> permissions pada semua fail dalam direktori <filename>/srv/samba/share</filename>, yang mana dikehendaki ataupun tidak.
|
|
Translated and reviewed by
abuyop
|
|
|
|
Located in
docs/sharing/C/sharing.xml:613(para)
|
|
101.
|
|
|
A Windows client will show that the new file permissions are implemented. See the <application>acl</application> and <application>setfacl</application> man pages for more information on POSIX ACLs.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../docs/sharing/C/sharing.xml:583(para)
|
|
102.
|
|
|
Samba AppArmor Profile
|
|
|
|
Profil AppAmor Samba
|
|
Translated and reviewed by
abuyop
|
|
|
|
Located in
docs/sharing/C/sharing.xml:533(title)
|
|
103.
|
|
|
<phrase>Kubuntu</phrase> comes with the <application>AppArmor</application> security module, which provides mandatory access controls. The default AppArmor profile for Samba will need to be adapted to the proper configuration. For more details on using AppArmor, please refer to the<ulink url="https://help.ubuntu.com/community/AppArmor"> wiki</ulink>
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../docs/sharing/C/sharing.xml:594(para)
|
|
104.
|
|
|
There are default AppArmor profiles for <filename>/usr/sbin/smbd</filename> and <filename>/usr/sbin/nmbd</filename>, the Samba daemon binaries, as part of the <application>apparmor-profiles</application> packages. To install the package, from a terminal prompt, enter:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../docs/sharing/C/sharing.xml:602(para)
|
|
105.
|
|
|
sudo apt-get install apparmor-profiles
|
|
|
|
sudo apt-get install apparmor-profiles
|
|
Translated and reviewed by
abuyop
|
|
|
|
Located in
docs/sharing/C/sharing.xml:549(command)
|