Linux Server Configuration


$ sudo apt-get install apparmor-profiles


Download 493.5 Kb.
bet29/48
Sana16.06.2023
Hajmi493.5 Kb.
#1495871
1   ...   25   26   27   28   29   30   31   32   ...   48
Bog'liq
0501-linux-server-configuration

$ sudo apt-get install apparmor-profiles
By default the profiles for smbd and nmbd are in complain mode allowing Samba to work without modifying the profile, and only logging errors. To place the smbd profile into enforce mode, and have Samba work as expected, the profile will need to be modified to reflect any directories that are shared.
Edit /etc/apparmor.d/usr.sbin.smbd adding information for [share] from the file server example:
/srv/samba/share/ r,
/srv/samba/share/** rwkix,
Now place the profile into enforce and reload it:
$ sudo aa-enforce /usr/sbin/smbd
$ cat /etc/apparmor.d/usr.sbin.smbd | sudo apparmor_parser -r
You should now be able to read, write, and execute files in the shared directory as normal, and the smbd binary will have access to only the configured files and direcotories. Be sure to add entries for each directory you configure Samba to share. Also, any errors will be logged to /var/log/syslog.

Chapter 7: Network File System (NFS)


NFS allows a system to share directories and files with others over a network. By using NFS, users and programs can access files on remote systems almost as if they were local files.
Some of the most notable benefits that NFS can provide are:

  • Local workstations use less disk space because commonly used data can be stored on a single machine and still remain accessible to others over the network.

  • There is no need for users to have separate home directories on every network machine. Home directories could be set up on the NFS server and made available throughout the network.

  • Storage devices such as floppy disks, CDROM drives, and USB Thumb drives can be used by other machines on the network. This may reduce the number of removable media drives throughout the network.


7.1 Installation


At a terminal prompt enter the following command to install the NFS Server:
$ sudo apt-get install nfs-kernel-server

Download 493.5 Kb.

Do'stlaringiz bilan baham:
1   ...   25   26   27   28   29   30   31   32   ...   48




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling