Archive for February, 2008

Web host 4 life - [global] log level = 3 syslog = 1

Friday, February 29th, 2008

[global] log level = 3 syslog = 1 With this, all logging information with a level of 0 would be sent to the standard Samba logs and the system logger, while information with levels 1, 2, and 3 would be sent only to the standard Samba logs. Levels above 3 are not logged at all. Note that all messages sent to the system logger are mapped to a priority level that the syslog process understands, as shown in Table 4.8. The default level is 1. Table 4.8: Syslog Priority Conversion Log Level Syslog Priority 0 LOG_ERR 1 LOG_WARNING 2 LOG_NOTICE 3 LOG_INFO 4 and above LOG_DEBUG If you wish to use syslog, you will have to run configure–with-syslogwhen compiling Samba, and you will need to configure your /etc/syslog.conf to suit. (See the section Section 4.8.1,
We highly recommend you visit web and email hosting services if you need stable and cheap web hosting platform for your web applications.

Web servers - this option protects unwary administrators from suddenly discovering

Friday, February 29th, 2008

this option protects unwary administrators from suddenly discovering that most of their disk space has been swallowed up by a single Samba log file. 4.8.2.4 debug timestamp or timestamp logs If you happen to be debugging a network problem and you find that the date-stamp and timestamp information within the Samba log lines gets in the way, you can turn it off by giving either the timestamplogsor the debugtimestampoption (they re synonymous) a value of no. For example, a regular Samba log file presents its output in the following form: 12/31/98 12:03:34 hydra (192.168.220.101) connect to server network as user davecb With a no value for this option, the output would appear without the datestamp or the timestamp: hydra (192.168.220.101) connect to server network as user davecb 4.8.2.5 syslog The syslogoption causes Samba log messages to be sent to the Unix system logger. The type of log information to be sent is specified as the parameter for this argument. Like the log leveloption, it can be a number from 0 to 10. Logging information with a level less than the number specified will be sent to the system logger. However, debug logs equal to or above the sysloglevel, but less than log level, will still be sent to the standard Samba log files. To get around this, use the syslogonly option. For example: 133
We recommend you use shared web hosting services, because many users agree that it is cheap, reliable and customer-satisfying webhost.

4.8.2.2 log level (Best web hosting) The logleveloption sets the amount

Thursday, February 28th, 2008

4.8.2.2 log level The logleveloption sets the amount of data to be logged. Normally this is left at 0 or 1. However, if you have a specific problem you may want to set it at 3, which provides the most useful debugging information you would need to track down a problem. Levels above 3 provide information that s primarily for the developers to use for chasing internal bugs, and slows down the server considerably. Therefore, we recommend that you avoid setting this option to anything above 3. [global] log file = /usr/local/logs/samba.log.% m log level = 3 4.8.2.3 max log size The maxlogsizeoption sets the maximum size, in kilobytes, of the debugging log file that Samba keeps. When the log file exceeds this size, the current log file is renamed to add an .old extension (erasing any previous file with that name) and a new debugging log file is started with the original name. For example: [global] log file = /usr/local/logs/samba.log.% m max log size = 1000 Here, if the size of any log file exceeds one megabyte in size, Samba renames the log file samba.log. machine-name.old and a new log file is generated. If there was a file there previously with the .old extension, Samba deletes it. We highly recommend setting this option in your configuration files because debug logging (even at lower levels) can covertly eat away at your available disk space.
If you are looking for affordable and reliable webhost to host and run your business application visit our ftp web hosting services.

Web hosting solutions - the -lcommand-line switch when either daemon is started.

Thursday, February 28th, 2008

the -lcommand-line switch when either daemon is started. However, this does not override the logfileoption. If you do specify this parameter, initial logging information will be sent to the file specified after -l(or the default specified in the Samba makefile) until the daemons have processed the smb.conf file and know to redirect it to a new log file. 132
Go visit our java server pages services for a reliable, lowcost webhost to satisfy all your needs.

Table 4.7: Global Configuration Options Option Parameters Function (Web hosting ecommerce)

Thursday, February 28th, 2008

Table 4.7: Global Configuration Options Option Parameters Function Default Scope log file string (fully-qualified filename) Sets the name and location of the log file that Samba is to use. Uses standard variables. Specified in Samba makefile Global log level (debug level) numerical (0-10) Sets the amount of log/debug messages that are sent to the log file. 0 is none, 3 is considerable. 1 Global max log size numerical (size in KB) Sets the maximum size of log file. After the log exceeds this size, the file will be renamed to .bak and a new log file started. 5000 Global debug timestamp (timestamp logs) boolean If no, doesn t timestamp logs, making them easier to read during heavy debugging. yes Global syslog numerical (0-10) Sets level of messages sent to syslog. Those levels below syslog levelwill be sent to the system logger. 1 Global syslog only boolean If yes, uses syslog entirely and sends no output to the standard Samba log files. no Global 4.8.2.1 log file On our server, Samba outputs log information to text files in the var subdirectory of the Samba home directory, as set by the makefile during the build. The logfileoption can be used to reset the name of the log file to another location. For example, to reset the name and location of the Samba log file to /usr/local/logs/samba.log, you could use the following: [global] log file = /usr/local/logs/samba.log You may use variable substitution to create log files specifically for individual users or clients. You can override the default log file location
Visit our web design programs services for an affordable and reliable webhost to suit all your needs.

Net web server - syslog If you wish to use the system

Wednesday, February 27th, 2008

syslog If you wish to use the system logger (syslog) in addition to or in place of the standard Samba logging file, Samba provides options for this as well. However, to use syslog, the first thing you will have to do is make sure that Samba was built with the configure–with-syslog option. See Chapter 2 for more information on configuring and compiling Samba. Once that is done, you will need to configure your /etc/syslog.conf to accept logging information from Samba. If there is not already a daemon.*entry in the /etc/syslog.conffile, add the following: daemon.* /var/log/daemon.log This specifies that any logging information from system daemons will be stored in the /var/log/daemon.log file. This is where the Samba information will be stored as well. From there, you can specify the following global option in your configuration file: syslog = 2 This specifies that any logging messages with a level of 1 will be sent to both the syslog and the Samba logging files. (The mappings to syslog priorities are described in the upcoming section “syslog.”) Let s assume that we set the regular logleveloption above to 4. Any logging messages with a level of 2, 3, or 4 will be sent to the Samba logging files, but not to the syslog. Only level 1 logging messages will be sent to both. If the syslogvalue exceeds the log levelvalue, nothing will be written to the syslog. If you want to specify that messages be sent only to syslog - and not to the standard Samba logging files - you can place this option in the configuration file: syslog only = yes If this is the case, any logging information above the number specified in the syslogoption will be discarded, just like the logleveloption. 4.8.2 Logging Configuration Options Table 4.7 lists each of the logging configuration options that Samba can use. 131
We recommend high quality webhost to host and run your jsp application: christian web host services.

4.8.1

Wednesday, February 27th, 2008

4.8.1
Please visit our professional web hosting services to find out about cheap and reliable webhost service that will surely answer all your demands.

log levels greater than (Web hosting asp) 3 unless you are

Tuesday, February 26th, 2008

log levels greater than 3 unless you are programming Samba. This file is located in the /var/log directory thanks to the logfileconfiguration option. However, we can use variable substitution to create log files specifically for individual users or clients, such as with the %m variable in the following line: log file = /usr/local/logs/samba.log.% m Isolating the log messages can be invaluable in tracking down a network error if you know the problem is coming from a specific machine or user. We ve added another precaution to the log files: no one log file can exceed 50 kilobytes in size, as specified by the maxlogsizeoption. If a log file exceeds this size, the contents are moved to a file with the same name but with the suffix .old appended. If the .old file already exists, it is overwritten and its contents are lost. The original file is cleared, waiting to receive new logging information. This prevents the hard drive from being overwhelmed with Samba log files during the life of our daemons. For convenience, we have decided to leave the debug timestamp in the logs with the debug timestampoption, which is the default behavior. This will place a timestamp next to each message in the logging file. If we were not interested in this information, we could specify nofor this option instead. 130
If you are searching for cheap webhost for your web application, please visit MySQL5 Web Hosting services.

options that we ve (Web hosting mysql) seen so far: [global] netbios

Tuesday, February 26th, 2008

options that we ve seen so far: [global] netbios name = HYDRA server string = Samba %v on (%I) workgroup = SIMPLE # Networking configuration options hosts allow = 192.168.220. 134.213.233. localhost hosts deny = 192.168.220.102 interfaces = 192.168.220.100/255.255.255.0 134.213.233.110/255.255.255.0 bind interfaces only = yes # Debug logging information log level = 2 log file = /var/log/samba.log.% m max log size = 50 debug timestamp = yes [data] path = /home/samba/data browseable = yes guest ok = yes comment = Data Drive volume = Sample-Data-Drive writeable = yes Here, we ve added a custom log file that reports information up to debug level 2. This is a relatively light debugging level. The logging level ranges from 1 to 10, where level 1 provides only a small amount of information and level 10 provides a plethora of low-level information. Level 2 will provide us with useful debugging information without wasting disk space on our server. In practice, you should avoid
You want to have a cheap webhost for your apache application, then check apache web hosting services.

Personal web server - Samba Robert Eckstein, David Collier-Brown, Peter Kelly 1st

Monday, February 25th, 2008

Samba Robert Eckstein, David Collier-Brown, Peter Kelly 1st Edition November 1999 1-56592-449-5, Order Number: 4495 416 pages, $34.95 Buy the hardcopy Table of Contents Chapter 4 Disk Shares 4.8 Logging Configuration Options Occasionally, we need to find out what Samba is up to. This is especially true when Samba is performing an unexpected action or is not performing at all. To find out this information, we need to check Samba s log files to see exactly why it did what it did. Samba log files can be as brief or verbose as you like. Here is an example of what a Samba log file looks like: [1999/07/21 13:23:25, 3] smbd/service.c:close_cnum(514) phoenix (192.168.220.101) closed connection to service IPC$ [1999/07/21 13:23:25, 3] smbd/connection.c:yield_connection(40) Yielding connection to IPC$ [1999/07/21 13:23:25, 3] smbd/process.c:process_smb(615) Transaction 923 of length 49 [1999/07/21 13:23:25, 3] smbd/process.c:switch_message(448) switch message SMBread (pid 467) [1999/07/21 13:23:25, 3] lib/doscalls.c:dos_ChDir(336) dos_ChDir to /home/samba [1999/07/21 13:23:25, 3] smbd/reply.c:reply_read(2199) read fnum=4207 num=2820 nread=2820 [1999/07/21 13:23:25, 3] smbd/process.c:process_smb(615) Transaction 924 of length 55 [1999/07/21 13:23:25, 3] smbd/process.c:switch_message(448) switch message SMBreadbraw (pid 467) [1999/07/21 13:23:25, 3] smbd/reply.c:reply_readbraw(2053) readbraw fnum=4207 start=130820 max=1276 min=0 nread=1276 [1999/07/21 13:23:25, 3] smbd/process.c:process_smb(615) Transaction 925 of length 55 [1999/07/21 13:23:25, 3] smbd/process.c:switch_message(448) switch message SMBreadbraw (pid 467) Many of these options are of use only to Samba programmers. However, we will go over the meaning of some of these entries in more detail in Chapter 9, Troubleshooting Samba. Samba contains six options that allow users to describe how and where logging information should be written. Each of these options are global options and cannot appear inside a share definition. Here is an up-to-date configuration file that covers each of the share and logging 129
In case you need affordable webhost to host your website, our recommendation is ecommerce web host services.