HostedDB - Dedicated UNIX Servers

Securing-Optimizing-RH-Linux-1_2_430
Comments and suggestions concerning this book should be mailed to gmourani@videotron.ca © Copyright 1999-2000 Gerhard Mourani and Open Network Architecture ® 430 This line tells “bdflush” not to worry about writing out dirty blocks to the disk until the filesystem buffer cache is 80 percent full (80). The  other values tune such things as the number of buffers to write out in one disk operation (500), how long to allow dirty buffers to age in the kernel (60*HZ), etc. You can find full details in the 2.2 kernel documentation in the file “linux/Documentation/sysctl/vm.txt”, also you can check the chapter 4 “General System Optimization” in this book for more information. NOTE: You may add the above commands to the “/etc/rc.d/rc.local” script file and you’ll not have to type it again the next time if you reboot your system. Tuning the buffermem Another helpful tuning hint is to tell Linux the following: Use a minimum of 60 percent of memory for the buffer cache; only prune when the percentage of memory used for the buffer cache gets over 10 percent (this parameter is now unused); and allow the buffer cache to grow to 60 percent of all memory (this parameter is also unused now). · To change the values of buffermem, type the following command on your terminal: [root@deep /]# echo "60 10 60" >/proc/sys/vm/buffermem Recall that the last two parameters (10 and 60) are unused by the system so we don’t need to change the default ones. You can put the above command in the “/etc/rc.d/rc.local” script file  and avoid to type it again the next time your system reboot. You can find full details in the 2.2 kernel documentation in the file “linux/Documentation/sysctl/vm.txt”, also you can check the chapter 4 “General System Optimization” in this book for more information. Further documentation For more details, there are several man pages you can read: $ man Samba (7) - A Windows SMB/CIFS fileserver for UNIX $ man smb.conf (5) - The configuration file for the Samba suite  $ man smbclient (1) - ftp-like client to access SMB/CIFS resources on servers  $ man smbd (8) - server to provide SMB/CIFS services to clients $ man smbmnt (8) - mount smb file system  $ man smbmount (8) - mount smb file system  $ man smbpasswd (5) - The Samba encrypted password file $ man smbpasswd (8) - change a users SMB password $ man smbrun (1) - interface program between smbd and external programs $ man smbsh (1) - Allows access to Windows NT filesystem using UNIX commands  $ man smbstatus (1) - report on current Samba connections  $ man smbtar (1) - shell script for backing up SMB shares directly to UNIX tape drives $ man smbumount (8) - umount for normal users  $ man testparm (1) - check an smb.conf configuration file for internal correctness $ man testprns (1) - check printer name for validity with smbd Samba Administrative Tools The commands listed bellows are some that we use often in our regular use but much more exist and you must check the man page and documentation for more details and information. smbstatus The smbstatus utility is a very simple program to list the current Samba connections. · To report current Samba connections, use the following command: