Re: [cciug] Interop btw Solaris and Win2000 using SAMBA

From: Samuel Weiss (shmouel@cablecs.com)
Date: Tue Sep 04 2001 - 02:58:49 EDT


See above explications that I have got from clearcase support about Samba
configuration:

Regarding your question about running dynamic views and samba.

First the only supported version of samba is samba version 2.0.7 (no other)
togheter with Solaris 8 (no other) or HP-UX 11.0 (no other)

To set up samba to work with ClearCase:

To configure Samba for use by ClearCase, you must:

Create a Samba username map for the clearcase_albd user
Configure Samba globals
Create shares for VOB and view storage
Start Samba services
Creating a Samba Username Map for clearcase_albd
NOTE: In this section, we assume that the Windows NT ClearCase server
process user account is named clearcase_albd. If your Windows NT ClearCase
server process user account has a different name, use that name instead.

Samba requires a username map that associates the Windows NT ClearCase
server process user account, described in Chapter 4 of Administering
ClearCase (UNIX/Windows Edition), Release 4.1 and later, with a UNIX user
account.

To create the Samba username map, use any UNIX text editor to create a file
named username.map on the host where Samba is installed. We recommend
creating the file in the same directory where you have installed other Samba
configuration files (such as smb.conf).

The file must contain a line of the form:

account = clearcase_albd

where account is the name of an existing UNIX user account. We strongly
recommend that this user's primary group (the group listed in the user's
entry in the passwd database) be one to which all ClearCase users accessing
VOBs and views on this server belong. For details about group- and
user-level access to ClearCase data, see Understanding ClearCase Access
Controls in Administering ClearCase (UNIX/Windows Edition), Release 4.1 and
later.

For more information about the username.map file, see the Samba
documentation.

Using The Samba Web Administration Tool (SWAT)
Samba can be configured using various methods ranging from a simple text
editor to graphical tools. The examples in this document describe the
configuration of Samba through the use of the Samba Web Administration Tool
(SWAT) which is included in the official Samba package. Instructions are
contained within the Samba package which explain how to enable this tool.

To access the SWAT interface:

1.
Type a URL of this format in a Web browser:
http://computer:port#

where

computer is the host name of a UNIX VOB- or view-server host on which you
have installed Samba
port# represents the SWAT port number (the default is 901)
2.
Log on as root. The SWAT interface now appears in your browser.
Configuring Samba Globals for ClearCase
Click the GLOBALS icon at the top of the SWAT interface's home page. Click
the Advanced View button. Set the following options as described in Table 1.

Table 1: Samba Global Settings for ClearCase Base Options
workgroup set to the name of the domain to which ClearCase hosts accessing
this server belong
netbios name set to the name of this computer
Security Options
security DOMAIN (recommended) or USER (see note)
encrypt passwords Yes
create mask 0775
directory mask 0775
username map set to the local pathname of the username.map file created
during the Creating the Username Map procedure
Locking Options
oplocks No
kernel oplocks No
Filename Handling Options
case sensitive No
preserve case Yes

NOTE: If you select USER security, you must enter every user that will
access Samba file services in a local, Samba-specific encrypted password
database on the server supporting those file services. Click the PASSWORD
icon on the SWAT home page. In the Server Password Management section, enter
the name and password of each user.

ClearCase has no special requirements for other Samba globals, so you may
configure them in any way that's appropriate for your site.

Creating Shares for VOB and view storage
You must create one or more Samba shares to hold server storage locations or
individual VOB or view storage directories. To create a Samba share:

Click the SHARES icon at the top of the SWAT interface's home page.

Enter a name for the share in the text field to the right of the Create
Share button. Because it will simplify administration. we recommend that the
share name be similar or identical to that of the UNIX directory whose name
you will enter in Step 4.

Click the Create Share button.

Edit the path option under Base Options. Set its value to be a directory
under which the VOB or view storage areas reside. The VOB or view storage
areas do not need to be in the directory specified, but they must be
somewhere below the specified directory.

Click the Commit Changes button.

Starting Samba Services
The Samba smbd and nmbd services must be running before Windows computers
can access files via Samba. We recommend that you configure your UNIX host
to start the smbd and nmbd services at boot time. Platform-specific
instructions for configuring automatic service startup are included in the
Samba documentation.

Samba services can also be started manually from the SWAT interface using
the following procedure:

Click the STATUS icon at the top of the SWAT interface's home page.

Click the Start smbd button The page will refresh and should display the
smbd status as running.

Click the Start nmbd button The page will refresh and should display the
nmbd status as running.

Configuring ClearCase to Support Samba
For all ClearCase clients on Windows NT that have the MVFS installed and
that will access Samba shares, change the MVFS Performance settings in the
ClearCase program in Control Panel as follows:

1.
Click Start >Settings >Control Panel. Open the ClearCase program.
2.
On the MVFS Performance tab:
Select Override for both Maximum number of mnodes to keep on the free list
and Maximum number of mnodes to keep for cleartext free list.
Set the value for both to 800.
3.
Click OK to apply the changes and close the dialog box.
4.
Restart Windows NT.
Testing the Samba Configuration
This section summarizes how to test a Samba installation and configuration
both using non-ClearCase files and using ClearCase VOBs and views.

Testing the Samba Configuration on Non-ClearCase Files
We recommend that you test the Samba installation and configuration using
non-ClearCase files and directories before attempting to use Samba to
provide file access to VOBs and views, as follows:

1.
Create a directory on your Samba server (for example, /testshare/testdir)
and a test file in that directory (for example,
/testshare/testdir/testfile).
2.
Create a Samba share using testshare as the share name and /testshare as the
path name for the share.
3.
>From a Windows NT client, create a file in the Samba share. Then verify
that
the UNIX user and group settings for that file are correct.
4.
Verify that all Windows NT clients can access the Samba share, including
testing permission and access restrictions, until you are confident that
Samba is working properly.
Testing the Samba Configuration with ClearCase
To test that ClearCase and Samba are working together properly:

1.
On a UNIX VOB or view server, install and configure Samba as described in
this chapter, creating shares for VOB and/or view storage.
2.
Verify that your ClearCase user and group assignments are appropriate. To do
so, use the tests described under Checking User and Group Assignments in
Chapter 8 of Administering ClearCase (UNIX/Windows Edition), Release 4.1 and
later.
3.
Verify that you can access VOBs and views on the server from a UNIX client.
4.
Log on to a ClearCase client on Windows NT. Use the Region Synchronizer to
import VOB and view tags for VOBs and views hosted on the UNIX server into
the Windows region.
5.
Ensure that you can use these views and VOBs by performing some basic
ClearCase operations (for example, mkelem, checkin, and checkout) in them.

----- Original Message -----
From: "Ramaprasad p" <pokala@www.com>
To: <cciug@rational.com>
Sent: Tuesday, September 04, 2001 6:42 AM
Subject: [cciug] Interop btw Solaris and Win2000 using SAMBA

>
> Hi !!
>
> We are implementing Interop (Dual operating Systems administration)
btween Solaris and Win2000 using SAMBA technology at our site (ofcourse,
along with Clearcase). We are able to see the VOB's and views created in
Unix Vob and View server in windows2000 clients. we are able to checkout,
modify, and see user information.
> But when you seek checked out file properties its coming with
'NOBODY' user name and group (group got solved using CLEARCASE_PRIMARY_GROUP
variable). When i run 'Credmap' command using VOB Server name... it does not
matching Windows2000 and Unix user information (eventhough we provided
Usermap file equating Unix and windows user ids).
> Please, Let me know where i gone wrong and correct me...
>
> Thanks in advance,
> Ram
>
>
>
> ------------------------------------------------------------
> WWW.COM - Where the Web Begins! http://www.www.com
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> [ To unsubscribe, send email to majordomo@rational.com with body
> "unsubscribe cciug" (the subject is ignored). You can also unsubscribe
> using the sign-up form at the ClearCase customers-only website
> accessed at http://clearcase.rational.com/cciug/mailing_list.html]

 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
[ To unsubscribe, send email to majordomo@rational.com with body
"unsubscribe cciug" (the subject is ignored). You can also unsubscribe
using the sign-up form at the ClearCase customers-only website
accessed at http://clearcase.rational.com/cciug/mailing_list.html]



This archive was generated by hypermail 2b29 : Sun Sep 30 2001 - 22:03:30 EDT