Archive for September, 2007

Vps web hosting - 6.4.4.10 hosts equiv This global option specifies the

Sunday, September 30th, 2007

6.4.4.10 hosts equiv This global option specifies the name of a standard Unix hosts.equiv file that will allow hosts or users to access shares without specifying a password. You can specify the location of such a file as follows: [global] hosts equiv = /etc/hosts.equiv The default value for this option does not specify any hosts.equiv file. Because using such a file is essentially a huge security risk, we highly recommend that you do not use this option unless you are confident in the security of your network. 6.4.4.11 use rhosts This global option specifies the name of a standard Unix user s .rhosts file that will allow foreign hosts to access shares without specifying a password. You can specify the location of such a file as follows: [global] use rhosts = /home/dave/.rhosts The default value for this option does not specify any .rhosts file. Like the hostsequivoption above, using such a file is a security risk. We highly recommend that you do use this option unless you are confident in the security of your network. 6.3 Authentication Security 6.5 Windows Domains O Reilly Home | O Reilly Bookstores | How to Order | O Reilly Contacts International | About O Reilly | Affiliated Companies 1999, O Reilly & Associates, Inc. 207
Check Tomcat Web Hosting services for best quality webspace to host your web application.

Like usernamelevel, there is a passwordleveloption that can (Web hosting asp)

Sunday, September 30th, 2007

Like usernamelevel, there is a passwordleveloption that can be used to attempt various permutations of the password with capital letters. This option takes an integer value that specifies how many letters in the password should be capitalized when attempting to connect to a share. You can specify this options as follows: [global] password level = 3 In this case, Samba will then attempt all permutations of the password it can compute having three capital letters. The larger the number, the more computations Samba will have to perform to match the password, and the longer a connection to a specific share may take. 6.4.4.7 update encrypted For sites switching over to the encrypted password format, Samba provides an option that should help with the transition. The updateencryptedoption allows a site to ease into using encrypted passwords from plaintext passwords. You can activate this option as follows: [global] update encrypted = yes This instructs Samba to create an encrypted version of each user s Unix password in the smbpasswd file each time he or she connects to a share. When this option is enabled, you must have the encryptpasswordsoption set to noso that the client will pass plaintext passwords to Samba to use to update the files. Once each user has connected at least once, you can set encryptedpasswords=yes, allowing you to use only the encrypted passwords. The user must already have a valid entry in the smbpasswd file for this option to work. 6.4.4.8 null passwords This global option tells Samba whether or not to allow access from users that have null passwords (encrypted or non-encrypted) set in their accounts. The default value is no. You can override it as follows: null passwords = yes We highly recommend against doing so unless you are familiar with the security risks this option can present to your system, including inadvertent access to system users (such as bin) in the system password file who have null passwords set. 6.4.4.9 smb passwd file This global option identifies the location of the encrypted password database. By default, it is set to /usr/local/samba/private/smbpasswd. You can override it as follows: [global] smb passwd file = /etc/smbpasswd This location, for example, is common on many Red Hat distributions. 206
Visit our web design programs services for an affordable and reliable webhost to suit all your needs.

Web design portfolio - encrypt passwords = yes By default, Windows NT

Saturday, September 29th, 2007

encrypt passwords = yes By default, Windows NT 4.0 with Service Pack 3 or above and Windows 98 transmit encrypted passwords over the network. If you are enabling encrypted passwords, you must have a valid smbpasswd file in place and populated with usernames that will authenticate with encrypted passwords. (See the section Section 6.4.2, The smbpasswd File, earlier in this chapter.) In addition, Samba must know the location of the smbpasswd file; if it is not in the default location (typically /usr/local/samba/private/smbpasswd), you can explicitly name it using the smb passwdfileoption. If you wish, you can use the updateencryptedto force Samba to update the smbpasswd file with encrypted passwords each time a client connects to a non-encrypted password. A common strategy to ensure that hosts who need encrypted password authentication indeed receive it is with the includeoption. With this, you can create individual configuration files that will be read in based on OS-type (%a) or client name (%m). These host-specific or OS-specific configuration files can contain an encryptedpasswords=yesoption that will activate only when those clients are connecting to the server. 6.4.4.3 passwd program The passwdprogramis used to specify a program on the Unix Samba server that Samba can use to update the standard system password file when the encrypted password file is updated. This option defaults to the standard passwd program, usually located in the /bin directory. The %u variable is typically used here as the requesting user when the command is executed. The actual handling of input and output to this program during execution is handled through the passwd chatoption. The “Password Synchronization” section, earlier in this chapter, covers this option in detail. 6.4.4.4 passwd chat This option specifies a series of send/response strings similar to a Unix chat script, which are used to interface with the password-changing program on the Samba server. The “Password Synchronization” section, earlier in this chapter, covers this option in detail. 6.4.4.5 passwd chat debug If set to yes, the passwdchatdebugglobal option logs everything sent or received by Samba during a password chat. All the I/O received by Samba through the password chat is sent to the Samba logs with a debug level of 100; you will need to specify loglevel=100in order for the information to be recorded. The “Password Synchronization” section, earlier in this chapter, describes this option in more detail. Be aware that if you do set this option, the plaintext passwords will be visible in the debugging logs, which could be a security hazard if they are not properly secured. 6.4.4.6 password level With SMB, non-encrypted (or plaintext) passwords are sent with capital letters, just like the usernames mentioned previously. Many Unix users, however, choose passwords with both uppercase and lowercase letters. Samba, by default, only attempts to match the password entirely in lowercase letters, and not capitalizing the first letter. 205
Searching for affordable and proven webhost to host and run your servlet applications? Go to Linux Web Hosting services and you will find it.

Web site developers - Option Parameters Function Default Scope null passwords boolean

Saturday, September 29th, 2007

Option Parameters Function Default Scope null passwords boolean If yes, Samba allows access for users with null passwords. no Global smb passwd file string (fully-qualified pathname) Specifies the name of the encrypted password file. /usr/local/samba/private/smbpasswd Global hosts equiv string (fully-qualified pathname) Specifies the name of a file that contains hosts and users that can connect without using a password. None Global use rhosts string (fully-qualified pathname) Specifies the name of an .rhosts file that allows users to connect without using a password. None Global 6.4.4.1 unix password sync The unixpasswordsyncglobal option allows Samba to update the standard Unix password file when a user changes his or her encrypted password. The encrypted password is stored on a Samba server in the smbpasswd file, which is located in /usr/local/samba/private by default. You can activate this feature as follows: [global] unix password sync = yes If this option is enabled, Samba changes the encrypted password and, in addition, attempts to change the standard Unix password by passing the username and new password to the program specified by the passwdprogramoption (described earlier). Note that Samba does not necessarily have access to the plaintext password for this user, so the password changing program must be invoked as root.[3] If the Unix password change does not succeed, for whatever reason, the SMB password will not be changed either. [3] This is because the Unix passwd program, which is the usual target for this operation, allows rootto change a user s password without the security restriction that requests the old password of that user. 6.4.4.2 encrypt passwords The encryptpasswordsglobal option switches Samba from using plaintext passwords to encrypted passwords for authentication. Encrypted passwords will be expected from clients if the option is set to yes: 204
From our experience, we are can tell you that you can find a reliable and cheap webhost service at Java Web Hosting services.

6.4.4 Password Configuration Options The options in Table (Free web host)

Friday, September 28th, 2007

6.4.4 Password Configuration Options The options in Table 6.8 will help you work with passwords in Samba. Table 6.8: Password Configuration Options Option Parameters Function Default Scope encrypt passwords boolean Turns on encrypted passwords. no Global unix password sync boolean If yes, Samba updates the standard Unix password database when a user changes his or her encrypted password. no Global passwd chat string (chat commands) Sets a sequence of commands that will be sent to the password program. See earlier section on this option Global passwd chat debug boolean Sends debug logs of the password-change process to the log files with a level of 100. no Global passwd program string (Unix command) Sets the program to be used to change passwords. /bin/passwd %u Global password level numeric Sets the number of capital letter permutations to attempt when matching a client s password. None Global update encrypted boolean If yes, Samba updates the encrypted password file when a client connects to a share with a plaintext password. no Global 203
In case you need quality webspace to host and run your web applications, try our personal web hosting services.

Table 6.7: Password Chat (Web design) Send Characters Character Definition

Friday, September 28th, 2007

Table 6.7: Password Chat Send Characters Character Definition %o The user s old password %n The user s new password \n The linefeed character \r The carriage-return character \t The tab character \s A space For example, you may want to change your password chat to the following entry. This will handle scenarios in which you do not have to enter the old password. In addition, this will also handle the new alltokensupdatedsuccessfully string that Red Hat Linux sends: passwd chat = *new password* %n\n *new password* %n\n *success* Again, the default chat should be sufficient for many Unix systems. If it isn t, you can use the passwdchatdebugglobal option to set up a new chat script for the password change program. The passwdchatdebugoption logs everything during a password chat. This option is a simple boolean, as shown below: [global] encrypted passwords = yes smb passwd file = /usr/local/samba/private/smbpasswd unix password sync = yes passwd chat debug = yes log level = 100 After you activate the password chat debug feature, all I/O received by Samba through the password chat will be sent to the Samba logs with a debug level of 100, which is why we entered a new log level option as well. As this can often generate multitudes of error logs, it may be more efficient to use your own script, by setting the passwdprogramoption, in place of /bin/passwd to record what happens during the exchange. Also, make sure to protect your log files with strict file permissions and to delete them as soon as you ve grabbed the information you need, because they contain the passwords in plaintext. The operating system on which Samba is running may have strict requirements for valid passwords in order to make them more impervious to dictionary attacks and the like. Users should be made aware of these restrictions when changing their passwords. Earlier we said that password synchronization is limited. This is because there is no reverse synchronization of the encrypted smbpasswd file when a standard Unix password is updated by a user. There are various strategies to get around this, including NIS and freely available implementations of the pluggable authentication modules (PAM) standard, but none of them really solve all the problems yet. In the future, when Windows 2000 emerges, we will see more compliance with the Lightweight Directory Access Protocol (LDAP), which promises to make password synchronization a thing of the past. 202
We recommend cheap and reliable webhost to host and run your web applications: Coldfusion Web Hosting services.

[global] encrypt passwords = yes smb passwd file (Web site construction)

Thursday, September 27th, 2007

[global] encrypt passwords = yes smb passwd file = /usr/local/samba/private/smbpasswd unix password sync = yes passwd program = changepass %u Note that this program will be called as the rootuser when the unixpasswordsyncoption is set to yes. This is because Samba does not necessarily have the plaintext old password of the user. The harder option to configure is passwdchat. The passwdchatoption works like a Unix chat script. It specifies a series of strings to send as well as responses to expect from the program specified by the passwdprogramoption. For example, this is what the default passwdchat looks like. The delimiters are the spaces between each groupings of characters: passwd chat = *old*password* %o\n *new*password* %n\n *new*password* %n\n *changed* The first grouping represents a response expected from the password-changing program. Note that it can contain wildcards (*), which help to generalize the chat programs to be able to handle a variety of similar outputs. Here, *old*password*indicates that Samba is expecting any line from the password program containing the letters oldfollowed by the letters password, without regard for what comes on either side or between them. Once instructed to, Samba will wait indefinitely for such a match. Is Samba does not receive the expected response, the password will fail. The second grouping indicates what Samba should send back once the data in the first grouping has been matched. In this case, you see %o\n. This response is actually two items: the variable %orepresents the old password, while the \nis a newline character. So, in effect, this will “type” the old password into the standard input of the password changing program, and then “press” Enter. Following that is another response grouping, followed by data that will be sent back to the password changing program. (In fact, this response/send pattern continues indefinitely in any standard Unix chat script.) The script continues until the final pattern is matched.[2] [2] This may not work under Red Hat Linux, as the password program typically responds “All authentication tokens updated successfully,” instead of “Password changed.” We provide a fix for this later in this section. You can help match the response strings sent from the password program with the characters listed in Table 6.6. In addition, you can use the characters listed in Table 6.7 to help formulate your response. Table 6.6: Password Chat Response Characters Character Definition * Zero or more occurrences of any character. ” ” Allows you to include matching strings that contain spaces. Asterisks are still considered wildcards even inside of quotes, and you can represent a null response with empty quotes. 201
From our experience, we are can tell you that you can find a reliable and cheap webhost service at Java Web Hosting services.

6.4.2.2 Changing the encrypted password If you (Shared web hosting) need

Thursday, September 27th, 2007

6.4.2.2 Changing the encrypted password If you need to change the encrypted password in the smbpasswd file, you can also use the smbpasswd program. Note that this program shares the same name as the encrypted password file itself, so be sure not to accidentally confuse the password file with the password-changing program. The smbpasswd program is almost identical to the passwd program that is used to change Unix account passwords. The program simply asks you to enter your old password (unless you re the root user), and duplicate entries of your new password. No password characters are shown on the screen. # smbpasswd dave Old SMB password: New SMB password: Retype new SMB password: Password changed for user dave You can look at the smbpasswd file after this command completes to verify that both the LAN Manager and the NT hashes of the passwords have been stored in their respective positions. Once users have encrypted password entries in the database, they should be able to connect to shares using encrypted passwords! 6.4.3 Password Synchronization Having a regular password and an encrypted version of the same password can be troublesome when you need to change both of them. Luckily, Samba affords you a limited ability to keep your passwords synchronized. Samba has a pair of configuration options that can be used to automatically update a user s regular Unix password when the encrypted password is changed on the system. The feature can be activated by specifying the unixpasswordsyncglobal configuration option: [global] encrypt passwords = yes smb passwd file = /usr/local/samba/private/smbpasswd unix password sync = yes With this option enabled, Samba will attempt to change the user s regular password (as root) when the encrypted version is changed with smbpasswd. However, there are two other options that have to be set correctly in order for this to work. The easier of the two is passwdprogram. This option simply specifies the Unix command used to change a user s standard system password. It is set to /bin/passwd %uby default. With some Unix systems, this is sufficient and you do not need to change anything. Others, such as Red Hat Linux, use /usr/bin/passwd instead. In addition, you may want to change this to another program or script at some point in the future. For example, let s assume that you want to use a script called changepassto change a user s password. Recall that you can use the variable %u to represent the current Unix username. So the example becomes: 200
If you are looking for affordable and reliable webhost to host and run your business application visit our ftp web hosting services.

Web host sites - D This account is currently disabled and Samba

Wednesday, September 26th, 2007

D This account is currently disabled and Samba should not allow any logins. N This account has no password associated with it. W This is a workstation trust account that can be used to configure Samba as a primary domain controller (PDC) when allowing Windows NT machines to join its domain. Last Change Time This code consists of the characters LCT-followed by a hexidecimal representation of the amount of seconds since the epoch (midnight on January 1, 1970) that the entry was last changed. 6.4.2.1 Adding entries to smbpasswd There are a few ways you can add a new entry to the smbpasswd file: You can use the smbpasswd program with the -aoption to automatically add any user that currently has a standard Unix system account on the server. This program resides in the /usr/local/samba/bin directory. You can use the addtosmbpass executable inside the /usr/local/samba/bin directory. This is actually a simple awk script that parses a system password file and extracts the username and UID of each entry you wish to add to the SMB password file. It then adds default fields for the remainder of the user s entry, which can be updated using the smbpasswd program later. In order to use this program, you will probably need to edit the first line of the file to correctly point to awk on your system. In the event that the neither of those options work for you, you can create a default entry by hand in the smbpasswd file. The entry should be entirely on one line. Each field should be colon-separated and should look similar to the following: dave:500:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U ]:LCT-00000000: This consists of the username and the UID as specified in the system password file, followed by two sets of exactly 32 Xcharacters, followed by the account flags and last change time as it appears above. After you ve added this entry, you must use the smbpasswd program to change the password for the user. 199
We highly recommend you visit web and email hosting services if you need stable and cheap web hosting platform for your web applications.

Here is a breakdown of the (Hp web site) individual fields:

Wednesday, September 26th, 2007

Here is a breakdown of the individual fields: Username This is the username of the account. It is taken directly from the system password file. UID This is the user ID of the account. Like the username, it is taken directly from the system password file and must match the user it represents there. LAN Manager Password Hash This is a 32-bit hexadecimal sequence that represents the password Windows 95 and 98 clients will use. It is derived by encrypting the string KGS!@#$%with a 56-bit DES algorithm using the user s password (forced to 14 bytes and converted to capital letters) twice repeated as the key. If there is currently no password for this user, the first 11 characters of the hash will consist of the sequence NOPASSWORDfollowed by Xcharacters for the remainder. Anyone can access the share with no password. On the other hand, if the password has been disabled, it will consist of 32 Xcharacters. Samba will not grant access to a user without a password unless the nullpasswords option has been set. NT Password Hash This is a 32-bit hexadecimal sequence that represents the password Windows NT clients will use. It is derived by hashing the user s password (represented as a 16-bit little-endian Unicode sequence) with an MD4 hash. The password is not converted to uppercase letters first. Account Flags This field consists of 11 characters between two braces ([]). Any of the following characters can appear in any order; the remaining characters should be spaces: U This account is a standard user account. 198
Note: If you are looking for cheap and reliable webhost to host and run your mysql application check mysql web server services.