1836441 Members
3578 Online
110100 Solutions
New Discussion

Re: Samba and HPUX10.20

 
SOLVED
Go to solution
Nick D'Angelo
Super Advisor

Samba and HPUX10.20

Hello,
I have downloaded the samba pre-compiled version but how do I configure my smb.conf? Using vi?

Also, how do I get Swat to come up via the browser?

I hope it is a case of mental lapse on my part but for some reason I found this difficult.

Thanks,

Nickd
Always learning
32 REPLIES 32
Craig Rants
Honored Contributor

Re: Samba and HPUX10.20

Yes you would use vi to edit your smb.conf file. To use swat:

make sure 901 is listening
# netstat -an | grep 901
look for LISTEN

on your browser
http://yourip:901

The rest is point and click.

Make sure you put "swat allow yourip" in the /var/adm/inetd.sec file.

GL,
C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
Mark Vollmers
Esteemed Contributor

Re: Samba and HPUX10.20

Nick-

the browser is much easier, in my opinion. you don't have to sift through everything right away, and only the main stuff is shown at first. you can tell it to show all the options if you want to get complicated. Also, the browser allows you to start/stop and add/remove clients, so it's an all-in-one service. much nicer than manually in vi.

Mark
"We apologize for the inconvience" -God's last message to all creation, from Douglas Adams "So Long and Thanks for all the Fish"
Mark Fenton
Esteemed Contributor

Re: Samba and HPUX10.20

If swat is running, then pointing your browser at http://localhost:901 (if on the server itself, or http://ip.addr.of srvr:901 if not)
should bring it up.

This presupposes that you are allowing swat to the network address of the workstation you're using, both in inetd.sec (if you have swat defined in this file) and from within the smb.conf file.

U.SivaKumar_2
Honored Contributor

Re: Samba and HPUX10.20

hi,
check /etc/services for entry "swat 901/tcp"
take a copy your default smb.conf . because
SWAT will overwrite this file.

regards,
U.SivaKumar

Innovations are made when conventions are broken
Nick D'Angelo
Super Advisor

Re: Samba and HPUX10.20

I can not get Swat to load/start.

What is the syntax?
Always learning
Rainer von Bongartz
Honored Contributor

Re: Samba and HPUX10.20


take a look at /etc/inetd.conf. It should contain a line

swat stream tcp nowait.400 root /opt/samba/bin/swat swat

and the at /etc/services which should contain

swat 901/tcp # SAMBA Web-based Admin Tool


If those entries are present then simply point your browser at

:901

Regards
Rainer
He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
Craig Rants
Honored Contributor

Re: Samba and HPUX10.20

Are you using the latest version of samba on your 10.20 box, i know there were problems with older versions an swat...

I would install the CIFS/9000 Server on the apps cd, i think it is on cd 3.

GL,
C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
Nick D'Angelo
Super Advisor

Re: Samba and HPUX10.20

Do I need to restart inetd services?

Am I restricted to browsing to the SWAT from the IP address that is specified?

Always learning
Craig Rants
Honored Contributor

Re: Samba and HPUX10.20

It doesn't hurt anything to run inetd -c, if the swat entry is in inetd.conf. However, you don't need to run this if you have only made a change to the inetd.sec file.

C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
Nick D'Angelo
Super Advisor

Re: Samba and HPUX10.20

All,

I have swat running and configurable now. Thanks.

However, I have created shares via samba, that do not appear on the Windows network.

In fact, I can not map to any of them.

Is there something that I am missing.

Much appreciated.
Always learning
U.SivaKumar_2
Honored Contributor

Re: Samba and HPUX10.20

hi,
please paste your smb.conf for analysis.

regards,
U.SivaKumar
Innovations are made when conventions are broken
Stefan Schulz
Honored Contributor

Re: Samba and HPUX10.20

Hi,

if your shares don't appear in the windows network first check if they are available. On a windows command box:

net view \\your.server.ip.adress

This should show you all your shares of your samba server. Don't us the netbios name you gave your samba server.

If you can see your shares (which i assume), then samba is set up correctly. Which means that the problem is on the Windows side.

Are you using WINS? Then you have to configure your new samba server in your WINS server. The problem is/seems to be that the netbios name of your samba server is not known in your windows network.

Hope this helps


Regards Stefan
No Mouse found. System halted. Press Mousebutton to continue.
Nick D'Angelo
Super Advisor

Re: Samba and HPUX10.20

Interesting System Error 5 has occurred.

Access is denied.

Do I need to allow an IP address or do I need to do something on the Windows Network side of things?
Always learning
Stefan Schulz
Honored Contributor

Re: Samba and HPUX10.20

Could you please post the complete command you used and the result?

Also please post your smb.conf file.

Thanks

Stefan
No Mouse found. System halted. Press Mousebutton to continue.
Nick D'Angelo
Super Advisor

Re: Samba and HPUX10.20

I went to my command prompt on my Win2000 PC and typed in net view \\server.ip.address

more smb.conf
# Samba config file created using SWAT
# from 10.20.20.75 (10.20.20.75)
# Date: 2002/05/28 14:52:49

# Global parameters
[global]
netbios name = UNIX
server string = Unix home directories
password server = server
syslog = 0
log file = /opt/samba/log.%m
max log size = 1000
local master = No
wins server = 10.20.10.18
short preserve case = No
dos filetime resolution = Yes

[tmp]
path = /tmp

[buder]
path = /home1/buder
username = buder
admin users = nickd,root

[nickd]
comment = Nickd's Home
path = /home1/nickd
Always learning
U.SivaKumar_2
Honored Contributor

Re: Samba and HPUX10.20

Hi,
I think you are not using any Windows NT PDC as authenticating server. If iam right then password server = server
is the culprit.
Try putting null value to the above line.
password server =
restart samba.

regards,
U.SivaKumar
Innovations are made when conventions are broken
Nick D'Angelo
Super Advisor

Re: Samba and HPUX10.20

I reset the password server entry as suggested and still the same error message, System Error 5 has occurred.

Access is denied.

An idea/question, do I need to set my samba server in the same domain as the Windows domain name? If so, where do I do this in the netbios name?
Always learning
Stefan Schulz
Honored Contributor

Re: Samba and HPUX10.20

Hi,

this seems like a user/password problem. As you don't have a security= in your smb.conf it is set (default) to security=user. Which means that you have to have the same valid user on both sides (NT and HP-UX).

So you have to be buder, nickd or root on your NT Workstation to connect to your shares.

If you have a different username on NT you should use the guest account. There are settings which read "guest ok" and "guest account". Activate them and give it a try. You might also want to set the security=share. This is less secure but easier to configure because you set all restrictions at the share.

Hope this helps


Regards Stefan
No Mouse found. System halted. Press Mousebutton to continue.
Mark Vollmers
Esteemed Contributor
Solution

Re: Samba and HPUX10.20

Nick-

I didn't see this above, and apologize if it seems stupid, but have you made the samba password file(smbpasswd)? you have to either remake your users in this file or tell samba to look at /etc/passwd before it will use the current UNIX users.

Mark
"We apologize for the inconvience" -God's last message to all creation, from Douglas Adams "So Long and Thanks for all the Fish"
Nick D'Angelo
Super Advisor

Re: Samba and HPUX10.20

I think I have found the problem.

when I try to smbpasswd and create a user/password:

unable to open passdb database.
failed to find entry for user nickd.
failed to modify password for user nickd

I guess the password db needs to be created, but was that not supposed to have been already done?
Always learning
Mark Vollmers
Esteemed Contributor

Re: Samba and HPUX10.20

Nick-

it's not automatically created; you have to add everyone or map it to /etc/passwd (I don't know how to do this, but it was mentioned somewhere here). to create the file (add a user), use the smbpasswd -a username I think you can take the entire file en masse, but I can't remember how. I'll try to look it up. I spent about half a day myself before I figured out that I had to re-make the usernames.

Mark
"We apologize for the inconvience" -God's last message to all creation, from Douglas Adams "So Long and Thanks for all the Fish"
Nick D'Angelo
Super Advisor

Re: Samba and HPUX10.20

All., I have created the smbpasswd file for myself and a couple of others.

I made the password the same as my unix password.

I still get the error 5 when trying to net view \\server.ipaddress.

Also, I can not see it via the network neighbourhood.
Always learning
Mark Vollmers
Esteemed Contributor

Re: Samba and HPUX10.20

okay, in swat, what does it show in the shares section? Also, what is in the status section? are both smbd and nmbd running?
"We apologize for the inconvience" -God's last message to all creation, from Douglas Adams "So Long and Thanks for all the Fish"
Mark Vollmers
Esteemed Contributor

Re: Samba and HPUX10.20

also, in the gloabl variables, do you have the domain in the workgroup and the server name in the netbios name (or whatever you want to call it)? I'm just going through my config to try to see what I did.

Mark
"We apologize for the inconvience" -God's last message to all creation, from Douglas Adams "So Long and Thanks for all the Fish"