Monday, June 13, 2011


1. Configured Samba configuration files.
cd /etc/opt/samba
vi smb.conf

Change below lines

Enter as per your requirement
workgroup = HPUXSERVER

remove comment and change as per requirement
netbios name = tstmig

go to shared directory settings and configured as per your requirement.

comment = Home Directories
path = /home/%U
browseable = yes
writable = yes
create mask = 0700
directory mask = 0700

2. Add user into samba user ( this user should be created in operating system before creating here )
# /opt/samba/bin/smbpasswd -a ituser
New SMB password:
Retype new SMB password:
Added user ituser.

Password = ituser123

3. Start / stop samba server

4. Accessing HPUX server and samba directory from windows.
\\\ -> in this case it prompt for username and password, specify username and password which created in step 2

5. As per my requirement I shared directory with below details.
Reason for 777 is samba user can able to add, modify and remove files.
Reason for force user and group is the files are transfer here is going to be used by SAP application server hence owner should be adm.

comment = data upload directories
path = /home/dataupload
browseable = yes
writable = yes
create mask = 0777
directory mask = 0777
force user = pipadm
force group = sapsys
valid users = ituser

6. 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:

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:


7. Other Sambha validation parameters
valid users = %S
• hosts allow
• hosts deny
• hosts equiv
• preload modules
• wins server
• vfs objects
• idmap backend
netbios aliases
• interfaces
• auth methods
• passdb backend
• invalid users
• valid users
• admin users
• read list
• write list
• printer admin

No comments: