Operating System - Tru64 Unix
1830958 Members
2767 Online
110017 Solutions
New Discussion

Windows filesharing (SMB) under Tru64 5.1B

 
Markus Waldorf_1
Regular Advisor

Windows filesharing (SMB) under Tru64 5.1B

Hello,

I need to setup some Windows SMB file-shares on our Tru64 servers. The servers are running Tru64 5.1B. I have been using ASU so far, but I find it odd and complex and I always spend a lot of time going through the manual again when there is a need for troubleshooting. It populates a windows PDC and requires licensing for more than 2 connections. It just does not seem to be the right product for my purpose.

What I need are just a couple of Windows SMB file-shares so they can be mounted by a single dedicated PC in order to backup and stream some specific data to tape. I tried NFS and Windows Services for Unix - Windows NFS client is too slow, at least 50 % slower than ASU.

I tried Samba some time ago, and I could not get it to compile or run, it would crash. Now there is a newer version 3.0.26a and I had some hope that it would finally work, but it shows warning at everything it compiles: "... is out of range INT_MIN to INT_MAX". And no particular info about it so far. Maybe it would work in gcc but that's too much of a hassle.

I've seen some info that samba would be part of the Internet Express CD, but I cannot find it. Could somebody please share some experience? Is there any version of Samba that would compile properly?

Best regards,
Markus
6 REPLIES 6
Ivan Ferreira
Honored Contributor

Re: Windows filesharing (SMB) under Tru64 5.1B

Samba binaries for Tru64 is on the Internet Express or Open Source software collection for Tru64 (not sure). My suggestion is to use these versions.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Markus Waldorf_1
Regular Advisor

Re: Windows filesharing (SMB) under Tru64 5.1B

Perhaps it used to be but I cannot see any trace of samba binaries available for download anymore.

I have just installed gnupro tools from http://h30097.www3.hp.com/affinity/affinity-tools.html. Maybe samba will compile with gcc....


Markus Waldorf_1
Regular Advisor

Re: Windows filesharing (SMB) under Tru64 5.1B

I installed Gnupro tools (V.1.0), and installed it using Gnupro/install-gnupro... make sure it's in your $path. It installed gcc 2.97.

I found a link http://www.ics.uci.edu/~bsalamat/misc/compilegcc.html howto install gcc 4.11 under Tru64 5.1. I will try that later.

Regarding samba I'm not over the hill yet, but I can see the mountains. It compiled samba 3.0.26a with only to warnings, though a bunch of unresolved when linking. I will try with some older distributions....





Markus Waldorf_1
Regular Advisor

Re: Windows filesharing (SMB) under Tru64 5.1B

It was possible to compile and install samba 3.0.26a with only a few warnings using the gcc compiler installed from above. I had some problems with the configuration because it did not look in /etc/samba for the smb.conf file, etc.. I also had to create a user with smbclient, and have no idea yet where it is installed, but it's working. At the moment I am not sure if ASU or Samba is the lesser evil, but it seems that Samba can be configured with more limited options.

I checked again regarding Internet Express at
http://h30097.www3.hp.com/internet/detailed.htm
I cannot find the option to download the kit from somwhere.

But I found something else.... patch details: IX66-SAMBA-20070530, which is going to be included in Internet Express for Tru64 UNIX v 6.7. The patch kit contains a standard stand-alone setld kit installing samba 3.0.25. I just installed it, and it did some configuration. I will go from there now.
Markus Waldorf_1
Regular Advisor

Re: Windows filesharing (SMB) under Tru64 5.1B

I installed the kit and to my surprise it also uses smb.conf in /usr/local/samba/lib as opposed to /etc/samba. It installed samba running as a daemon with a samba startup script in /sbin/init.d: samba -> ../../opt/IAE665/sbin/init.d/samba. It put an entry in /etc/inetd.conf for "swat".

I checked swat at http:localhost:901
but I don't really see the point of using it.

I have changed:

/sbin/init.d/samba stop
mv /sbin/rc3.d/S98samba /sbin/rc3.d/X98samba

modified /etc/inetd.conf file:
removed the "swat" line, added:

# SAMBA - added by root
netbios-ssn stream tcp nowait root /usr/local/samba/sbin/smbd smbd
netbios-ns dgram udp wait root /usr/local/samba/sbin/nmbd nmbd

added the following to /etc/services
netbios-ssn 139/tcp
netbios-ns 137/udp

Then restart inetd for the changes to take affect:
# /sbin/init.d/inetd stop
# /sbin/init.d/inetd start


added directory
# mkdir /var/adm/samba

My /usr/local/samba/lib/smb.conf looks like:
# Samba config file created using SWAT
# from 127.0.0.1 (127.0.0.1)
# Date: 2007/09/21 02:58:20

Last, and hopefully least the user "backup" has to be added to samba:
(Password worked when I used 8 characters, but not 4). The info will be stored in /usr/local/samba/private. When I tried to create the Samba account using:
# /usr/local/samba/bin/smbpasswd -a backup
it failed, because there was no such Unix user. You need to create a Unix user with the same name first.

Next thing I noticed is that the samba user must have unix permissions to access the share-point. This makes it somewhat less flexible compared to ASU, which you can configure to use Windows ACL, overwritting Unix permissions.

I ended up adding the user "backup" to the "oinstall" group which has access to the shared directory, and than locked the user "backup" in order to prevent access to the system beside samba which restricts access to what smb.conf defines, e.g. /oraflash write only.

I got it all working now. Speed is fine. It took me the same effort to setup than ASU actually, but i have what I need - it's free too, and hopefully will be easier to check and reconfigure later.

Maybe this will help someone else when searching for Samba on Tru64 ;-)

Best regards,
Markus


Here is my smb.conf

[global]
log file = /var/adm/samba/log.%m
preferred master = No
domain master = No
wins support = No
hosts allow = avalon.rferl.org
case sensitive = No
short preserve case = No
netbios name = MERLIN
server string = Merlin Samba Test
workgroup = LAN
load printers = No
security = user
hide dot files = yes


[inst]
comment = Install directory
path = /inst
valid users = backup
public = no
writable = no
printable = no

[oraflash]
comment = Oracle 10g Flash Recveory Area
path = /oraflash
valid users = backup
public = no
writable = no
printable = no

[backup]
comment = Local vdump backups
path = /backup
valid users = backup
public = no
writeable = no
printable = no


To check the smb.conf file

# cd /usr/local/samba/lib
# /usr/local/samba/bin/testparm smb.conf
Load smb config files from smb.conf
Processing section "[inst]"
Processing section "[oraflash]"
Processing section "[backup]"
Loaded services file OK.
Server role: ROLE_STANDALONE


To see what is shared (hit return when prompted for password):
# ./smbclient -L \\localhost
Password:
Anonymous login successful
Domain=[LAN] OS=[Unix] Server=[Samba 3.0.25]

Sharename Type Comment
--------- ---- -------
inst Disk Install directory
oraflash Disk Oracle 10g Flash Recveory Area
backup Disk Local vdump backups
IPC$ IPC IPC Service (Merlin Samba Test)


I got it all working now. Speed is fine. It took me the same effort to setup than ASU actually, but i have what I need - it's free too, and hopefully will be easier to troubleshoot and reconfigure later.

Maybe this will help someone else too when searching for Samba on Tru64

Best regards,
Markus
Rob Leadbeater
Honored Contributor

Re: Windows filesharing (SMB) under Tru64 5.1B

Hi Markus,

If you set things properly in smb.conf you should be able to get your Samba machine to join your Windows Domain. You then don't need to worry about having matching usernames on Unix and Windows etc.

Take a look in "man smb.conf" for the various security options (security=domain security=ads etc.)

Cheers,

Rob