Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP CIFS Server 3.0g Administrator's Guide version A.02.03.01: HP-UX 11i v1, v2 and v3 > Chapter 2 Installing and Configuring the HP CIFS Server

Step 4: Starting the HP CIFS Server

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

Run the script below to start Samba if you do not use winbind support:

/opt/samba/bin/startsmb

Run the script below to start Samba if you configure HP CIFS Server to use winbind support:

/opt/samba/bin/startsmb -w

or /opt/samba/bin/startsmb --winbind

When the command successfully starts Samba, a message is displayed indicating the specific processes that have been started. When the script is successful, the exit value is 0. If the script fails, the exit value is 1.

Samba installation and configuration are complete.

Run the following script to stop Samba if you do not use winbind support:

/opt/samba/bin/stopsmb

Run the following script to stop Samba if you use winbind support:

/opt/samba/bin/stopsmb -w

or /opt/samba/bin/stopsmb --winbind

When the script is successful, the exit value is 0. If the script fails, the exit value is 1.

Winbind execution may be controlled without affecting the execution of smbd and nmbd with the following commands.

Run the following command to start winbind alone:

/opt/samba/bin/startwinbind

Run the following command to stop winbind alone:

/opt/samba/bin/stopwinbind

NOTE: HP does not support the inetd configuration to start the HP CIFS Server.

Starting and stopping Daemons Individually

Two new options -n (nmbd only) and -s (smbd only) have been added to startsmb andstopsmb scripts to start and stop the daemons individually. The startsmb -scommand starts the smbd daemon. The stopsmb -s command stops the smbd daemon. The -n option starts and stops the nmbd daemon in the same way.

Configuring Automatic Start at System Boot

When the HP CIFS Server is first installed, it will not automatically start when the system boots. You can enable the HP CIFS Server and related daemons to do so by editing the /etc/rc.config.d/samba file.This configuration file contains two variables:

RUN_SAMBA=0

RUN_WINBIND=0

The RUN_SAMBA variable controls whether HP CIFS Server daemons, smbd and nmbd, will start at system startup. The RUN_WINBIND variable controls whether the winbind daemon, winbindd, will start at system startup. The two variables function independently.

To configure HP CIFS Server to start automatically, set RUN_SAMBA to a non-zero value. To configure Winbind to start automatically, set RUN_WINBIND to a non-zero value. For example, if you want HP CIFS Server and Winbind to start automatically at system startup, edit the variables in the /etc/rc.config.d/samba file as follows:

RUN_SAMBA=1

RUN_WINBIND=1

Stopping and Re-starting Daemons to Apply New Settings

The smb.conf configuration file is automatically reloaded every minute if it changes. You can force a reload by sending a SIGHUP to the CIFS server. Reloading the configuration file does not affect connections to any service that is already established.

But, you must stop and re-start the CIFS server daemons to apply the new setting for the following parameters in smb.conf:

  • netbios aliases

  • interfaces

  • auth methods

  • passdb backend

  • invalid users

  • valid users

  • admin users

  • read list

  • write list

  • printer admin

  • hosts allow

  • hosts deny

  • hosts equiv

  • preload modules

  • wins server

  • vfs objects

  • idmap backend

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2007 Hewlett-Packard Development Company, L.P.