Operating System - HP-UX
1829348 Members
1493 Online
109991 Solutions
New Discussion

Re: Samba server installation

 
SOLVED
Go to solution
Jack_126
Frequent Advisor

Samba server installation

Dear All,

I want to install the Samba server but dont know where to download and how to install & configure.Looking for help.
I am having HP-UX11i running on server.
11 REPLIES 11
Patrick Wallek
Honored Contributor

Re: Samba server installation

The easiest way will be to download and install the HP-UX CIFS software.

Find the information here:
http://software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B8725AA
Geoff Wild
Honored Contributor

Re: Samba server installation

After you install it, point your web browser to http://yourserver:901

That is SWAT - Samba Web Admin Tool

It has a wizard and great online documentation to get you started.

Here's the HP Doc at:

http://docs.hp.com/hpux/onlinedocs/B8725-90063/B8725-90063.html

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Jack_126
Frequent Advisor

Re: Samba server installation

Dear All,
I have installed the SAMBA server and smbd service is also running. But not able to configure the samba server for sharing the shared volumed.
Any one can tell which files I have to modify and what to what to modify.

Fred Ruffet
Honored Contributor

Re: Samba server installation

Is it really samba or cifs ?
Have you access to SWAT of not ?

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)
Jack_126
Frequent Advisor

Re: Samba server installation

Its SWAT, and I can open the swat menu,
after that where and what changes to be made. If someone can guide me.
Fred Ruffet
Honored Contributor

Re: Samba server installation

with a browser access http://yoursevrer:901/

Login will be your root account.

In the upper part, you'll have to set up config in "Globals", "Shares" and "Passord" sections.

In Globals, you'll found infos such as workgroup/domainname or log file. This is general info about the server. Don't forget to commit changes when done.

In Shares, all you have to do is to give a new share name and do "create new share". Tell the directory to share, set writable or not and so on. Commit to set changes.

In Password, create samba users. Samba users are not Unix users. You will be able to grant access in Shares section to one or more users to a share, and deny access to others.

Commited changes will be effective immediately from network neighborhood in win machines.

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)
Jack_126
Frequent Advisor

Re: Samba server installation

I am attaching the file.You said that in password i have to create the userves which are samba users. How they will login form there PCs.
If you can give more input to me.

workgroup-CORP.GNPOC.COM
server string-Samba Server
security-USER
guest account-what I have give here?

Samba config file created using SWAT
# from 10.1.5.142 (10.1.5.142)
# Date: 2004/10/26 14:40:10

# Global parameters
[global]
workgroup = CORP.GNPOC.COM
server string = Samba Server
encrypt passwords = Yes
syslog = 0
log file = /var/opt/samba/log.%m
max log size = 1000
local master = No
guest account = nbhatkoti
read only = No
short preserve case = No
dos filetime resolution = Yes

[homes]
comment = Home Directories
browseable = No

[tmp]
comment = Temporary file space
path = /tmp

[/home/aplpatch]
path = /home/aplpatch
guest account = root cranganathan aplpatch
read only = Yes
guest ok = Yes

[lvol9]
comment = shared folder
path = /lvol9
username = nbhatkoti
guest account =
valid users = nbhatkoti
admin users = root
guest ok = Yes
volume = /lvol9
fstype = vxfs
set directory = Yes

Ranjith_5
Honored Contributor

Re: Samba server installation


Hi Jack,


Download samba:-
--------------------------------------------
http://ie.samba.org/samba/download/




How to install on:-
-----------------------

http://ie.samba.org/samba/docs/man/Samba-HOWTO-Collection/install.html


Regards,
Syam
Jack_126
Frequent Advisor

Re: Samba server installation

Shyam, I am not able to browse the shared volume lvol9 as I have attache in the file.

One more thing Which I am not able to understand that from how the samba users will login from there PCs.
If you could brief me.
Geoff Wild
Honored Contributor
Solution

Re: Samba server installation

What I do, is set SECURITY = SERVER

Samba will do all its username/password validation via a remote server.

Then set:

password server = NTBDC1, NTBDC2, NTBDC3

If you are using a Windows NT server as your password server then you will have to ensure that your users are able to login from the Samba server, as when in security = server mode the network logon will appear to come from there rather than from the users workstation.

That way all user authentication comes from Windows..

Here's what you have:

SECURITY = USER

This is the default security setting in Samba 2.2. With user-level security a client must first "log-on" with a valid username and password (which can be mapped using the username map parameter). Encrypted passwords (see the encrypted passwords parameter) can also be used in this security mode. Parameters such as user and guest only if set are then applied and may change the UNIX user to use on this connection, but only after the user has been successfully authenticated.

Note that the name of the resource being requested is not sent to the server until after the server has successfully authenticated the client. This is why guest shares don't work in user level security without allowing the server to automatically map unknown users into the guest account. See the map to guest parameter for details on doing this.

NOTE ABOUT USERNAME/PASSWORD VALIDATION
There are a number of ways in which a user can connect to a service. The server uses the following steps in determining if it will allow a connection to a specified service. If all the steps fail, then the connection request is rejected. However, if one of the steps succeeds, then the following steps are not checked.

If the service is marked "guest only = yes" and the server is running with share-level security ("security = share") then steps 1 to 5 are skipped.


If the client has passed a username/password pair and that username/password pair is validated by the UNIX system's password programs then the connection is made as that username. Note that this includes the \\server\service%username method of passing a username.

If the client has previously registered a username with the system and now supplies a correct password for that username then the connection is allowed.

The client's NetBIOS name and any previously used user names are checked against the supplied password, if they match then the connection is allowed as the corresponding user.

If the client has previously validated a username/password pair with the server and the client has passed the validation token then that username is used.

If a "user = " field is given in the smb.conf file for the service and the client has supplied a password, and that password matches (according to the UNIX system's password checking) with one of the usernames from the "user =" field then the connection is made as the username in the "user =" line. If one of the username in the "user =" list begins with a '@' then that name expands to a list of names in the group of the same name.

If the service is a guest service then a connection is made as the username given in the "guest account =" for the service, irrespective of the supplied password.

You will have to configure users with smbpasswd

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Fred Ruffet
Honored Contributor

Re: Samba server installation

In what I said, I was considering identification by samba server. As said, you can specify a server (for example your PDC) as a password server.

I actually use a Linux server with samba as file server, acting as PDC. My users open conection on their PC identifying on the server (ie with samba users created).

If you don't have a PDC, or don't want your samba server to act as a PDC, when user will browse the server in network neighborhood, they will be asked for authentication before displaying shares.

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)