Archive for September, 2007

Make web site - 6.4.1 Disabling encrypted passwords on the client While

Tuesday, September 25th, 2007

6.4.1 Disabling encrypted passwords on the client While Unix authentication has been in use for decades, including the use of telnet and rlogin access across the Internet, it embodies well-known security risks. Plaintext passwords are sent over the Internet and can be retrieved from TCP packets by malicious snoopers. However, if you feel that your network is secure and you wish to use standard Unix /etc/passwd authentication for all clients, you can do so, but you must disable encrypted passwords on those Windows clients that default to using them. In order to do this, you must modify the Windows registry by installing two files on each system. Depending on the platform involved, the files are either NT4_PlainPassword.reg or Win95_PlainPassword.reg. You can perform this installation by copying the appropriate .reg files from the Samba distribution s /docs directory to a DOS floppy, and running it from the Run menu item on the client s Start Menu button. Incidentally, the Windows 95 .reg file works fine on Windows 98 as well. After you reboot the machine, the client will not encrypt its hashed passwords before sending them to the server. This means that the plaintext-equivalent passwords can been seen in the TCP packets that are broadcast across the network. Again, we encourage you not to do this unless you are absolutely sure that your network is secure. If passwords are not encrypted, you can indicate as much in your Samba configuration file: [global] security = user encrypt passwords = no 6.4.2 The smbpasswd File Samba stores its encrypted passwords in a file called smbpasswd, which by default resides in the /usr/local/samba/private directory. The smbpasswd file should be guarded as closely as the passwd file; it should be placed in a directory to which only the root user has read/write access. All other users should not be able to read from the directory at all. In addition, the file should have all access closed off to all users except for root. Before you can use encrypted passwords, you will need to create an entry for each Unix user in the smbpasswd file. The structure of the file is somewhat similar to a Unix passwd file, but has different fields. Figure 6.3 illustrates the layout of the smbpasswd file; the entry shown is actually one line in the file. Figure 6.3: Structure of the smbpasswd file entry (actually one line) 197
We recommend high quality webhost to host and run your jsp application: christian web host services.

Php web hosting - There is less overhead on the PDC because

Wednesday, September 19th, 2007

There is less overhead on the PDC because there is one less permanent network connection between it and the Samba server. Unlike the protocol used by the security=server option, the Samba server can make a Remote Procedure Call (RPC) call only when it needs authentication information. It can not keep a connection permanently up just for that. Finally, the NT domain authentication scheme returns the full set of user attributes, not just success or failure. The attributes include a longer, more network-oriented version of the Unix uid, NT groups, and other information. This includes: Username Full name Description Security identifier (a domain-wide extension of the Unix uid) NT group memberships Logon hours, and whether to force the user to log out immediately Workstations the user is allowed to use Account expiration date Home directory Login script Profile 193
Searching for affordable and proven webhost to host and run your servlet applications? Go to Linux Web Hosting services and you will find it.

Crystaltech web hosting - [global] security = server password server = PHOENIX120

Tuesday, September 18th, 2007

[global] security = server password server = PHOENIX120 HYDRA134 Note that you can specify more than one machine as the target of the passwordserver; Samba will move down the list of servers in the event that its first choice is unreachable. The servers identified by the passwordserveroption are given as NetBIOS names, not their DNS names or equivalent IP addresses. Also, if any of the servers reject the given password, the connection will automatically fail - Samba will not attempt another server. One caveat: when using this option, you will still need an account representing that user on the regular Samba server. This is because the Unix operating system needs a username to perform various I/O operations. The preferable method of handling this is to give the user an account on the Samba server but disable the account s password by replacing it in the system password file (e.g., /etc/passwd ) with an asterisk (*). 6.3.4 Domain-level Security Domain-level security is similar to server-level security. However, with domainlevel security, the Samba server is acting as a member of a Windows domain. Recall from Chapter 1 that each domain has a domain controller, which is usually a Windows NT server offering password authentication. Including these controllers provides the workgroup with a definitive password server. The domain controllers keep track of users and passwords in their own security authentication module (SAM), and authenticates each user when he or she first logs on and wishes to access another machine s shares. As mentioned earlier in this chapter, Samba has a similar ability to offer user-level security, but this option is Unix-centric and assumes that the authentication occurs via Unix password files. If the Unix machine is part of a NIS or NIS+ domain, Samba will authenticate the users transparently against a shared password file, in typical Unix fashion. Samba then provides access to the NIS or NIS+ domain from Windows. There is, of course, no relationship between the NIS concept of a domain and the Windows concept of a domain. With domain-level security, we now have the option of using the native NT mechanism. This has a number of advantages: It provides far better integration with NT: there are fewer “kludges” in the smb.conf options dealing with domains than with most Windows features. This allows more extensive use of NT management tools, such as the User Manager for Domains tool allowing PC support individuals to treat Samba servers as if they were large NT machines. With the better integration comes protocol and code cleanups, allowing the Samba team to track the evolving NT implementation. NT Service Pack 4 corrects several problems in the protocol, and Samba s better integration makes it easier to track and adapt to these changes. 192
We would like to recommend you tested and proved virtual web hosting services, which you will surely find to be of great quality.

[global] security = user [accounting1] writable = yes

Tuesday, September 18th, 2007

[global] security = user [accounting1] writable = yes valid users = bob, joe, sandy Each of the users listed will be allowed to connect to the share if the password provided matches the password stored in the system password database on the server. Once the initial authentication succeeds, the user will not need to re-enter a password again to access that share unless the revalidate=yes option has been set. Passwords can be sent to the Samba server in either an encrypted or a non-encrypted format. If you have both types of systems on your network, you should ensure that the passwords represented by each user are stored both in a traditional account database and Samba s encrypted password database. This way, authorized users can gain access to their shares from any type of client.[1] However, we recommend that you move your system to encrypted passwords and abandon non-encrypted passwords if security is an issue. The Section 6.4 section of this chapter explains how to use encrypted as well as non-encrypted passwords. [1] Having both encrypted and non-encrypted password clients on your network is another reason why Samba allows you to include (or not include) various options in the Samba configuration file based on the client operating system or machine name variables. 6.3.3 Server-level Security Server-level security is similar to user-level security. However, with server-level security, Samba delegates password authentication to another SMB password server, typically another Samba server or a Windows NT Server acting as a PDC on the network. Note that Samba still maintains its list of shares and their configuration in its smb.conf file. When a client attempts to make a connection to a particular share, Samba validates that the user is indeed authorized to connect to the share. Samba will then attempt to validate the password by contacting the SMB password server through a known protocol and presenting the username and password to the SMB password server. If the password is accepted, a session will be established with the client. See Figure 6.2 for an illustration of this setup. Figure 6.2: A typical system setup using server level security You can configure Samba to use a separate password server under server-level security with the use of the passwordserver global configuration option, as follows: 191
We recommend cheap and reliable webhost to host and run your web applications: Coldfusion Web Hosting services.

Web host sites - 6.3.1.1 Share Level Security Options Table 6.4 shows

Monday, September 17th, 2007

6.3.1.1 Share Level Security Options Table 6.4 shows the options typically associated with share-level security. Table 6.4: Share-Level Access Options Option Parameters Function Default Scope only user boolean Indicates whether usernames specified by username will be the only ones allowed. no Share username (user or users) string (list of usernames) Specifies a list of users against which a client s password will be tested. None Share 6.3.1.2 only user This boolean option indicates whether Samba will allow connections to a share using share-level security based solely on the individuals specified in the usernameoption, instead of those users compiled on Samba s internal list. The default value for this option is no. You can override it per share as follows: [global] security = share [data] username = andy, peter, valerie only user = yes 6.3.1.3 username This option presents a list of users against which Samba will test a connection password to allow access. It is typically used with clients that have share-level security to allow connections to a particular service based solely on a qualifying password - in this case, one that matches a password set up for a specific user: [global] security = share [data] username = andy, peter, terry We recommend against using this option unless you are implementing a Samba server with share-level security. 6.3.2 User-level Security The preferred mode of security with Samba is user-level security. With this method, each share is assigned specific users that can access it. When a user requests a connection to a share, Samba authenticates by validating the given username and password with the authorized users in the configuration file and the passwords in the password database of the Samba server. As mentioned earlier in the chapter, one way to isolate which users are allowed access to a specific share is by using the validusers option for each share: 190
If you are looking for affordable and reliable webhost to host and run your business application visit our ftp web hosting services.

Abyss web server - You might be thinking that this security model

Monday, September 17th, 2007

You might be thinking that this security model is not a good fit for Samba - and you would be right. In fact, if you set the security=shareoption in the Samba configuration file, Samba will still reuse the username/passwords combinations in the system password files to authenticate access. More precisely, Samba will take the following steps when a client requests a connection using share-level security: 1. When a connection is requested, Samba will accept the password and (if sent) the username of the client. 2. If the share is guestonly, the user is immediately granted access to the share with the rights of the user specified by the guestaccountparameter; no password checking is performed. 3. For other shares, Samba appends the username to a list of users who are allowed access to the share. It then attempts to validate the password given in association with that username. If successful, Samba grants the user access to the share with the rights assigned to that user. The user will not need to authenticate again unless a revalidate=yesoption has been set inside the share. 4. If the authentication is unsuccessful, Samba will attempt to validate the password against the list of users it has previously compiled throughout the attempted connections, as well as any specified under the share in the configuration file. If the password does not match any usernames (as specified in the system password file, typically /etc/passwd), the user is not granted access to the share under that username. 5. However, if the share has a guestokor publicoption set, the user will default to access with the rights of the user specified by the guestaccountoption. You can indicate in the configuration file which users should be initially placed on the share-level security user list by using the username configuration option, as shown below: [global] security = share [accounting1] path = /home/samba/accounting1 guest ok = no writable = yes username = davecb, pkelly, andyo Here, when a user attempts to connect to a share, Samba will verify the password that was sent against each of the users in its own list, in addition to the passwords of users davecb, pkelly, and andyo. If any of the passwords match, the connection will be verified and the user will be allowed. Otherwise, connection to the specific share will fail. 189
You need excellent and relaible webhost company to host your web applications? Then pay a visit to Inexpensive Web Hosting services.

Each of (Tomcat web server) these security policies can be implemented

Monday, September 17th, 2007

Each of these security policies can be implemented with the global securityoption, as shown in Table 6.3. Table 6.3: Security Option Option Parameters Function Default Scope security domain, server, share, or user Indicates the type of security that the Samba server will use. user(Samba 2.0) or share (Samba 1.9) Global 6.3.1 Share-level Security With share-level security, each share has one or more passwords associated with it. This differs from the other modes of security in that there are no restrictions as to whom can access a share, as long as that individual knows the correct password. Shares often have multiple passwords. For example, one password may grant read-only access, while another may grant read-write access, and so on. Security is maintained as long as unauthorized users do not discover the password for a share to which they shouldn t have access. OS/2 and Window 95/98 both support share-level security on their resources. You can set up share-level security with Windows 95/98 by first enabling share-level security using the Access Control tab of the Network Control Panel dialog. Then select the Share-level Access Control radio button (which deselects the user-level access control radio button), as shown in Figure 6.1, and press the OK button. Figure 6.1: Selecting share-level security on a Windows machine Next, right click on a resource - such as a hard drive or a CD-ROM - and select the Properties menu item. This will bring up the Resource Properties dialog box. Select the Sharing tab at the top of the dialog box and enable the resource as Shared As. From here, you can configure how the shared resource will appear to individual users, as well as assigning whether the resource will appear as read-only, read-write, or a mix, depending on the password that is supplied. 188
Please visit Domain Name Hosting services for high quality webhost to host and run your jsp applications.

Using Samba (Web servers) Robert Eckstein, David Collier-Brown, Peter Kelly

Sunday, September 16th, 2007

Using 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 6 Users, Security, and Domains 6.3 Authentication Security At this point, we should discuss how Samba authenticates users. Each user who attempts to connect to a share that does not allow guest access must provide a password to make a successful connection. What Samba does with that password - and consequently the strategy Samba will use to handle user authentication - is the arena of the securityconfiguration option. There are currently four security levels that Samba supports on its network: share, user, server, and domain. Share-level security Each share in the workgroup has one or more passwords associated with it. Anyone who knows a valid password for the share can access it. User-level security Each share in the workgroup is configured to allow access from certain users. With each initial tree connection, the Samba server verifies users and their passwords to allow them access to the share. Server-level security This is the same as user-level security, except that the Samba server uses a separate SMB server to validate users and their passwords before granting access to the share. Domain-level security Samba becomes a member of a Windows domain and uses the domain s primary domain controller (PDC) to perform authentication. Once authenticated, the user is given a special token that allows him or her access to any share with appropriate access rights. With this token, the PDC will not have to revalidate the user s password each time he or she attempts to access another share within the domain. 187
In case you need quality webspace to host and run your web applications, try our personal web hosting services.

Checking for a (Mac os x web server) user account with the exact

Sunday, September 16th, 2007

Checking for a user account with the exact name sent by the client 2. Testing the username in all lowercase letters 3. Testing the username in lowercase letters with only the first letter capitalized If you wish to have Samba attempt more combinations of uppercase and lowercase letters, you can use the usernamelevelglobal configuration option. This option takes an integer value that specifies how many letters in the username should be capitalized when attempting to connect to a share. You can specify this options as follows: [global] username level = 3 In this case, Samba will then attempt all permutations of usernames it can compute having three capital letters. The larger the number, the more computations Samba will have to perform to match the username and the longer the authentication will take. 6.1 Users and Groups 6.3 Authentication Security O Reilly Home | O Reilly Bookstores | How to Order | O Reilly Contacts International | About O Reilly | Affiliated Companies 1999, O Reilly & Associates, Inc. 186
Please visit our professional web hosting services to find out about cheap and reliable webhost service that will surely answer all your demands.

Option Parameters Function Default Scope username level numerical (Photography web hosting)

Saturday, September 15th, 2007

Option Parameters Function Default Scope username level numerical Indicates the number of capital letters to use when trying to match a username. 0 Global 6.2.3.1 username map Client usernames on an SMB network can be relatively large (up to 255 characters), while usernames on a Unix network often cannot be larger than eight characters. This means that an individual user may have one username on a client and another (shorter) one on the Samba server. You can get past this issue by mapping a free-form client username to a Unix username of eight or fewer characters. It is placed in a standard text file, using a format that we ll describe shortly. You can then specify the pathname to Samba with the global usernamemapoption. Be sure to restrict access to this file; make the root user the file s owner and deny write access to others. Otherwise, an untrusted user who can access the file can easily map their client username to the root user of the Samba server. You can specify this option as follows: [global] username map = /etc/samba/usermap.txt Each of the entries in the username map file should be listed as follows: the Unix username, followed by an equal sign (=), followed by one or more whitespace-separated SMB client usernames. Note that unless instructed otherwise, (i.e., a guest connection), Samba will expect both the client and the server user to have the same password. You can also map NT groups to one or more specific Unix groups using the @ sign. Here are some examples: jarwin = JosephArwin manderso = MarkAnderson users = @account Also, you can use the asterisk to specify a wildcard that matches any free-form client username as an entry in the username map file: nobody = * Comments in the file can be specified as lines beginning with (#) and (;). Note that you can also use this file to redirect one Unix user to another user. Be careful if you do so because Samba and your client may not notify the user that the mapping has been made and Samba may be expecting a different password. 6.2.3.2 username level SMB clients (such as Windows) will often send usernames in SMB connection requests entirely in capital letters; in other words, client usernames are not necessarily case sensitive. On a Unix server, however, usernames are case sensitive: the user ANDYis different from the user andy. By default, Samba attacks this problem by doing the following: 1. 185
Looking for affordable and reliable webhost to host and run your business application? Then look no more and go to servlet web hosting services.