1753482 Members
4200 Online
108794 Solutions
New Discussion юеВ

Samba initial setup

 
Bruno Bossier_1
Regular Advisor

Samba initial setup

I just installed the CIFS/9000 server and client software. I ran the samba_setup script and started the samba daemons. And now ?

I just want to test samba in our lab between a HP-UX 11.22 server who should be the CIFS serber and a Windows client. I created a filesystem on HP-UX which I would like to share and access via that Windows server. What are my next steps ? The documentation is not very clear on that.

And bye the way, can I use a Mac OSX 10.1 server as client ?

Cheers,
Bruno
6 REPLIES 6
Darren Prior
Honored Contributor

Re: Samba initial setup

Hi Bruno,

There's 2 steps you need to follow:

1) configure the smb.conf for your share
2) configure the users

To configure smb.conf you can either use an editor like vi or you can use SWAT - a gui accessed via a browser using http://:901

There are 2 main areas of smb.conf; [global] and the individual shares. In the global section you define global parameters including the security type and the workgroup. Please read through the docs to see which method of security is best for your usage.

The individual share sections define the path to the area of the filesystem you are sharing, who can access them and masks for file permissions.

To configure the users will depend on the security method you've chosen. Some methods use your Windows domain's PDC, other use a separate smbpasswd file on the CIFS server.

I recommend that you have a look through the Using Samba book by O'Reilly - it's available in an online version via SWAT and will guide you through some of the choices you have to make.

As for using a Mac - if it can map shares from a Windows box then there should be no problem mapping to a CIFS share.

regards,

Darren
Calm down. It's only ones and zeros...
Steven E. Protter
Exalted Contributor

Re: Samba initial setup

In the smb.conf file is a sample share of the /tm p directory.

You can us it as a template for sharing other folders/directories.

You then need to authorize users.

smbpasswd -a

That sets them up.

Windows, Mac, any front end can connect to samba shares. Recent OS's usually don't require any additional software. For windows, search the network neighborhood, or use the find computers function.

In some network setups, you'll need to set up an account for the HP-UX machine to make it visible.

Here is a good doc to cover what I've missed.
http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B8725-90021/B8725-90021_top.html&con=/hpux/onlinedocs/B8725-90021/00/00/8-con.html&toc=/hpux/onlinedocs/B8725-90021/00/00/8-toc.html&searchterms=configuration%7cCIFS/9000&queryid=20030703-064535

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Bruno Bossier_1
Regular Advisor

Re: Samba initial setup

OK, thanks already for the feedback. I added my filesystem to the smb.conf file and added a user and password with smbpasswd.

As for security, the environment I'm using is a lab environment, so I choose Workgroup as domain role and Server-level security as authentication type. The passwd server is choose is the same server as my CIFS server.

Does the cifsclient need to be started ? And then I suppose that I need to cifsmount the native Unix filesystem I created ?

Sorry, but it's my first steps with Samba :-)
Darren Prior
Honored Contributor

Re: Samba initial setup

You don't need to start cifsclient! Cifsclient is for the situations when you want to mount a Windows shared filesystem on your HP-UX box.

As for server level security I believe there's very little to choose between it and user level security if you are going to keep the same box as the password server.

regards,

Darren.

PS: Please don't forget to assign points to people who have helped you - it's a kind of reward for them plus it helps others decide which answers are useful.
Calm down. It's only ones and zeros...
Fragon
Trusted Contributor

Re: Samba initial setup

Hi Bruno,
Just set up the /etc/samba/smb.conf file! For test purpose , you can make a "USER" level security.
Use sampasswd -a USERNAME to add a samba user!
(The "USERNAME" must exist in /etc/passwd.) The password mustn't be the same.

Keep "encryptpassword=yes", or the authentication can't pass in Windows side.

Now you can view the share resource from Windows:
\\Servername\share_resource

-ux
Bruno Bossier_1
Regular Advisor

Re: Samba initial setup

It works now on Windows. I had to set the permission on the shared directory to 777, but I suppose that that is true.

However, it still does not work with a Mac OSX server, but again I suppose that that is normal as I could not find any information about CIFS/9000 supporting Max operating systems.

Bruno