1832867 Members
2967 Online
110048 Solutions
New Discussion

HP-UX shares

 
SOLVED
Go to solution
Jim Mickens
Frequent Advisor

HP-UX shares

We're currently using TriTeal's TEDfs to enable Windows machines to use the directories on our HP9000 (10.20) as windows shares. I'm having trouble with the software, but can't seem to get support from TriTeal. Near as I can tell they went under, but I can't find anything to confirm it. Need to know:
1) does anyone know anything about Triteal's status (did they go under)?
2) if they did, does anyone know enough about their software to help ?
3) if nobody can help the first two - what else can I use to do the same task?
20 REPLIES 20
linuxfan
Honored Contributor

Re: HP-UX shares

Hi,

With HP-UX 11.0, you could have used CIFS/9000 (which is repackaged version of Samba) but on 10.20, you may have to download and install it from the source code. YOu can get it from

http://samba.org

Once you install and configure samba, you can map your HP-UX filesystems on your NT machines.

-HTH
Ramesh
They think they know but don't. At least I know I don't know - Socrates
Robin Wakefield
Honored Contributor

Re: HP-UX shares

Hi Jim,

I'm sorry I know nothing about the software you're using, but we use samba for this purpose (www.samba.org).

Rgds, Robin
Jim Mickens
Frequent Advisor

Re: HP-UX shares

I downloaded a precompiled version of Samba (I think it's 2.0.7) and installed it. Seemed to install fine. Can anybody tell me how I should have the smb.conf file set up in order to only allow my valid HP-UX users to connect?
Santosh Nair_1
Honored Contributor

Re: HP-UX shares

Jim,

Samba comes with a neat Web based configuration utility called swat. You can configure swat to run from inetd or as a daemon (if memory serves). In order to configuer swat to run from inetd, do the following:

add swat to the services file:

swat 906/tcp

put the following entry in /etc/indet.conf:

swat stream tcp nowait root /usr/local/samba/bin/swat swat

then bounce inetd:

inetd -c

Now use any browser to connect to your server at port 906:

http://:906

This should bring up swat. The gui is very easy to use and heavily documented.

-Santosh
Life is what's happening while you're busy making other plans
Andreas Voss
Honored Contributor

Re: HP-UX shares

Hi,

with samba you have a gui tool for configuration called SWAT.

To use:

Go to a PC which is in the network of your HP box (or at your HP box itself if you have netscape on it) and open a web browser.
Now open the URL: http://:901
It asks for a user and password (for the first time use root).
All parameters for the configuration are well documented in SWAT.

Regards
Jim Mickens
Frequent Advisor

Re: HP-UX shares

The following line was already in the inetd.conf file:
swat stream tcp nowait.400 root /opt/samba/bin/swat swat

Does that mean I should use :400 instead of :901 (or :906)? Does the server have to be running IIS software?
Santosh Nair_1
Honored Contributor

Re: HP-UX shares

Jim,

No, do a grep on /etc/services and see what port swat is assigned, i.e.:

grep swat /etc/services

This will tell you which port to use when connecting from your browser.

-Santosh
Life is what's happening while you're busy making other plans
Andreas Voss
Honored Contributor
Solution

Re: HP-UX shares

Hi,

the port SWAT uses is defined in /etc/services.
It is the port 901 !

You do not need a web server software. SWAT acts like a server when you contact the port 901 from a browser in your network.

Regards
Jim Mickens
Frequent Advisor

Re: HP-UX shares

Got it. It was on 901. I guess now all I have to do is figure out which options I need. Will Samba need to be stopped and started again when changes are made to the smb.conf file?
Santosh Nair_1
Honored Contributor

Re: HP-UX shares

I believe so, but you can restart the Samba daemons from the gui.

-Santosh
Life is what's happening while you're busy making other plans
Andreas Voss
Honored Contributor

Re: HP-UX shares

Hi,

changes made with swat are automatically set when you pres 'commit changes'.
There's no need to stopt/start the deamons.
However if you change something and have active shares you can reinitailize them at the status window by clicking the X-Botton for a share process.

Regards
Jim Mickens
Frequent Advisor

Re: HP-UX shares

I created a share and committed the changes, but it's not showing up in the Active Shares section of the Status page. I also tried restarting the daemons, but it still doesn't show.

I also noticed that there isn't a tool for configuring the [homes] section of the smb.conf (unless I'm going blind and can't see it).
Anthony deRito
Respected Contributor

Re: HP-UX shares

Jim, lots of people have given you valuable information here. It would be nice if you give them points for their efforts.
Jim Mickens
Frequent Advisor

Re: HP-UX shares

I always get a lot of good answers here, and normally assign points once I feel I'm finished with the message thread.
Santosh Nair_1
Honored Contributor

Re: HP-UX shares

Jim,

Active shares only lists the shares that are in use, i.e. that someone has mounted already.

-Santosh
Life is what's happening while you're busy making other plans
Jim Mickens
Frequent Advisor

Re: HP-UX shares

Understood - thanks.

I'm trying to connect from a Windows machine, and I'm getting an error that says that the account is not authorized to log in from this station. Any ideas on what settings to look for?
Santosh Nair_1
Honored Contributor

Re: HP-UX shares

Try setting the hosts allow parameter in the global section of samba.conf file:

Example 1: allow all IPs in 150.203.*.* except one

hosts allow = 150.203. EXCEPT 150.203.6.66

Example 2: allow hosts that match the given network/netmask

hosts allow = 150.203.15.0/255.255.255.0

-Santosh
Life is what's happening while you're busy making other plans
Jim Mickens
Frequent Advisor

Re: HP-UX shares

I added the local subnet to the allow list and still get the error.
Kevin Wright
Honored Contributor

Re: HP-UX shares

You probably don't have authentication set up properly..are you using DOMAIN..through a windows domain controller or using local auth. In this case you need to add usernames and passwds with smbpasswd.
Jim Mickens
Frequent Advisor

Re: HP-UX shares

I changed the password encryption option to yes, and that allowed me to get in from the windows machine. I tried a couple other users, and they couldn't. I then added them with smbpasswd -a and now instead of the 'not authorized from this station' error, they just get a window that asks for username/password. No matter what they enter, it just keeps coming back with a bad username/password error.