Chapter 26 . Running a File (Web hosting services) Server 681
Chapter 26 . Running a File Server 681 Logging Options The following options help define how logging is done on your Samba server: . Log level Sets the debug level used when logging Samba activity. Raise the level from the default (0) to log more Samba activity. . Log file Defines the location of the Samba smb log file. By default, Samba log files are contained in /var/log/samba (with file names log.nmbd, log.smbd, and smb.log). In this option, the %m is replaced by smb to set the smb log file as /var/log/samba/smb.log. . Max log size Sets the maximum amount of space, in kilobytes, that the log files can consume. By default, the value is set to 0 (no limit). Performance Options The Socket Options option lets you pass options to the protocols Samba uses to communicate. The following options are set by default: TCP_NODELAY, SO_RCVBUF= 8192, and SO_SNDBUF=8192. The first option disables Nagle s algorithm, which is used to manage the transmission of TCP/IP packets. The other two options set the maximum size of the sockets receive buffer and send buffer to 8192, respectively. These options are set to improve performance (reportedly up to 10 times faster than without setting these options). In general, you shouldn t change these options. Printing Options The printing options are used to define how printer status information is presented. For the overwhelming majority of Linux systems, the printing value is set to cups. You can use printing styles from other types of operating systems, such as UNIX System V (sysv), AIX (aix), HP UNIX (hpux), and Berkeley UNIX (bsd), to name a few. LPRng (lprng), offered by many UNIX systems, is also included. Other printing options enable you to redefine the location of basic printing commands (lpq, lprm, and so on) and printing files (such as the name of the printcap file). Browse Options A browse list is a list of computers that are available on the network to SMB services. Clients use this list to find computers that are on their own LAN and also computers in their workgroups that may be on other reachable networks. Assigning Guest Accounts Samba always assigns the permissions level of a valid user on the Linux system to clients who use the server. In the case of share security, the user is assigned a guest account (the nobody user account by default). If the guest account value isn t set, Samba goes through a fairly complex set of rules to determine which user account to use. The result is that it can be hard to ensure which user permissions will be assigned in each case. That s why user security is recommended if you want to provide more specific user access to your Samba server.
If you are in need for chaep and reliable webhost to host your website, our recommendation is http web server services.